fix(ui): drop transient restore status and align MCP expand hint with configured keybinding - #1689
Conversation
Assistant-model: GPT-5.5
Review — LGTM ✅Small, well-scoped cleanup. I traced both restore code paths and the MCP renderer change; everything is consistent and the tests are focused and meaningful. Correctness
Tests
Changelog
Minor (non-blocking) nits
Nice, tight PR. 👍 |
Assistant-model: GPT-5.5
Review: fix(ui): clean up queued-restore status and Ctrl+o keybinding copyThanks for this — it's a focused, well-scoped cleanup with genuinely good test coverage for its size. Both source changes are low-risk and the new tests exercise real code paths. A few notes, none blocking. Correctness / behavior — 👍
Main suggestion: prefer the dynamic keybinding over a hardcoded stringThe renderer hardcodes the hint text: ? `\n${theme.fg("muted", "(Ctrl+o Expand)")}`The rest of the CLI derives this from the keybinding registry via ? `\n${theme.fg("muted", `(${keyText("app.tools.expand")} Expand)`)}`Two benefits: it stays correct if a user rebinds expand (the hardcoded string silently lies after a rebind), and it inherits casing automatically. There's direct precedent for exactly this move in the changelog — "Use configurable Casing nit re: "CLI-wide Ctrl+o branding"The Tests — 👍
Changelog / docsBoth changelog entries are under Overall LGTM — the dynamic-keybinding suggestion is the only thing I'd genuinely encourage before merge; the rest is optional polish. |
Assistant-model: GPT-5.5
Review — PR #1689: clean up queued-restore status and
|
Assistant-model: GPT-5.5
Review: fix(ui) — clean up queued-restore status and Ctrl+o keybinding copyThanks for the cleanup! The queued-restore status removal is tidy and well-covered, and switching the MCP hint to the configured keybinding is the right direction. I found one meaningful test-quality issue and a couple of copy/consistency nits worth addressing. 🔴
|
# Conflicts: # packages/coding-agent/CHANGELOG.md # packages/mcp/CHANGELOG.md
|
PR Review — fix(ui): clean up queued-restore status and Ctrl+o keybinding copy Overall this is a clean, well-scoped change. The keybinding fix is nicely aligned with existing conventions, the status removal is correct, and it comes with real test coverage and changelog entries. A few notes below. 🟡 Duplicate assertion (minor cleanup) In ✅ Keybinding copy fix — well done
✅ Status removal — correct and verified Both restore paths ( ✅ Test coverage The new 📝 Nit — PR description drift The description mentions adding fakes/assertions to None of these are blocking. Nice, tidy UI-copy cleanup with matching tests and changelog entries. |
Summary
Removes the transient "Restored N queued message(s) to editor" status from both queued-message restore paths, and switches the MCP tool-result expand hint from a hardcoded
CTRL+O Expandstring to the actual configuredapp.tools.expandkeybinding (matching how built-in tools likeread,ls, andgrepalready render their expand hints).Changes
packages/coding-agent: removed thenotifyChatSessionStatus/showStatuscalls that surfacedRestored N queued message(s) to editorinrestoreQueuedMessagesToEditor(chat-session-host-actions.ts) and the dequeue handler (interactive-process-lifecycle.ts), while preserving the underlying restore behavior and the existing "No queued messages to restore" status.packages/mcp:tool-result-renderer.tsnow renders the collapsed-result expand hint viakeyText("app.tools.expand")instead of the hardcodedCTRL+Ostring, and exportsMcpToolResultDetailsfor test coverage;README.md's usage table example was updated fromCTRL+O ExpandtoCtrl+o Expandto match.test/unit/chat-session-host-02.test.ts(asserts no "Restored ... queued message" status is shown) and a newtest/unit/mcp-tool-result-renderer.test.tscovering the collapsed/expanded hint copy and truncation behavior.[Unreleased]changelog entries forpackages/coding-agentandpackages/mcp.Validation
bun test test/unit/chat-session-host-02.test.ts test/unit/mcp-tool-result-renderer.test.ts— 7 pass / 0 fail.bun run typecheck— passed.bun run check:file-length— passed.bun run lint,bun run check:file-length, andbun run test:unit.