Repository navigation
fix(chat): picking a chat-lens pane from a terminal-lens pane leaves the terminal's size alone - #390
Conversation
…the terminal's size alone The lens of the selected pane was set in an effect after the selection, but the pane's terminal attaches in the layout effect of the render that selects it. So a pane whose lens is chat attached in the previous pane's lens, without keep_size, and the shared terminal was fitted to this device once. The lens is now settled in the render that selects the pane.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe app now resolves its view from the current pane selection context. A new UI regression check verifies that switching from a chat-default browser to an agent pane does not resize the shared terminal. ChangesPane view and terminal size
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to Selecting a chat-lens pane from a terminal-lens pane should no longer resize the shared terminal. A regression check now covers this, and no merge-blocking issue was found. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change corrects shared-terminal sizing without adding an access path or privilege. Its scope is narrow, but concurrent attachment and recovery behavior remain only partly verified. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the problem, cause, change, and validation results. It does not include the screenshot or recording required for a UI change, and it uses “Checks” instead of the template’s “Validation” heading.
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…itch-size # Conflicts: # CHANGELOG.md
Bumps package.json and herdr-plugin.toml to 0.3.47, moves the Unreleased notes under [0.3.47] - 2026-10-03 (the two Fixed lists folded into one), and adds the compare link. Raises the remote PC bundle to 14 (new routes: `/api/tab/rename`, `/api/tab/close`): push the `remote-v14` tag and let the bundle workflow publish before running release.yml. Carries #374, #388, #389, #390, #391, #392, #394, #395. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <[email protected]>
What was wrong
#363 made the chat lens leave the shared terminal's size alone, but only when the page opens on the pane. Picking a chat-lens pane from the sidebar while a terminal-lens pane is open still resized it.
attachgoes out withoutkeep_size, and the desktop's pane is fitted to the smaller window.Cause:
src/App.tsxset the selected pane's lens in auseEffectafter the selection.PaneTerminalattaches in the layout effect of the render that selects the pane, so it still saw the previous pane's lens.Change
The lens is settled in the render that selects the pane (state adjusted during render, keyed by what the effect depended on). What decides the lens is unchanged: the pane's remembered choice, else Settings, else the device.
Checks
checkPaneSwitchKeepsTerminalSizeinscripts/chat-size-regression.ts, run byscripts/ui-regression.ts. Onmainit fails: the picked pane'sattachhas nokeep_size. With the fix it passes and the pane's ownstty sizestays 38 145.bun run typecheck: pass.bun run test:unit: 1083 pass, 3 skip, 0 fail.scripts/ui-regression.tsandscripts/file-viewer-regression.ts: all pass on an isolated herdr session.Not covered
The smaller findings from the same review of #363 are left as they are: a
resizethat arrives while akeep_sizeattachment is still being created is dropped, and the replay/geometry order for a client that adopts the grid.