Skip to content

test(chat): send the other browser's submit as the composer shapes it - #1916

Merged
devswha merged 1 commit into
mainfrom
fix/chat-follow-remote-payload
Oct 24, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/chat-follow-remote-payload

Conversation

@devswha

@devswha devswha commented Oct 24, 2026

Copy link
Copy Markdown
Owner

What this fixes

main is red since #1840 merged: Browser regression (other scripts) fails in scripts/chat-local-send-follow-demo-regression.ts at "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 payload is text + "\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 with invalid_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

  • On main (ff11d94), unchanged, the script fails at "remote pending refused and hydrated sends preserve place: remote", as in CI.
  • With this line it passes, including that step's queued, pane-switch and reconnect parts.
  • bun run check fast passes.

Test-only, so it doesn't need a CodeRabbit review.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between ff11d94 and 668bc88.

Files selected for processing: 1
  • scripts/chat-local-send-follow-demo-regression.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Demo regression submissions now send text without an extra carriage return.

The demo regression now sends the simulated remote submission payload without adding a carriage return. The payload uses the supplied message text unchanged.

Changes: Remote submission regression

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: Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Possibly related issues

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: Passed 5
Check name Status Explanation
Title check Passed The title clearly describes the test change: the simulated other browser now sends the submit payload in the composer’s format.
Description check Passed 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 …
Docstring Coverage Passed 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…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

Merge pass review: PASSED. This is a test-only, one-line fix that turns main green again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant