Skip to content

fix(push): cancel a moved pane's question alert once it resumed work - #4695

Closed
devswha wants to merge 2 commits into
mainfrom
fix/moved-question-alert
Closed

devswha wants to merge 2 commits into
mainfrom
fix/moved-question-alert

Conversation

@devswha

@devswha devswha commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What broke

Moving a pane to a new ID could deliver a pending question alert even if the move already reported that the pane had resumed work. The collector used the move's working status as its new baseline, but push carried the old blocked status and timer to the new ID.

Fix

Give push the status from the move when herdr owns that status. When a blocked pane moves and is already working, cancel the pending question and any webhook queued under the old ID. A provider's work is not proof that a separately tracked agent resumed. A still-blocked move keeps its question, and finish handling is unchanged. No HTTP/WebSocket or screen changes.

Validation

  • On main (6946dcb01), the new hub test received an unwanted waiting for your input push for the new pane ID; the other nine cases passed.
  • Targeted suites: bun test ./server/core/closed-pane-alert.test.ts ./server/collector.test.ts ./server/push.test.ts ./server/alert-webhook.test.ts (198 passed after review).
  • bun run check fast: typecheck and build passed. The first unit run hit two environment failures from a long Unix socket path; the affected SSH/TUI suites passed all 136 tests with a short real TMPDIR. The short-path fast run had 27,952 passes and one unrelated WinVM timeout. On unchanged main (6946dcb01), the exact same WinVM case timed out once in six runs.
  • Final head cd694f1c: CI=1 UNIT_TEST_WORKERS=6 bun run check fast passed on the isolated runner: 28,034 unit tests passed, 153 skipped; typecheck and build passed.
  • Not run: check full, browser and native QA (server-only alert scheduling).

Review notes

One Codex review on 0f1e19ac2. Fixed the reproduced tracked-agent and queued-webhook cases in one round. The review also found existing move/reconciliation and in-flight delivery problems: a status or roster can overtake the move; a moved payload can carry old prompt/workspace metadata. Those paths were not introduced by this fix and remain unchanged.

Closes #4239

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

Files selected for processing: 8

  • changelog.d/moved-question-alert.md
  • server/alert-webhook.test.ts
  • server/collector.test.ts
  • server/collector.ts
  • server/core/closed-pane-alert.test.ts
  • server/core/status.fake.ts
  • server/core/status.ts
  • server/push.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 changed the title Cancel stale question alerts when a moved pane has resumed fix(push): cancel a moved pane's question alert once it resumed work 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.

push: a question alert carried to a moved pane's new ID still goes out after the pane resumed work

1 participant