Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions specification/bug-classes/interactive-launcher-mode-mismatch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"schemaVersion": 1,
"revision": "0ef98562a1f2342c20a21544a660c8f55f07fa9c",
"bugClass": {
"id": "interactive-launcher-mode-mismatch",
"title": "Interactive sessions launch in one-shot mode",
"cause": "An interactive session is started with a one-shot or print-mode CLI flag, so the process emits a single response and exits instead of remaining available for chat. Similar failures can occur when terminal-delivery gates recognize only a fixed set of agent types and omit another interactive launcher. One-shot batch processes that intentionally return one result and exit are outside scope.",
"criteria": "Classify another site when its interactive session launcher uses a print, one-shot, or otherwise non-interactive mode that exits after one response, or when interactive terminal-delivery routing gates only on a fixed agent allowlist and omits an interactive launcher. Either mechanism is sufficient. Exclude batch task processes designed to produce one result and exit.",
"patterns": [
{
"kind": "text",
"value": "--print",
"weight": 5
},
{
"kind": "text",
"value": "--prompt-interactive",
"weight": 5
},
{
"kind": "text",
"value": "--prompt",
"weight": 2
},
{
"kind": "text",
"value": "interactive",
"weight": 2
},
{
"kind": "text",
"value": "tmux",
"weight": 2
},
{
"kind": "text",
"value": "claude",
"weight": 1
},
{
"kind": "text",
"value": "codex",
"weight": 1
},
{
"kind": "call",
"value": "spawnSync",
"weight": 2
},
{
"kind": "call",
"value": "execFileSync",
"weight": 2
},
{
"kind": "call",
"value": "exec",
"weight": 1
},
{
"kind": "call",
"value": "spawn",
"weight": 2
},
{
"kind": "call",
"value": "includes",
"weight": 1
}
],
"contextTerms": ["interactive", "print", "prompt", "tmux", "claude", "codex"],
"pathHints": [
{
"contains": "src/cli/",
"weight": 5
},
{
"contains": "src/commands/",
"weight": 4
},
{
"contains": "src/workflows/",
"weight": 3
},
{
"contains": "src/services/",
"weight": 2
},
{
"contains": "packages/desktop/",
"weight": 1
},
{
"contains": "packages/hub/",
"weight": 1
},
{
"contains": "test/",
"weight": -3
},
{
"contains": "specification/",
"weight": -2
},
{
"contains": "worker",
"weight": -2
},
{
"contains": "server",
"weight": -2
}
]
}
}
67 changes: 67 additions & 0 deletions specification/loops/tracker-gemini-interactive/loop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "tracker-gemini-interactive",
"goal": "Keep managed Gemini Tracker chats interactive in tmux, deliver Hub messages and replies, and preserve exit diagnostics.",
"createdAt": "2026-11-30T20:30:58.605Z",
"updatedAt": "2026-11-30T20:49:23.505Z",
"template": "bug-fix",
"templateLineage": ["bug-fix"],
"enforceOrder": true,
"regressionCommits": 1,
"steps": [
{
"id": "spec",
"title": "Identify the failing behavior, expected behavior, and reproduction.",
"status": "complete",
"completedAt": "2026-11-30T20:32:21.905Z",
"evidence": "Tracker runs #1907 #1939 #1944 declared readiness and exited 0; agy help confirms --print exits after one turn and --prompt-interactive continues."
},
{
"id": "coverage",
"title": "Explain why existing standardized tests missed the bug; name the scenario, fixture, lifecycle or assertion gap and reusable test change.",
"status": "complete",
"completedAt": "2026-11-30T20:32:23.712Z",
"evidence": "Managed Gemini launcher test requires --print and ends on the first response. Change its mock to distinguish persistent interactive launch, terminal exit diagnostics and model preflight. Existing Hub idle composer tests omit Gemini. Unit mocks replace the provider executable, so no subscription request is possible. One live Neon medium round trip should take about 1–3 minutes and use the existing subscription with G1 credits disabled."
},
{
"id": "red",
"title": "Strengthen the existing standardized test; commit it before repair, run it failing with loop record --phase red, and preserve the assertion.",
"status": "complete",
"completedAt": "2026-11-30T20:44:54.343Z",
"evidence": "Combined frozen fixtures at ed58e4696d fail: --print instead of interactive, Gemini send returns false, and provider composer classification is missing."
},
{
"id": "implement",
"title": "Implement the smallest repair without weakening the regression test.",
"status": "complete",
"completedAt": "2026-11-30T20:44:56.770Z",
"evidence": "Open interactive agy through the managed worker, reuse guarded tmux send/Enter, respect workspace trust, and classify Gemini exits without storing provider text."
},
{
"id": "green",
"title": "Rerun the same unchanged regression test at a separate fix commit with loop record --phase green; preserve passing proof.",
"status": "complete",
"completedAt": "2026-11-30T20:47:50.295Z",
"evidence": "Three unchanged fixtures passed in a clean snapshot with the same execution environment."
},
{
"id": "siblings",
"title": "Run harness loop siblings to record the root cause and evaluate the same pattern across committed source.",
"status": "complete",
"completedAt": "2026-11-30T20:49:23.505Z",
"evidence": "siblings-2a8f8140-530b-496c-91c1-b33fa57111a7.json"
},
{
"id": "verify",
"title": "Run relevant project checks and affected UI browser flows with fresh inspected screenshots and no unexpected browser errors; preserve diagnostics and keep pending until proof passes.",
"status": "pending"
}
],
"evaluators": [
{
"id": "check",
"title": "Run the project check script.",
"command": "bun run check",
"step": "verify"
}
]
}
Loading
Loading