Skip to content

fix(inbox): give rows behind slow panes their last words - #4705

Closed
devswha wants to merge 2 commits into
mainfrom
fix/inbox-summary-starvation
Closed

devswha wants to merge 2 commits into
mainfrom
fix/inbox-summary-starvation

Conversation

@devswha

@devswha devswha commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What broke

The inbox asked for 24 summaries in a batch. Once the route reached its shared deadline, rows left in the tail spent a retry even if their read never started. On main the deterministic 24-row regression produces 23 summaries after all retries.

Fix

Keep the normal batch size and existing retry limit. Give due retry batches priority and size them to fit the route's shared deadline and per-pane share. Existing PC responses need no change. This fixes retry starvation; the issue's separate session-cache, cold indexing and search-range follow-ups are not changed here.

Validation

  • bun test ./src/lib/useInboxSummaries.test.ts ./src/lib/useInbox.hook.test.ts ./src/components/InboxList.test.tsx: 127 passed after review.
  • Final head d1384ffd: CI=1 UNIT_TEST_WORKERS=6 bun run check fast passed on the isolated runner: 28,032 unit tests passed, 153 skipped; typecheck and build passed.
  • bun scripts/inbox-mode-demo-regression.ts passed in the CI runner image on the final head. An isolated limited-budget demo showed nine missing summaries on main and none on the fix at both screen widths.
  • Not run: check full or native QA.

Review notes

One Codex review on 67abacb86. It reproduced a retry shrinking unrelated fresh batches and delaying the retry itself. The single fix round gives retries their own small priority batches; a regression verifies the next fresh batch still takes 24.

Refs #3817 (fixes its first item; the deferred follow-ups stay open there)

@devswha devswha added the hold Not merged until the owner says so label Nov 25, 2026
@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Holding for the owner to see the before/after captures at 1280 px desktop and 390 px phone, in Korean light mode. The authenticated attachment browser was unavailable; the four isolated demo captures are saved with the batch reports (evidence/E2-misc/inbox-*.png). The same demo had nine missing summaries before the fix and none after.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 30 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b0f20e7 and d1384ff.

Files selected for processing: 3

  • changelog.d/inbox-summary-starvation.md
  • src/lib/useInboxSummaries.test.ts
  • src/lib/useInboxSummaries.ts
  • 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

@devswha devswha removed the hold Not merged until the owner says so label Nov 25, 2026
@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Removing the hold this lane set: the gate review (CLEAR at d1384ff) found no layout, wording or control change; affected inbox rows now show their existing summary instead of the fallback text. The PR now refers to #3817 instead of closing it, so the deferred follow-ups stay tracked.

@devswha devswha changed the title Keep late inbox summaries from using up their retries fix(inbox): give rows behind slow panes their last words Nov 25, 2026
@devswha

devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #4724

@devswha devswha closed this Nov 25, 2026
devswha added a commit that referenced this pull request Nov 25, 2026
…nd phone history (#4724)

## Source changes

### [#4682](#4682)

- **Fix:** Test only: hold the demo opening turn and unquarantine the
touch-reorder regression.
- **Reproduction:** On a pinned-row drag, firing the opening-turn finish
between arming the touch probe and pressing put the finish droplet under
the finger; no row lifted.
- **Review:** CodeRabbit reviewed `f14029ee`; it skipped the later
merge-only head because automatic incremental reviews are disabled. No
Codex review for this test-only change.

Closes #4343

### [#4696](#4696)

- **Fix:** Recover a queued workspace drag against the newest proven
order after a PC restart.
- **Reproduction:** A restart roster arrived ahead of the move receipt,
then a later step failed. The next drag stayed parked without a
verification request; other schedules showed the old workspace order.
- **Review:** Codex supplied executable cases on `28b46293` but did not
finish its review. The gate review cleared the follow-up and CodeRabbit
reviewed `11916d42`.

Closes #4336

### [#4705](#4705)

- **Fix:** Prioritize small retries for omitted inbox summaries without
shrinking fresh batches.
- **Reproduction:** A deterministic 24-row batch on main ended with 23
summaries because rows at the tail spent retries before reads began. The
limited-budget browser fixture reproduced missing summaries.
- **Review:** Codex reviewed `67abacb86`, and the gate review cleared
`d1384ffd`. CodeRabbit was rate-limited.

Refs #3817 (fixes its first item; the deferred follow-ups stay open
there)

