feat(web-ui): add chat full-width tiled toggle backed by appearance token - #2431
Open
1688mengdie wants to merge 2 commits into
Open
feat(web-ui): add chat full-width tiled toggle backed by appearance token#24311688mengdie wants to merge 2 commits into
1688mengdie wants to merge 2 commits into
Conversation
added 2 commits
August 23, 2026 14:14
… action hook Avoid re-rendering FlowChatHeader on arbitrary app state changes by replacing the full useApp() subscription with useToggleChatFullWidth(), a fine-grained action that reads the current value straight from the app manager. The read side keeps using the existing useChatFullWidth() useSyncExternalStore hook.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a full-width tiled toggle to the chat FlowChatHeader. When enabled, the chat reading column (message list, composer, runtime-status, explore region, file-modifications bar) stretches edge-to-edge instead of capping at the hard-coded
900px; the layout returns to the centered900pxcolumn when toggled off, including when the chat pane is collapsed.A new appearance token
--bf-appearance-token-flowchat-content-max-width(default900px) replaces the hard-coded900px, so the full-width behavior is backed by the appearance token system.Closes #196
Type and Areas
Type: Feature / UI-UX
Areas: Web UI (also flows into desktop since it uses the web-ui)
Motivation / Impact
The chat reading column was capped at a fixed
900px, so on wide windows (or with side panels collapsed) users could not expand the conversation to use the available width, forcing a narrow centered column even when plenty of horizontal space existed. This adds an explicit full-width toggle so the user can choose between the narrow centered column and a full-width tiled chat.Verification
Local (already verified on the validated branch, before submission):
pnpm run type-check:web— passvitestfocused tests — 6 passed (includes the newsession-fullwidth-toggletest inFlowChatHeader.test.tsx)git diff --check(trailing whitespace) — cleanRemote: fork CI triggered on this PR (Frontend Build / Rust Build Check / CLI Tests / Cargo Deny / Shell Deploy).
Note: this is an AI-assisted change — test degree: 已测 (tested).
Reviewer Notes
Manual verification path (low risk, if you prefer to confirm visually):
900px.900pxcolumn.Checklist