Title: Add a thinking-level (reasoning effort) picker to the chat composer by DragonnZhang · Pull Request #45 · modelstudioai/openwork · GitHub
Open Graph Title: Add a thinking-level (reasoning effort) picker to the chat composer by DragonnZhang · Pull Request #45 · modelstudioai/openwork
X Title: Add a thinking-level (reasoning effort) picker to the chat composer by DragonnZhang · Pull Request #45 · modelstudioai/openwork
Description: Closes #44 What & why Comparable desktop apps let you dial reasoning effort right from the composer — Claude Code Desktop ships a dedicated effort menu (⌘⇧E) next to its model menu. OpenWork supports six per-session thinking levels (off / low / medium / high / xhigh / max) but had no way to change the level from the chat composer — the only control was Settings → AI, which sets a per-workspace default for new chats. Raising effort for a single hard task meant leaving the conversation, editing settings, and starting over. The composer already had the neighbor for it (the model picker), and the plumbing was already in place: thinkingLevel / onThinkingLevelChange are threaded from ChatPage / DraftChatPage → ChatDisplay → ChatInputZone → InputContainer → FreeFormInput, and both pages already persist the value. Only the UI trigger was missing. This adds a thinking-level picker to the composer toolbar, immediately before the model picker and mirroring it: a toolbar button showing the current level's name with a brain icon + chevron (tooltip "Thinking"), opening it lists all six levels (name + description) with a check on the active level, and on select calls the already-wired onThinkingLevelChange(level) — so the choice persists exactly like a model change, hidden in compactMode (same rule the model picker uses). Frontend-only. It renders a Radix dropdown (the same StyledDropdownMenu* primitives the model picker uses) and calls the existing onThinkingLevelChange prop — the value already flows to the runtime today, so there is no backend / qwen-code change. No new i18n keys: level names/descriptions reuse the existing thinking.* keys and the trigger tooltip reuses settings.ai.thinking. Changes components/app-shell/input/FreeFormInput.tsx — the thinking-level dropdown (new thinkingDropdownOpen state; destructure the previously-unused onThinkingLevelChange prop; render the picker from THINKING_LEVELS). e2e/assertions/thinking-level-picker.assert.ts — new CDP assertion (below). Verification bun run typecheck:all — introduces no new errors. Delta vs main is zero; the only errors are the same pre-existing ones unrelated to this change (auto-update.ts, a settings-default-thinking test tuple, and two test files importing vitest). None are in the file this PR touches. bun test — identical to main: 3578 pass / 56 fail on both this branch and main in the same environment (the 56 failures are pre-existing: BrowserCDP, pet/RPC registration profiles, i18n sorted-parity checks, etc.). This change adds zero new failures. bun run lint:i18n:parity — OK (6 locales, 1542 keys each). No new keys. Renderer build (bun run build:renderer, where this change lives) — ✅ builds cleanly. CDP e2e assertion (thinking-level-picker.assert.ts) The assertion drives the real built app over CDP: it waits for the ready AppShell, asserts the composer renders the thinking-level trigger, opens the menu and asserts all six levels are listed with exactly one marked selected (matching the trigger label), then selects a different level and asserts the menu closes and the trigger label updates to the chosen level — proving the picker actually changes the session's thinking level, not merely displays a list. ⚠️ Local CDP run was blocked by this sandbox's egress policy, not by the feature. The Electron binary download and the libsignal GitHub dependency (pulled in transitively by the WhatsApp/Baileys worker that electron:build bundles) both return 403 from the egress proxy, so the app can't be built or launched here. The assertion is included so CI / a reviewer can run bun run e2e in an environment with normal network access. Everything that does not require launching Electron (typecheck, unit tests, i18n parity, renderer build) passes with zero delta vs main. Part of the autonomous desktop-feature loop (loop-bot).
Open Graph Description: Closes #44 What & why Comparable desktop apps let you dial reasoning effort right from the composer — Claude Code Desktop ships a dedicated effort menu (⌘⇧E) next to its model menu. OpenWork su...
X Description: Closes #44 What & why Comparable desktop apps let you dial reasoning effort right from the composer — Claude Code Desktop ships a dedicated effort menu (⌘⇧E) next to its model menu. OpenWor...
Opengraph URL: https://github.com/modelstudioai/openwork/pull/45
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:72fcde69-92ef-281b-482a-43840d3233da |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C510:3998FC:0741:08E6:6A52BACC |
| html-safe-nonce | f27e0b9e11d2b5df753142df462277d4d4cc5bf9c25c5a9d3316e18509644166 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTEwOjM5OThGQzowNzQxOjA4RTY6NkE1MkJBQ0MiLCJ2aXNpdG9yX2lkIjoiOTIxNTQyMDY5MjY2OTA1MzY0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2ad98684098fef639ab69fd8ddb1dff93a08b4d9dda3223b651a8925e7f1d7c0 |
| hovercard-subject-tag | pull_request:3974931190 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelstudioai/openwork/pull/45/files |
| twitter:image | https://avatars.githubusercontent.com/u/52599892?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/52599892?s=400&v=4 |
| og:image:alt | Closes #44 What & why Comparable desktop apps let you dial reasoning effort right from the composer — Claude Code Desktop ships a dedicated effort menu (⌘⇧E) next to its model menu. OpenWork su... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelstudioai/openwork git https://github.com/modelstudioai/openwork.git |
| octolytics-dimension-user_id | 283556804 |
| octolytics-dimension-user_login | modelstudioai |
| octolytics-dimension-repository_id | 1256697754 |
| octolytics-dimension-repository_nwo | modelstudioai/openwork |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1256697754 |
| octolytics-dimension-repository_network_root_nwo | modelstudioai/openwork |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width