Skip to content

The agent that grows with you

refactor(desktop): drop tile branch/cwd/personality projection from gap resume

teknium1016caffb8f0d
diff --git a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts
index f1d97483e2a..4c5cdd92bf5 100644
--- a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts
@@ -226,7 +226,7 @@ describe('useSessionTileDelegate resumeTile', () => {
$sessionTiles.set([{ ownerRoute, runtimeId: 'runtime-tile', storedSessionId: 'stored-tile' }] as never)
stashSessionDraft('stored-tile', 'unsent tile draft', [])
vi.mocked(requestGatewayForAgent).mockResolvedValueOnce({
- info: { model: 'snapshot-model', yolo: true },
+ info: { model: 'snapshot-model' },
message_count: 2,
messages: [
{ content: 'new prompt', role: 'user', timestamp: 1 },
@@ -252,7 +252,7 @@ describe('useSessionTileDelegate resumeTile', () => {
session_id: 'stored-tile'
})
expect(getLatestSessionMessages).not.toHaveBeenCalled()
- expect(states.current.get('runtime-tile')).toMatchObject({ busy: true, model: 'snapshot-model', yolo: true })
+ expect(states.current.get('runtime-tile')).toMatchObject({ busy: true, model: 'snapshot-model' })
expect(JSON.stringify(states.current.get('runtime-tile')?.messages)).toContain('new answer')
expect(states.current.get('runtime-tile')?.messages).toContainEqual(pending)
expect($activeSessionId.get()).toBe('runtime-foreground')
diff --git a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
index 80f927e2d90..c7d015fbae8 100644
--- a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
@@ -453,15 +453,10 @@ export function useSessionTileDelegate({
return {
...state,
- ...(typeof info?.branch === 'string' ? { branch: info.branch } : {}),
- ...(typeof info?.cwd === 'string' ? { cwd: info.cwd } : {}),
...(typeof info?.fast === 'boolean' ? { fast: info.fast } : {}),
...(typeof info?.model === 'string' ? { model: info.model } : {}),
- ...(typeof info?.personality === 'string' ? { personality: info.personality } : {}),
...(typeof info?.provider === 'string' ? { provider: info.provider } : {}),
...(typeof info?.reasoning_effort === 'string' ? { reasoningEffort: info.reasoning_effort } : {}),
- ...(typeof info?.service_tier === 'string' ? { serviceTier: info.service_tier } : {}),
- ...(typeof info?.yolo === 'boolean' ? { yolo: info.yolo } : {}),
awaitingResponse: running && !resumed.inflight?.assistant,
busy: running,
messages