Repository navigation
fix: rest phone notifications only while the computer is in use - #2456
Merged
Merged
Conversation
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 12, 2026
…ith-hide#2462) Closes with-hide/hide-private#826 Related: with-hide#2443 and with-hide#2456; unblocks verification of with-hide#2460 and with-hide#2454. ## Summary Native checks still assume an immediate blocked-child raise and the old phone pause explanation. Wait for the real raised request after the approved grace, and expect the approved computer-use description. Close Settings and wait for the presented frame before capturing the raised pane in either theme. ## Review - **Decide**: budgets account for with-hide#2443's approved grace; the grace boundary remains covered by core tests. - **Risky files**: `session-workflow.spec.ts` retains the real blocked-child path and exact raised-label predicate. - **Risky files**: `phone-push-settings.spec.ts` keeps the full copy assertion against with-hide#2456 and `UI_BEHAVIOR.md`. ## Tests - **Layer**: native e2e checks Korean task rows, pane bands, terminal geometry and persisted phone pause settings. - **Catches**: old main runs fail before the 60-second grace; the first candidate reaches the unchanged UI assertions. - **Catches**: the same CI exposed the obsolete pause explanation on both attempts; its assertion remains exact. - **Repeat**: grace candidate passes once without retry; final candidate macOS validation is pending. - **Waits**: snapshot guard allows the 60-second grace plus its existing 30-second label budget. - **Waits**: test guard adds that grace to its existing 90-second budget; Settings absence is asserted before capture. - **Waits**: existing animation/compositor helpers wait for the presented native frame; no custom delay is added. ## Evidence - **Verified**: first candidate PR verify passes typecheck, lint, size budgets and timed-wait policy. - **Verified**: its macOS session workflow passes in 94.492 seconds on the first attempt, with every assertion intact. - **Verified**: its native artifacts expose a stale Settings frame in the light capture, corrected by the new gate. - **Not verified**: final candidate CI and fixed captures are pending; local builds exceed the 2.4 GiB disk margin. - **Not verified**: original pre-with-hide#2443 intermittency is not independently diagnosed; direct delegation, no PRD run. <details><summary>Verification record</summary> Base `8ee63b8e5138fd6aae02d987fd4563458f842d1a`; final candidate `b897729e73`. Before: main run 43031426412 and with-hide#2460 run 43060583267 fail the 30-second raised-label wait on both attempts. Grace candidate `0c50b38168`: https://github.com/with-hide/hide/actions/runs/43065626764 Mac desktop: https://github.com/with-hide/hide/actions/runs/43065619655/job/130679676966 Shard 1 passes 64 tests, skips one; shard 2 passes 65, skips ten and fails only the old phone-pause copy. The original reports, native windows and failure logs are preserved locally. Remaining unrelated jobs in that superseded nightly were cancelled before final-candidate validation. Self-review: product, snapshot, lifecycle and cleanup are unchanged; state predicates remain exact and guards finite. </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Leaving Hide open all day no longer keeps the phone silent.
Phone pushes rest during computer use while a desktop Needs You notification is available.
After ten idle minutes, lock, sleep or disconnect, still-waiting questions reach each phone once.
Korean Notifications settings: review the switch and both explanation lines across the full panel width.

Review
hided/src/mobile/,hide-core/src/agent_state/turn.rs: per-phone consumption and withdrawal.desktop/src/main/computerUse.ts,hided/src/server.rs, wire schema: host observations and disconnect cleanup.Tests
Evidence
INSTALL.md.screenshots --no-run.Dark settings capture
Verification record
206f0af8b84db464394fd9f02623bbe82d5aa0b8; the private candidate CLI reports that commit.0f7a26c7d9..206f0af8b8: PASS; prior serious B/C and ordinary wait annotation findings closed. A supplemental review retained PASS with one minor subject-selection limit, recorded in Review and follow-up Factory가 pane을 닫으며 잠드는 Pi와 omp 작업자를 재우고 새 pane에 다시 묶지 못한다 #873. This was source/log review, without an independent test run.The failure was
agent_start.not_savedat the existing operation-save deadline, outside the notification paths.Its first-failure log and run details were preserved locally; the final committed candidate passed all three settings repeats without a retry.
The next delivered payload retains pending clears; activity/disconnect, Needs You switches and Always mode gate delivery.
Two phones with different consumed boundaries remain independent.
Settled B is delivered before pending C, and a B HTTP completion after C admission consumes only its captured boundary.
Removing old-job consumption repeats B after cancelled C; reading past the settled boundary delivers pending C prematurely.
Both mutations failed their predicted HTTP assertions, then the restored implementation passed the repeated scoped tests.
Earlier host/bridge/mode/withdrawal/reconnect mutations also failed their predicted tests.
Only a transition or connection replay sends one IPC and one typed desktop frame per attached window.
There is no runtime dispatch, blocking I/O or added work under
Mutex<Runtime>.Existing current-root entries retain at most four phone consumed watermarks/rested bits and one root-lifetime scalar.
Each changed ledger pass adds one counter increment and one previous-age lookup per current declaration ID.
The ledger maps its existing current/grace declaration IDs to observation order, with no additional set or history.
Existing projection/grace root state has no separate count cap; this change adds fixed scalars to those existing entries.
Settling retains one covered boundary per standing root and keeps the existing 64-root pending cap/three-second deadline.
Jobs use the existing blocking workers, capturing root lifetime and settled boundary before transport.
No new root set, payload queue, worker or timer is introduced in hided.
Host quit/disconnect releases timer/listeners/demand; relay-only holds retain eight payloads per phone and sixty-second expiry.
The system support table records Linux lock polling, the Wayland limitation and what closes it.
app_closed/legacyoffspellings remain compatible; the timeout is one named constant, without a new setting.Design principles 5 and 12: retain the settings pattern and capture Korean wrapping/legibility in both themes.