Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…afety-flake-2026-11-23 test(hosts): fix daemon-update-safety timeout flake blocking ompweb-dev#569
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…afety-flake-2026-11-23 test(hosts): fix daemon-update-safety timeout flake blocking ompweb-dev#569
Rework of #299 (kahme247, "fix(chat): round-1 bug-hunt fixes"), rebased onto current main (08717b6). The original PR was based on old main 7d0ce59 and its Windows CI failed; this branch carries the fixes that are still useful, minus the one hunk that has since been superseded.
This is a replacement for #561: that PR's branch could not be made mergeable by pushing resolved files to it (both sides inserted different blocks at the same anchor, so Git still conflicts), so this branch was recreated from current main with the same 8 files re-applied. #561 will be closed as superseded by this PR.
Dropped: ChatInput image skip-notice hunk
#299 added a
chatInput.attachmentImagesSkippednotice when images were silently dropped (oversized / over the 10-image cap), pluscomponents/ChatInput.image-skip-notice.test.mjs. That hunk is dropped, not ported:components/ChatInput.tsx(processImageFiles/attachAsFiles): images now go inline while the inline budget has room and the rest go "As file" with animagesAsFilenotice, while oversized / over-limit file attachments are reported viaattachmentUploadTooLarge/attachmentUploadLimit. There is no longer a silent-drop path for the old hunk to report on, and theattachmentImagesSkippedlocale key it used does not exist on main.Kept fixes (3)
components/MessageView.tsx):updateOverflowis hoisted out of the layout effect (viauseCallback) and wired to the bubble image'sonLoad. A late-loading image grows the bubble'sscrollHeightpast the 300px cap without resizing the capped box, so theResizeObservernever fired and the "Show full input" toggle never appeared. Adapted to current main: the image is now aClickableImage(lightbox wrapper), which forwardsonLoadto its underlying<img>. Test added incomponents/MessageView.test.mjs.components/SubagentTranscriptDialog.tsx): the tool-call input JSON is sliced to the same 400-char budget plain-text rows already use, so a big file write/edit no longer freezes the dialog with one unbounded row.SubagentTranscriptRowis exported so the test can render it directly. Test added incomponents/SubagentTranscriptDialog.test.mjs.lib/assistant-response.ts,hooks/useAgentSession.ts): newhasHoldableAssistantContent(visible content plus non-empty thinking) replaceshasVisibleAssistantContentin themessage_endhold check, so a thinking-only reply is held until its saved copy lands instead of flickering away. Other call sites keep the stricter predicate. Tests added inlib/assistant-response.test.mjs(new) andhooks/useAgentSession.rpc.test.mjs.Rebase notes
Only one file conflicted when re-applying #561 onto current main:
components/MessageView.test.mjs— main had appended two collapse tests after the same anchor point #561 appended its image-load test to. Resolved by keeping main's two tests and appending #561's test after them. The other seven files applied cleanly. No CHANGELOG.md change: #561 carried none, so none was added. Main's later change to the same bubble area (text-only messages collapse to a one-line preview, image messages keep the 300px cap) is complementary, not conflicting.Tests run (fresh main tree,
bun test)lib/assistant-response.test.mjs,components/SubagentTranscriptDialog.test.mjs,components/MessageView.test.mjs: 92 pass, 0 failhooks/useAgentSession.rpc.test.mjs: 328 pass, 0 fail (includes the new thinking-only hold test)tsc --noEmit: pass, exit 0, no errorsNo ChatInput files are touched. Supersedes #561 and #299.
Summary by CodeRabbit