Repository navigation
feat(mocactl): show which session carries a promoted config bundle - #487
Merged
Merged
Conversation
/promote opens New Session and the bundle is one-shot, so a later /new silently starts a session without it, and nothing on screen says which session has the skills. Observed twice on a live control plane: the bundle session stayed empty while the prompt went to a bundle-less one. Toast "session started with config bundle <8 hex> — N skills" when the pending bundle is applied, and add a "bundle <8 hex>" status-line field for any attached session with a configRef, including one resumed from /sessions (the summary's configRef is now passed to onResume). Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
ingpaolodettori-dev
approved these changes
Oct 12, 2026
ingpaolodettori-dev
left a comment
There was a problem hiding this comment.
LGTM. The toast and bundle <8hex> status field are sanitized through the existing sanitizeRemote mapping. fitStatus ordering drops the field before the title as described, and the resume path carries the summary configRef from its only caller. The tests cover create, the following /new, and resume. CI is green.
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.
Problem
/promote <dir>uploads a bundle, then opens New Session; the pending bundle is one-shot and is consumed by the session that overlay creates. A user who then runs/new("a new session after promoting") gets a session without the bundle, and nothing on screen distinguishes the two.Observed twice on a live control plane: the bundle-carrying session (
configRefset insh:cp:session:*) was never sent a turn, while the prompt went to a session 18–28s newer with noconfigRef. The model then correctly reported no skills. The bundle itself was fine:mocactl run … --config <digest>listed the skill.Change
session started with config bundle 4f3d663e — 1 skill.bundle 4f3d663e(info colour) for any attached session that has aconfigRef. It's absent for bundle-less sessions, so a later/newvisibly lacks it. On narrow terminals it's dropped before the title.configReftoonResume, so the indicator also appears after resuming from/sessions.Testing
/new. Indicator after resuming a session whose summary has aconfigRef. Both failed before the change.onResume.vitest(mocactl): 811 passed.make lintandmake typecheckare clean.🤖 Generated with Claude Code