mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): default-lock topbar capsule and hover context to main agent with toggle (#35)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user