Skip to content

fix(phone): preserve sheet, Settings, and pane history - #4708

Closed
devswha wants to merge 2 commits into
mainfrom
fix/phone-sheet-unheard-back
Closed

devswha wants to merge 2 commits into
mainfrom
fix/phone-sheet-unheard-back

Conversation

@devswha

@devswha devswha commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Fix

  • Keep another pane's history entry intact when a sheet refuses Back but the return does not land.
  • Before another sheet enters or a tap retries pending work, recognize that Chromium silently finished closing a sheet only if it is on the exact expected history entry.
  • Keep Devices and its confirmation open when Settings widens; rebuild Settings history after the confirmation leaves.

No controls, layout, settings, or HTTP/WS contract changed. T3 Code gives Devices its own route. Ovis keeps Settings as an overlay on the current pane and preserves their separate history entries.

Validation

  • Four targeted history suites: 143 passed. Build and type check also passed on the final revision.
  • bun scripts/phone-back-demo-regression.ts and bun scripts/settings-pages-demo-regression.ts passed in herdr-ci-runner:local on the final revision.
  • Isolated Chromium before/after scenarios covered all three issues. On the fixed build, Back preserves the other pane's address, a silent commit does not strand the next sheet's entry, and widening keeps Devices and its confirmation. Cancel removes only the confirmation.
  • bun run check fast on a spare Linux runner: build, type check, and generated-file checks passed. The full unit run failed on the unchanged server/account/device-journal.test.ts test G15: unanswered notice cap stops new list admissions without trimming open notices (32.8s). On main at 6946dcb01, the same runner and actual TMPDIR passed G15 in isolation (11.0s). The isolated baseline did not reproduce the full-run failure.
  • One Codex review ran on the first pushed commit, 5bde4bd4c. I reproduced all three MEDIUM findings and fixed them in one follow-up: an automatic approval opening after a silent Back, Settings closing when widening restores a hidden-sidebar URL, and a new file entry after a dropped return. The same three repros passed after the follow-up. The full fast suite and Codex were not rerun on the follow-up.
  • No native devices or full integration suite were run.

Before and after

Korean light mode. Hold for maintainer review. Images are stored separately from the product diff.

Scenario Before After
Settings, desktop 1280 Settings resets to Appearance Devices and confirmation stay open
Settings, phone 390 Settings returns to its list Devices and confirmation stay open
Back after closing a sheet, desktop 1280 Back stays in Ovis Back reaches the previous page
Back after closing a sheet, phone 390 Back stays in Ovis Back reaches the previous page

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

@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

Hold for maintainer review of the Korean light-mode before/after captures at desktop 1280 px and phone 390 px in the PR description. Please leave the hold in place until the screen behavior is approved.

@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 10 minutes.

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 e4d1a14.

Files selected for processing: 7

  • changelog.d/phone-sheet-unheard-back.md
  • src/lib/settingsHistory.test.ts
  • src/lib/settingsHistory.ts
  • src/lib/sheetHistory.skips.test.ts
  • src/lib/sheetHistory.ts
  • src/lib/useAddressBar.hook.test.ts
  • src/lib/useAddressBar.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 commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Removing the hold this lane set: the gate review found no change to controls, copy, styling or layout; only which existing pane, page or dialog stays visible after navigation (and the address bar) changes. The PR now closes #4391 and refers to #4400 and #4393, whose remaining cases are recorded on those issues.

@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.

Settings: widening past 640 px with a confirmation open takes Settings back to its first page

1 participant