Skip to content

Replace composer zen mode with collapse control - #2254

Merged
ymichael merged 1 commit into
mainfrom
bb/improve-composer-zen-mode-toggle-thr_t5wcyfj84x
Aug 21, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/improve-composer-zen-mode-toggle-thr_t5wcyfj84x

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

What was wrong

The composer zen toggle introduced a separate persisted layout when the actual reading problem was that wide follow-up composers could not be collapsed. The normal editor could also consume the full viewport cap before its action row was added, making the regular composer taller than the intended expanded bound.

What changed

  • Replaced the desktop follow-up zen toggle with a collapse control that reuses the compact one-line presentation and expands again on focus.
  • Removed zen-mode state, persistence, layout, keyboard behavior, stale CSS selectors, and related configuration documentation.
  • Scoped manual collapse state to the active composer and kept the existing mobile focus-driven behavior.
  • Reserved action-row space in the thread and root-compose editor height caps.
  • No host-daemon wire behavior changed; HOST_DAEMON_PROTOCOL_VERSION is unchanged.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/app --only --force
  • pnpm exec turbo run test --filter=@bb/app --only --force -- src/components/promptbox/PromptBoxInternal.test.tsx src/components/promptbox/FollowUpPromptBox.test.tsx src/components/plugin/PluginNewThreadComposer.test.tsx (151 tests passed)
  • pnpm exec turbo run lint --filter=@bb/app --only --force (0 errors; 157 existing warnings)
  • pnpm exec turbo run generate:templates --filter=@bb/templates --force
  • pnpm exec turbo run test --filter=@bb/templates --only --force (41 tests passed)
  • Manually verified the wide expanded/collapsed states, focus restoration, and the hot-reloaded shared dev server.

Fixes: none (direct product request)

AGENT GENERATED: by GPT-5 Codex

@ymichael
ymichael merged commit e27b930 into main Aug 21, 2026
13 checks passed
@ymichael
ymichael deleted the bb/improve-composer-zen-mode-toggle-thr_t5wcyfj84x branch August 21, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant