Skip to content

Make Active Agents jump to live task terminals first#385

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/active-agents-terminal-controls-2026-04-23-17-11
Apr 23, 2026
Merged

Make Active Agents jump to live task terminals first#385
NagyVikt merged 1 commit intomainfrom
agent/codex/active-agents-terminal-controls-2026-04-23-17-11

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

Operators already use the Active Agents tree as a runtime control surface, so the session row should reveal the live terminal before it offers lower-value diff navigation. This patch swaps the inline diff action for a terminal action, matches live terminals by session pid when possible, falls back to a worktree terminal when needed, and routes Stop through Ctrl+C before the CLI fallback.

Constraint: Active session metadata exposes pid and worktree path but no durable VS Code terminal id
Rejected: Keep Open Diff inline | lower operator value than terminal reveal for live task control
Confidence: high
Scope-risk: narrow
Directive: Keep session terminal matching pid-first unless the launcher gains a stable terminal identity field
Tested: node --test test/vscode-active-agents-session-state.test.js; openspec validate agent-codex-active-agents-terminal-controls-2026-04-23-17-11 --type change --strict; openspec validate --specs
Not-tested: Real VS Code terminal matching against existing interactive terminals outside the mock processId flow
@NagyVikt NagyVikt merged commit 192425e into main Apr 23, 2026
@NagyVikt NagyVikt deleted the agent/codex/active-agents-terminal-controls-2026-04-23-17-11 branch April 23, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant