Merge 'refactor(prime-agent): tray status only' into main
Some checks failed
Some checks failed
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -537,12 +537,12 @@ describe('config prime-agent', () => {
|
|||||||
await cmd.parseAsync(['prime-agent', '--project', 'ha', '-o', settingsPath, '--skip-skills', '--token', 'mcpctl_pat_x'], { from: 'user' });
|
await cmd.parseAsync(['prime-agent', '--project', 'ha', '-o', settingsPath, '--skip-skills', '--token', 'mcpctl_pat_x'], { from: 'user' });
|
||||||
|
|
||||||
const ext = readFileSync(join(tmpDir, 'extensions', 'mcpctl-switch.ts'), 'utf-8');
|
const ext = readFileSync(join(tmpDir, 'extensions', 'mcpctl-switch.ts'), 'utf-8');
|
||||||
// prime-agent stores extension statuses but never renders them, so a
|
// Both hosts render statuses next to the model name (pi in its footer,
|
||||||
// setStatus-only indicator is invisible there. Widgets are rendered.
|
// prime-agent in the tray — the latter via prime-agent-extension-status.patch).
|
||||||
expect(ext).toContain('ctx.ui.setWidget(STATUS_KEY');
|
|
||||||
expect(ext).toContain("placement: 'belowEditor'");
|
|
||||||
// Still set the status: pi's footer does render it.
|
|
||||||
expect(ext).toContain('ctx.ui.setStatus(STATUS_KEY');
|
expect(ext).toContain('ctx.ui.setStatus(STATUS_KEY');
|
||||||
|
// The widget was a workaround for the unpatched tray; it scrolled away with
|
||||||
|
// the transcript, so it is not a status line and must not come back.
|
||||||
|
expect(ext).not.toContain('setWidget');
|
||||||
// prime-agent emits session_start only from reload(), never at startup, so
|
// prime-agent emits session_start only from reload(), never at startup, so
|
||||||
// a session_start-only indicator stays blank until the first switch.
|
// a session_start-only indicator stays blank until the first switch.
|
||||||
expect(ext).toContain("pi.on('turn_start'");
|
expect(ext).toContain("pi.on('turn_start'");
|
||||||
|
|||||||
Reference in New Issue
Block a user