You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the agent launcher feel like a terminal cockpit (#491)
The existing panel was functionally interactive but still looked like a compact form. This change gives gx agents start --panel the dmux-style shell the operator expects: blue GitGuardex rail, matrix field, centered welcome card, and keyboard-first new-agent affordance.
Constraint: Preserve existing branch planning, dry-run output, and session behavior.
Rejected: Replace gx default status with the launcher | too broad for this panel-focused request.
Confidence: high
Scope-risk: narrow
Directive: Keep branch/worktree/session logic out of the renderer; this surface is presentation and key handling only.
Tested: node --test test/agents-selection-panel.test.js test/agents-start-dry-run.test.js test/agents-start.test.js test/cli-args-dispatch.test.js test/agents-start-claims.test.js
Tested: node --check src/agents/selection-panel.js && node --check src/agents/start.js
Tested: openspec validate agent-codex-blue-dmux-gx-agent-launcher-2026-04-30-11-18 --type change --strict
Tested: node bin/multiagent-safety.js agents --target /home/deadpool/Documents/recodee/gitguardex start 'fix auth tests' --panel --codex-accounts 3 --base main --dry-run
Not-tested: Real interactive terminal screenshot capture; verified through TTY-render unit coverage and dry-run smoke output.
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>
`gx agents start --panel` already supports interactive selection, but its visual shell is still a compact form. Operators expect the launcher to open like dmux: a full terminal surface with a left project rail, a matrix-style main field, a centered brand card, and keyboard-first create flow.
6
+
7
+
## What Changes
8
+
9
+
- Render the agent start panel as a dmux-style full-terminal GitGuardex shell.
10
+
- Use a blue/cyan terminal palette for the TTY surface.
11
+
- Preserve existing dry-run, multi-account planning, and keyboard selection behavior.
12
+
- Add `[n]` as a launch alias so the welcome prompt matches the dmux-style "new agent" affordance.
13
+
14
+
## Impact
15
+
16
+
The change is isolated to the `gx agents start --panel` renderer/controller and focused tests. It does not alter branch creation, lock claims, sessions, finish flow, or non-panel agent startup.
### Requirement: Panel uses blue dmux-style terminal shell
4
+
5
+
`gx agents start <task> --panel` SHALL render a full-terminal GitGuardex launcher shell with a blue/cyan visual style, a left project rail, a matrix-style main field, and a centered GitGuardex welcome card.
6
+
7
+
#### Scenario: scripted panel output includes dmux shell
8
+
9
+
-**WHEN**`gx agents start "fix auth tests" --panel --codex-accounts 3 --dry-run` runs without a TTY
10
+
-**THEN** the output SHALL include a left `gitguardex` rail
11
+
-**AND** the output SHALL include a `Welcome` main field
12
+
-**AND** the output SHALL include `Press [n] or Enter to create a new agent`
13
+
-**AND** the command SHALL keep printing dry-run plans as before.
14
+
15
+
#### Scenario: TTY panel uses blue ANSI styling
16
+
17
+
-**WHEN** an operator runs `gx agents start "fix auth tests" --panel --codex-accounts 1 --dry-run` in a TTY
18
+
-**THEN** the interactive panel SHALL render with blue/cyan ANSI styling
19
+
-**AND** it SHALL preserve keyboard controls for navigation, toggling, Codex account count, launch, and cancel.
20
+
21
+
#### Scenario: operator launches with new-agent shortcut
22
+
23
+
-**WHEN** an operator presses `n` in the interactive panel
24
+
-**THEN** the command SHALL launch the selected agent plan the same way Enter does.
0 commit comments