Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#93123)

hermes-seaeye[bot]fc0b2a0ab36e
diff --git a/apps/desktop/electron/backend-python-coherence.test.ts b/apps/desktop/electron/backend-python-coherence.test.ts
index 753ec534547..a40734ee2aa 100644
--- a/apps/desktop/electron/backend-python-coherence.test.ts
+++ b/apps/desktop/electron/backend-python-coherence.test.ts
@@ -45,7 +45,10 @@ test('findPythonForRoot preference order includes .venv before venv (context for
assert.notEqual(venvIdx, -1, 'expected findPythonForRoot to probe .venv')
assert.notEqual(plainIdx, -1, 'expected findPythonForRoot to probe venv')
- assert.ok(venvIdx < plainIdx, '.venv is probed before venv — this ordering is what the hardcoded venvRoot below disagrees with')
+ assert.ok(
+ venvIdx < plainIdx,
+ '.venv is probed before venv — this ordering is what the hardcoded venvRoot below disagrees with'
+ )
})
// Fixed: createPythonBackend derives venvRoot from the selected interpreter
@@ -103,5 +106,9 @@ test('dual-venv root: site-packages must come from the venv that owns the select
const venvRoot = coherentVenvRootForPython(selected, '/repo')
assert.equal(venvRoot, '/repo/.venv')
- assert.notEqual(venvRoot, '/repo/venv', 'pairing a .venv interpreter with venv/ site-packages is the crash from the live repro')
+ assert.notEqual(
+ venvRoot,
+ '/repo/venv',
+ 'pairing a .venv interpreter with venv/ site-packages is the crash from the live repro'
+ )
})
diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsx
index c146b87ffb9..a8ac5529014 100644
--- a/apps/desktop/src/app/contrib/wiring.tsx
+++ b/apps/desktop/src/app/contrib/wiring.tsx
@@ -310,6 +310,7 @@ export function ContribWiring({ children }: { children: ReactNode }) {
const requestGateway = useCallback(
<T,>(method: string, params?: Record<string, unknown>, timeoutMs?: number, signal?: AbortSignal) => {
const routingSessionId = $focusedStoredSessionId.get() ?? selectedStoredSessionIdRef.current
+
const owner =
(routingSessionId ? sessionTileOwnerRoute(routingSessionId) : undefined) ??
rememberedSessionProfile($sessions.get(), routingSessionId, $activeGatewayProfile.get())
diff --git a/apps/desktop/src/sdk/index.ts b/apps/desktop/src/sdk/index.ts
index 7c8ec204e23..befb2bf46a8 100644
--- a/apps/desktop/src/sdk/index.ts
+++ b/apps/desktop/src/sdk/index.ts
@@ -735,11 +735,13 @@ export const host = {
// local open dials exactly as before (openGatewayForProfile), never the
// registry-secondary path.
const localConnectionId = activeGatewayConnectionId()
+
const ownerRoute =
explicitRoute ??
(options.workspaceMode === 'bots' && profile && localConnectionId
? { connectionId: localConnectionId, mode: 'local' as const, profile: targetProfile }
: null)
+
const expectHistory = options.expectHistory ?? false
if (options.workspaceMode === 'bots') {