PR #9631 review: new-workspace chats start on the picked reasoning effort
Summary
When you launched a chat from the New Workspace composer, the chat used the picked model, but the reasoning effort always fell back to Default. This happened for two reasons. The desktop dropped the effort for chat launches. The host's chatLaunchTarget also treated "chat + effort" as a terminal launch, and createChatSession never forwarded effortId. The PR fixes both sides. The effort is validated like a terminal launch and passed to chat.commands.createSession, also on the sandbox self-seed path. A host-version floor (2.0.9) stops a new desktop from sending the effort to an older remote host, which would open a terminal instead of a chat.
Verdict
Looks good The fix is correct and minimal on both sides, and the compatibility gate is sound. Both regression tests fail on the base and pass at the head, and the end-to-end journey works in the real desktop app. The findings below are nits and one release-coordination question.
Findings
packages/shared/src/host-version.ts:125: CHAT_LAUNCH_EFFORT_MIN_HOST_VERSION = "2.0.9" is correct only if 2.0.9 is cut from a tree that contains this PR. If a 2.0.9 hotfix is cut from a release branch without it, a new desktop sends effort with surface: "chat" to that remote host. The host then opens a terminal, which is worse than today's "chat on Default".
Fix: Before you merge, check the version against the next planned release. Or bump the floor in the release PR that ships this change. A short line in the release runbook checklist also works.
apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/NewWorkspaceScreen.tsx:774-777: The gate is an anonymous boolean expression, passed as the 9th positional argument of useSubmitWorkspace. At the call site, you cannot see what it means.
Fix: Hoist it to const launchHostAppliesChatEffort = hostId === machineId || hostLaunchesChatWithEffort(...) and pass the name. This hook already has 9 positional parameters, so an options object would be the better long-term shape.
apps/mobile/screens/(authenticated)/hooks/useCreateTerminalWorkspace/useCreateTerminalWorkspace.ts:153: Mobile still strips the effort for chat launches. The PR description already lists this as a follow-up. A ticket would keep it from being lost.
Things I checked and found correct:
- The composer's effort ladder (
getAgentEffortsinNewWorkspaceScreen.tsx:618) is the same ladder thatvalidateAgentEffortSelectionchecks. A UI-picked effort therefore cannot be rejected by the new host validation. sessions.createwitheffortskips continuation (session-service.ts:131). This matchescontinuationConfiginagents.ts:618-626, which already refused to continue when an effort is set.- Treating
hostId === machineIdas "always applies" is safe. The local host-service is a non-detached child of the running app (host-service-coordinator.ts:986), so it is always the same build. - Cloud creates send the effort to the cloud API as before. Older sandbox images pass the effort to neither
chatLaunchTargetnorsessions.create, so they keep today's behaviour. - The tRPC change is additive only: one optional
effortonsessions.create. Old desktops never send an effort with a chat launch. - No user-facing strings changed, so there is no i18n impact.
Evidence
Desktop (dev build at dba8c8f7, driven over CDP on port 9333, renderer localhost:3005)
I used real clicks and typing through the New Workspace composer: Device "This device", project "No project". In this sandbox, Claude is not signed in, so no turn ran ("Sign in to continue"). The model and effort are applied at ACP session start and are shown in the chat's own picker.



aria-valuenow=3 of 5 (High).

aria-valuenow=1. The effort follows the pick and is not a remembered value.
ps showed claude --model opus --effort high …, so the terminal path is unchanged.
aria-checked=true; this capture was taken mid-animation. This changed the local dev account's setting in this sandbox only.I saw no tRPC BAD_REQUEST or uncaught errors in the desktop dev log during these runs.
Not run:
- Before-fix journey in the app. I did not rebuild the desktop on the base commit. Instead, I confirmed the regression at the unit level (see below). The author's page has before screenshots.
- Remote host on 2.0.8 or older (gate off), and a cloud workspace chat launch (
sandbox-self-seed). Neither is reachable from this sandbox. They are covered only by code reading. - Mobile is not changed by this PR.
Questions for the author
- Is 2.0.9 sure to be cut from main after this merges? If a hotfix branch could ship 2.0.9 first, a new desktop would turn chat launches on that remote host into terminals (see the first finding).
- For cloud creates,
seedPendingCloudChatnow storeschatEffortId(useSubmitWorkspace.ts:209). On a sandbox image older than this PR, the session starts on Default. Does the pane then show "High" until session info arrives, or does it apply the effort to the attached session? Either is fine, but it is useful to know which. - Is there a ticket for the mobile follow-up?
Test / CI notes
| What | Result |
|---|---|
bun test host-service agents.test.ts + sessions.test.ts | 84 pass, 0 fail |
The same tests with agents.ts, create-chat-session.ts and session-service.ts reverted to base ce98da26 | 2 fail: "keeps a chat launch a chat when it asks for an effort" and "starts the chat on the model and effort the launch picked". The regression tests are real. |
bun test shared host-version.test.ts | 15 pass |
bun test desktop DashboardNewWorkspaceModal + workspace-creates | 70 pass |
tsc --noEmit host-service, shared, desktop | clean |
GitHub CI at dba8c8f7 | All green: Lint, Typecheck, Test, Boot twice, Sherif, Version Sync, deploys, mobile build. E2E Mobile, Real sandbox and Production release were skipped. |