Skip to content

feat(mocactl): show which session carries a promoted config bundle - #487

Merged
pdettori merged 1 commit into
rossoctl:mainfrom
pdettori:feat/mocactl-bundle-indicator
Oct 12, 2026
Merged

pdettori merged 1 commit into
rossoctl:mainfrom
pdettori:feat/mocactl-bundle-indicator

Conversation

@pdettori

Copy link
Copy Markdown
Member

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 (configRef set in sh:cp:session:*) was never sent a turn, while the prompt went to a session 18–28s newer with no configRef. The model then correctly reported no skills. The bundle itself was fine: mocactl run … --config <digest> listed the skill.

Change

  • Toast when the pending bundle is applied: session started with config bundle 4f3d663e — 1 skill.
  • Status-line field bundle 4f3d663e (info colour) for any attached session that has a configRef. It's absent for bundle-less sessions, so a later /new visibly lacks it. On narrow terminals it's dropped before the title.
  • Resume: the Sessions overlay now passes the summary's configRef to onResume, so the indicator also appears after resuming from /sessions.

Testing

  • New app tests: toast + status field on the promoted session, and no field on the following /new. Indicator after resuming a session whose summary has a configRef. Both failed before the change.
  • The Sessions overlay test now asserts the digest is passed to onResume.
  • vitest (mocactl): 811 passed. make lint and make typecheck are clean.

🤖 Generated with Claude Code

/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]>
@pdettori pdettori added the ready-for-ai-review Request automated AI code review from clawgenti label Oct 12, 2026

@ingpaolodettori-dev ingpaolodettori-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@pdettori
pdettori merged commit 9cc6d06 into rossoctl:main Oct 12, 2026
14 checks passed
@pdettori
pdettori deleted the feat/mocactl-bundle-indicator branch October 12, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants