Skip to content

test: wait for the whole IME commit before checking it - #813

Merged
devswha merged 1 commit into
mainfrom
fix/ime-commit-flake
Oct 11, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/ime-commit-flake

Conversation

@devswha

@devswha devswha commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Test-only de-flake. scripts/sticky-modifiers-regression.ts waited for any new bytes after compositionend and then compared the full text, so a split delivery failed CI with '한' !== '한글' (seen on #805, #616). It now waits for the full UTF-8 byte count; the exact-text assertion is unchanged.

Cross-model review: PASS for this change (the separate Escape/arrow ordering flake in terminal-arrows-clicks-regression.ts is not included; two attempts didn't converge without weakening that check).

sticky-modifiers-regression waited for any new bytes after compositionend, then compared the full text, so a split delivery failed CI ('한' !== '한글'). Wait for the complete UTF-8 byte count; the exact text assertion is unchanged.
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 389856ff-b548-46db-ba70-ea34bfb205f7

📥 Commits

Reviewing files that changed from the base of the PR and between 0f3b3e1 and a4c58e4.


📒 Files selected for processing (1)
  • scripts/sticky-modifiers-regression.ts

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



📝 Summary

Summary by CodeRabbit

  • Tests
    • Improved the IME regression test’s wait condition to handle committed text arriving across multiple reads.

Walkthrough

The IME regression test now waits for PTY log growth proportional to the committed text’s UTF-8 byte length before checking decoded text.

Changes

IME regression test

Layer / File(s) Summary
Wait for committed text in the log
scripts/sticky-modifiers-regression.ts
The wait condition now requires the log to grow by at least twice the committed text’s UTF-8 byte length.

Priority: ⬇️ Low

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

Change: Other


Merge Risk: ⚪ Minimal · up to a4c58

The test waits for the committed input to be logged before checking its exact text, reducing partial-read flakes. The inspected logging path supports this threshold, and no concrete merge risk remains.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title clearly describes the main change: waiting for the complete IME commit before asserting the result.
Description check Passed The description explains the flaky behavior, the failure scenario, and the resulting fix. It also records review status, but it does not use the required Change and Validation headings or list concret…
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.

✨ 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 merged commit c776413 into main Oct 11, 2026
15 of 17 checks passed
@devswha
devswha deleted the fix/ime-commit-flake branch October 11, 2026 14:30
devswha added a commit that referenced this pull request Oct 11, 2026
## Change

Release 0.4.7, from main at 80ca9bb (47 PRs since v0.4.6).

- `package.json` and `herdr-plugin.toml`: 0.4.7.
- CHANGELOG: `[Unreleased]` becomes `[0.4.7] - 2026-10-12`, with the
compare links.
- #513's entry moves out of the 0.4.0 section, where its branch's merge
left it, and gets its credit; it says the pace is a setting, off by
default (#834).
- A Maintenance section covers the PRs that had no entry: #743, #756,
#767, #795, #805, #810, #813, #821, #826, #831.
- The note under the Hermes entry that asked for a runtime bump at
release now says what a remote PC needs.
- `release-summaries.json`: 0.4.7 in en/ko/ja/zh/tr (6 new, 6 improved,
5 fixed). The Turkish lines are not checked by a native speaker.
- `REMOTE_BUNDLE_VERSION` 25 -> 26. Since v0.4.5's runtime the bridge
gained Hermes transcripts (#604), conversation pushes (#689) and
Grok/Antigravity activity (#816), so `remote-v26` is published before
the app release.

Not in this release: #606.

## Validation

- `bun scripts/release-notes.ts 0.4.7` renders the summaries and the
full changelog (235 lines).
- `bun run typecheck` and `bun run build`: pass.
- `TMPDIR=/tmp bun run test:unit`: one failure, `server/voice.test.ts`
("audio.webm" vs "clip.webm"), which fails the same way on unmodified
`main` on this Mac (Bun 1.4.0); CI runs Bun 1.4.2.
- Every PR merged since v0.4.6 was checked against the changelog
section: all 47 are linked.

## Release

After this merges and its CI on `main` passes: push `remote-v26`, wait
for its release, then run the Release workflow with `0.4.7`.
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