feat(live-sessions): show running Kimi Code sessions in the Capacity Dock - #1354
Merged
Conversation
Scan the Kimi Code stores for session dirs whose agents/*/wire.jsonl was written inside the liveness window and fold them into the menubar liveSessions block as provider kimicode, with the project from state.cwd, the model from the last llm.request in the main wire tail, and sub-agent wire mtimes as the session's sub-agent activity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Live-session detection only scanned Claude transcripts, so a running Kimi Code session never appeared in the dock card or the app. This adds a Kimi Code collector next to the Claude one: every session directory whose
agents/*/wire.jsonlwas written inside the ten-minute window becomes a row with providerkimicode(the dock ring's id), project from the session'scwd, the last requested model from the tail of the main wire file, and sub-agent writes folded into the session the same way Claude sidechains are. A missing store is silent.Verified on this machine with a live Kimi session:
kimicode eywa-lab k3 idle 10salongside the Claude rows. 64 tests across live-sessions, kimicode and menubar-json pass; tsc clean.