feat(panel): default-lock topbar capsule and hover context to main agent with toggle (#35)

This commit is contained in:
fish
2026-11-22 17:09:00 +09:00
parent 1b61ae0258
commit 97ef8b5ea5
22 changed files with 799 additions and 58 deletions
+11
View File
@@ -1276,4 +1276,15 @@ test('Frontend Swarm formatters, bilingual i18n, LiveActivityWidget priority sor
await Promise.resolve();
assert.equal(uiStore.getState().selectedAgentScope, 'all');
assert.equal(uiStore.getState().ctxInspectorAgentId, 'auto');
// Issue #35: Manual `'main'` lock before entering child route `/c/<w2>` must be restored on return to `/c/<rootId>`
uiStore.setState({ selectedAgentScope: 'all', ctxInspectorAgentId: 'main' }, { sync: true });
telemetryStore.setState({ hostRouteConversationId: w2 });
await Promise.resolve();
assert.equal(uiStore.getState().selectedAgentScope, w2);
assert.equal(uiStore.getState().ctxInspectorAgentId, w2);
telemetryStore.setState({ hostRouteConversationId: rootId });
await Promise.resolve();
assert.equal(uiStore.getState().selectedAgentScope, 'all');
assert.equal(uiStore.getState().ctxInspectorAgentId, 'main');
});