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:
5
.changeset/eager-lynx-munch.md
Normal file
5
.changeset/eager-lynx-munch.md
Normal 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.
|
||||||
@@ -83,7 +83,7 @@ goal: {goal}
|
|||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
Task(
|
Agent(
|
||||||
prompt=filled_prompt,
|
prompt=filled_prompt,
|
||||||
subagent_type="gsd-debugger",
|
subagent_type="gsd-debugger",
|
||||||
model="{debugger_model}",
|
model="{debugger_model}",
|
||||||
|
|||||||
@@ -161,10 +161,15 @@ describe('debug skill dispatch and sub-orchestrator (#2148, #2151)', () => {
|
|||||||
|
|
||||||
test('gsd-debug-session-manager agent exists with correct tools', () => {
|
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');
|
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');
|
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', () => {
|
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');
|
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'),
|
assert.ok(content.includes('DATA_START') && content.includes('DATA_END'),
|
||||||
|
|||||||
Reference in New Issue
Block a user