Auto-spawn control plane and notify user when new zellij session is created #219
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.
Summary
When the orchestrator spawns a new zellij session, this change automatically:
Previously, control plane spawning and user notification were inconsistent when a new zellij session was created.
Changes
internal/zellij/zellij.go: ModifiedEnsureSessionto return a boolean indicating whether a new session was createdinternal/control/spawn.go: AddedInitializeSessionhelper function that consolidates session + control plane initializationcmd/work.go:printSessionCreatedNotificationto display attach instructionsInitializeSessioninrunWorkCreatefor both--autoand regular pathsinternal/tui/tui_plan.go: ExtendedplanWorkCreatedMsgto carry session creation statusinternal/tui/tui_plan_work.go: IntegratedInitializeSessionand updated status message to show attach command when new session createdinternal/claude/runner.go: Updated allEnsureSessioncall sites to use new signature (ignoring return value where appropriate)Issues Resolved
ac-yssc: zellij: when we spawn a new zellij sessionac-yssc.1: Modify EnsureSession to return created flagac-yssc.2: Create session initialization helper with control plane spawnac-yssc.3: Display user notification when new zellij session is spawnedac-yssc.4: Update call sites to use new session initializationTesting
go buildcompletes successfullygo test ./...passes🤖 Generated with Claude Code