Title: Add a "Conversation width" setting (Comfortable / Wide / Full) to Appearance by DragonnZhang · Pull Request #63 · modelstudioai/openwork · GitHub
Open Graph Title: Add a "Conversation width" setting (Comfortable / Wide / Full) to Appearance by DragonnZhang · Pull Request #63 · modelstudioai/openwork
X Title: Add a "Conversation width" setting (Comfortable / Wide / Full) to Appearance by DragonnZhang · Pull Request #63 · modelstudioai/openwork
Description: Closes #62 What & why OpenWork rendered the chat transcript and the composer inside a single fixed reading column — CHAT_LAYOUT.maxWidth = max-w-[840px] — with no way to change it. On large/ultrawide displays that wastes most of the window, and code-heavy conversations (wide diffs, long tool output, tables) get needlessly wrapped. Comparable desktop clients all expose this: Claude Desktop (wider chat), ChatGPT desktop (chat width), Codex / VS Code (content width). This adds the same affordance to OpenWork's Appearance page. Changes context/ConversationWidthContext.tsx — new renderer-only preference (comfortable | wide | full), persisted in localStorage (craft-conversation-width), mirroring the merged ReduceMotionContext (#51). It reflects the choice onto as data-conversation-width and drives a CSS custom property --chat-content-max-width (840px / 1100px / none). ChatDisplay.tsx / ChatInputZone.tsx — the transcript container and the composer now read max-width: var(--chat-content-max-width, 840px). The 840px fallback means the shared web viewer (packages/ui) and compact/popover embeddings are untouched. AppearanceSettingsPage.tsx — a segmented control in the Interface section, right below "Reduce motion". SettingsSegmentedControl.tsx — small, backward-compatible testId prop (group + per-option data-testid) for e2e targeting. local-storage.ts — new conversationWidth key. i18n — 5 new keys across all 7 locales (en, zh-Hans, de, es, ja, hu, pl). Frontend-only — no qwen-code backend change. Verification (DoD) bun run typecheck:all — my files clean; zero-delta vs main (identical pre-existing error set). bun test — zero-delta vs main (56-failure baseline set byte-identical; i18n locale-parity outcomes unchanged). bun run electron:build:renderer — ✅ builds (all changed code is renderer + locales). CDP assertion e2e/assertions/conversation-width.assert.ts — drives the real Settings → Appearance UI, cycles all three options, and asserts for each: the radio aria-checked state, the data-conversation-width attribute on , the computed --chat-content-max-width CSS variable (840px/1100px/none), and the persisted localStorage value — proving it applies and reverts. Environment note: the CDP assertion could not be executed in this sandbox — outbound egress returns 403 for the Electron binary download and for the libsignal-node / whiskeysockets/eslint-config git-tarball deps, so electron:build:main, the full bun run build lint step, and launching Electron all fail before the app starts. These are pre-existing environment blockers (the same egress limit recorded for the merged #51), not regressions from this change. The assertion mirrors the merged reduce-motion assertion's exact CDP API and is ready to run in CI where the Electron binary is available. Generated by Claude Code
Open Graph Description: Closes #62 What & why OpenWork rendered the chat transcript and the composer inside a single fixed reading column — CHAT_LAYOUT.maxWidth = max-w-[840px] — with no way to change it. On large/ult...
X Description: Closes #62 What & why OpenWork rendered the chat transcript and the composer inside a single fixed reading column — CHAT_LAYOUT.maxWidth = max-w-[840px] — with no way to change it. On large...
Opengraph URL: https://github.com/modelstudioai/openwork/pull/63
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:27ce2476-8aee-f7ac-800b-b3f8dcafe255 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC0E:1FA9F9:136FED3:1A65090:6A54591F |
| html-safe-nonce | 18ce846d8c096acc887c24711fe1ed1d3f4836ef4d84297dda630a3a608fe53a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzBFOjFGQTlGOToxMzZGRUQzOjFBNjUwOTA6NkE1NDU5MUYiLCJ2aXNpdG9yX2lkIjoiMjM0ODUzODA4NTc2MTU3OTgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c0488e59970b270512fe1d6e73ffb03010c130a2abd18e2ab0ee6e25298277ea |
| hovercard-subject-tag | pull_request:3999222447 |
| 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/63/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 #62 What & why OpenWork rendered the chat transcript and the composer inside a single fixed reading column — CHAT_LAYOUT.maxWidth = max-w-[840px] — with no way to change it. On large/ult... |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width