### [#4695](#4695)

- **Fix:** Cancel a stale question push or queued webhook when a moved
pane is already working; keep tracked or still-blocked questions.
- **Reproduction:** The hub test received a pending question for the new
pane ID after the move had already reported working.
- **Review:** Codex reviewed `0f1e19ac2`; its tracked-agent and webhook
findings were fixed. The gate review identified the pre-existing
event-order issue tracked in #4709. CodeRabbit was rate-limited.

Closes #4239

### [#4708](#4708)

- **Fix:** Keep pane, sheet and Settings history on the entries they
own.
- **Reproduction:** Isolated Chromium cases covered a refused Back whose
return did not land, a silent Back commit that left a later sheet
stranded, and widening Settings over the Devices confirmation.
- **Review:** Codex reviewed `5bde4bd4`; three reproduced findings were
fixed and rechecked. The gate review confirmed no control, copy, styling
or layout change. CodeRabbit was rate-limited.

Refs #4400 (partly: a remaining case is on the issue)
Refs #4393 (partly: a remaining case is on the issue)
Closes #4391

The phone-history change follows the original comparison with [T3 Code’s
separate Devices
route](https://github.com/pingdotgg/t3code/blob/main/apps/web/src/routes/_chat.settings.devices.tsx):
Ovis keeps Settings as an overlay but preserves its separate history
entries.

Supersedes #4682 #4696 #4705 #4695 #4708

## Phone history: before and after

Korean light-mode captures from the original phone-history PR.

| Scenario | Before | After |
| --- | --- | --- |
| Settings, desktop 1280 | <img width="420" alt="Settings resets to
Appearance"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-before/settings-confirmation-1280.png">
| <img width="420" alt="Devices and confirmation stay open"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-after/settings-confirmation-1280.png">
|
| Settings, phone 390 | <img width="230" alt="Settings returns to its
list"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-before/settings-confirmation-390.png">
| <img width="230" alt="Devices and confirmation stay open"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4391-after/settings-confirmation-390.png">
|
| Back after closing a sheet, desktop 1280 | <img width="420" alt="Back
stays in Ovis"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-before/sheet-back-1280.png">
| <img width="420" alt="Back reaches the previous page"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-after/sheet-back-1280.png">
|
| Back after closing a sheet, phone 390 | <img width="230" alt="Back
stays in Ovis"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-before/sheet-back-390.png">
| <img width="230" alt="Back reaches the previous page"
src="https://raw.githubusercontent.com/devswha/ovis/aa9ec2028f15be01c944fd4d06c513398addf318/4393-after/sheet-back-390.png">
|

## Validation

- Focused suites: workspace order **51**, inbox **127**, moved-pane
alerts **198**, and phone history **143** passed (519 total).
- `bun run typecheck` passed.
- `git diff --check` passed; all ten non-merge commits match their
original stable patch IDs.
- In `herdr-ci-runner:local`, the build and all four demo browser
regressions passed: `workspace-touch-reorder`, `inbox-mode`,
`phone-back`, and `settings-pages`.
- Three additional CI-image browser regressions passed:
`inbox-mode-panes`, `inbox-mode-rail`, and `sheet-outside-tap`.
- `CI=1 UNIT_TEST_WORKERS=6 bun run check fast`: workflow syntax,
generated types/themes, typecheck and build passed; unit tests reported
**27,979 pass, 2 fail, 247 skip**. Both failures
(`server/ssh-account-add.test.ts`: confirmed host key;
`scripts/plugin-tui.test.ts`: fallback `HOME`) reproduce on unchanged
`main` (`b0f20e7bc`) with the same long `TMPDIR`. With a short real
`TMPDIR`, the same two cases pass on both `main` and the bundle (2/2
each). No full rerun with the shorter path.
- `check full`, full integration, and native-device QA were not run.

---------

Co-authored-by: sisyphus-dev-ai <[email protected]>
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