Repository navigation
test(chat): send the other browser's submit as the composer shapes it - #1916
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Remote payload framing scripts/chat-local-send-follow-demo-regression.ts |
The simulated remote submission now uses the message text unchanged as its payload. |
Priority:
Estimated code review effort: 1 (Trivial) | ~2 minutes
Change: Other
Possibly related issues
- Chat: follow the chat to the end after the user's own send #1607: The payload correction allows the demo regression to exercise remote sends without the extra carriage return.
- Server: check the paste framing of immediate chat and terminal-line sends #1610: The regression payload now matches the immediate-submit text framing described by this issue.
Possibly related PRs
- devswha/ovis#1915: This PR addresses the same regression context by reverting immediate-submit framing validation; this change corrects the simulated payload instead.
- devswha/ovis#1840: This PR defines the framing validation that the regression payload now follows.
Merge Risk: 
Minimal · up to 668bc
-
The regression payload now matches the expected submission shape; the change is mergeable.
Pre-merge checks: 
5
-
Full details: Description check
-
Explanation
The description explains the regression, the cause, the one-line fix, and the reported validation results. It covers the template’s Change and Validation requirements, despite using different section headings.
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 @coderabbitai help to get the list of available commands.
|
Merge pass review: PASSED. This is a test-only, one-line fix that turns main green again.
|
What this fixes
mainis red since #1840 merged:Browser regression (other scripts)fails inscripts/chat-local-send-follow-demo-regression.tsat "remote pending refused and hydrated sends preserve place: remote" (line 112,committed()sees no transcript read carrying more within 10 s). It fails on 5e673ef (#1840) and ff11d94; e1c329b (#1902), just before #1840, passed. Every PR's CI inherits it.Why
The script plays "another browser" with a raw submit frame whose
payloadistext + "\r", the old shape. #1840 checks an immediate submit's framing in the bridge and the demo transport: the payload must be the text with LF as CR, bare or inside one paste pair, and the Enter is the submit's own (src/lib/compose.ts: "The text a composer message types, without its submit (HerdrSocket.submit adds the Enter)"). The demo transport therefore refuses the frame withinvalid_submit_text, the remote message never reaches the transcript, and the step times out. The transport is right; the script's frame is stale.The change
One line, test-only: the other browser's frame sends
payload: text, as the composer shapes it. No product code changes.Verification
bun run check fastpasses.Test-only, so it doesn't need a CodeRabbit review.