feat(ui): add local-agent disconnect control (#143)
This commit is contained in:
1 parent
85af936583
commit
a606adf038
2 files changed
+26
-1
No files matched your search
@@ -108,6 +108,14 @@ describe('local API authorization hardening invariants', () => {
|
||||
expect(uiSource).toMatch(/\['codex', 'mock', 'local', 'local-agent'\]/);
|
||||
});
|
||||
|
||||
it('Settings can disconnect a local agent without silently reconnecting it', () => {
|
||||
expect(uiSource).toMatch(/onclick="disconnectLocalAgent\(\\'/);
|
||||
expect(uiSource).toContain("api('/api/agents/local/disconnect', { id: id })");
|
||||
expect(uiSource).toContain("if (getActiveAgent() === id) setActiveAgentStored('')");
|
||||
expect(uiSource).toContain('persistConnected(ids)');
|
||||
expect(uiSource).toContain('delete pingStatus[id]');
|
||||
});
|
||||
|
||||
it('Full Auto resumes with the exact approved receipt instead of minting another', () => {
|
||||
const start = uiSource.indexOf('async function generalFullAuto(');
|
||||
const end = uiSource.indexOf('/**\n * REQUEST SITREP', start);
|
||||
|
||||
Reference in new issue
Block a user