fix: gsd-debug-session-manager uses stale Task() dispatcher (#3462)

* fix(debug): use Agent dispatcher in session manager

* chore(changeset): set pr field for #3462
This commit is contained in:
Tom Boucher
2026-05-13 14:11:02 -04:00
committed by GitHub
parent 245d5f66a1
commit cc503ea725
3 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
type: Fixed
pr: 3462
---
**`/gsd-debug` session manager now dispatches via `Agent()`** — stale `Task()` invocation no longer collapses debugger work into inline execution.

View File

@@ -83,7 +83,7 @@ goal: {goal}
```
```
Task(
Agent(
prompt=filled_prompt,
subagent_type="gsd-debugger",
model="{debugger_model}",

View File

@@ -161,10 +161,15 @@ describe('debug skill dispatch and sub-orchestrator (#2148, #2151)', () => {
test('gsd-debug-session-manager agent exists with correct tools', () => {
const content = fs.readFileSync(path.join(process.cwd(), 'agents', 'gsd-debug-session-manager.md'), 'utf8');
assert.ok(content.includes('Task'), 'gsd-debug-session-manager missing Task tool');
assert.ok(content.includes('Agent'), 'gsd-debug-session-manager missing Agent tool');
assert.ok(content.includes('AskUserQuestion'), 'gsd-debug-session-manager missing AskUserQuestion tool');
});
test('gsd-debug-session-manager spawns debugger with Agent() dispatcher', () => {
const content = fs.readFileSync(path.join(process.cwd(), 'agents', 'gsd-debug-session-manager.md'), 'utf8');
assert.ok(content.includes('\nAgent('), 'session manager must dispatch debugger with Agent(');
});
test('gsd-debug-session-manager uses DATA_START/DATA_END for checkpoint responses', () => {
const content = fs.readFileSync(path.join(process.cwd(), 'agents', 'gsd-debug-session-manager.md'), 'utf8');
assert.ok(content.includes('DATA_START') && content.includes('DATA_END'),