Repository navigation
fix(prompt): link a Claude command's question beside its diff panel to the send (#2050) - #2199
Conversation
…o the send (#2050) outcome.ts now reads a Claude screen on the session's side of the fullscreen side panel, as parsePrompt does, so a skill sent from Chat whose question appears beside /diff is linked to its receipt. withoutClaudeSidePanel computes each row's edges once, and its comment no longer states the 110-column width as checked.
…and keep the top-row early exit Review follow-ups on #2050: a table's divider can pass for the panel's edge on a send's screen and not the next, and cutting one side alone lost the send's anchor (Codex). Screens read against each other are now cut only when each shows the panel. withoutClaudeSidePanel again turns away a screen whose top row has no edge before measuring every row (omo).
… across the panel cut Review follow-up on #2050 (Codex): a reservation counted on screens read as drawn and an ownership read on screens cut at the panel could number echoes differently and hand a terminal command's question to a Chat send. A reservation now reads every same-command screen alike and records how; ownership read the other way owns nothing.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Merging b0756b2: omo-native-code-reviewer and Codex both pass this head. The new test fails on main, and five extra scenarios show no wrong link and no regression; the common case without the panel is unchanged. Prompt answers still go only through |
Fixes #2050 (follow-ups from #1984).
What was wrong
With Claude Code's fullscreen diff panel open (
/diffon a wide pane),parsePromptreads a question by cutting each row at the panel's edge (#1984), but the command-outcome code inserver/outcome.tsstill read the uncut screen. The echo of a Chat send (❯ /reviewfollowed by the panel's text) then never matched, so a skill sent from Chat that asks a question beside the panel got its card, but the send was not linked to it. Its receipt stayedacceptedinstead ofinteraction-required.What changes
server/outcome.ts: a Claude screen is read on the session's side of the panel (withoutClaudeSidePanel, the same cutparsePromptuses) when the screens being compared are read. Two guards keep ownership from being misassigned:readAlike). A table's divider can pass for the panel's edge on one screen and not on the next, and cutting only one side lost the anchor between them.countedCut). Ownership read the other way owns nothing: echoes counted on uncut screens and then read on cut ones can number differently, and that handed a question from a command typed in the terminal to a Chat send.server/dialogs/claude.ts(withoutClaudeSidePanel): each row's edges are measured once instead of for every candidate column. The early exit for a screen whose top row has no edge is kept, so screens without the panel cost what they did before (about 0.03 ms on a 60x180 screen). The comment no longer presents 110 columns as a width the code checks.dialogSettlingScreenreads screens as main does.Left on #2050
Bun.stringWidthmeasures: the screen is left uncut, so the old behaviour holds (no card), never a wrong cut.Tests (
server/outcome.test.ts, integrated dialog readers)links a skill's question beside Claude's fullscreen diff panel to its send: before the fix the receipt staysaccepted; it passes after.keeps a skill's question linked when only its send's screen looks like a side panel: Codex's first review finding, fails on the first commit.gives no send a terminal command's question when its echoes were counted without the panel's cut: Codex's second review finding, fails on the second commit.Each test was run failing before its fix and passing after.
bun run check fastpasses: typecheck, build, and 7958 unit tests with 0 failures.Review
Server-only change; no HTTP/WS contract, auth or workflow change. Changelog:
changelog.d/claude-command-beside-diff-panel.md.