Repository navigation
Conversation
…iann#1717) Operators running hundreds of sessions cannot spot agents that finished blocked by scanning the list. Today a blocked-but-still-connected agent lands silently in the quiet grey "Active" bucket among dozens of peers. Source of truth: the hub already parses AGENT_NOTIFY_SUMMARY footers for the work-graph ledger, so stamp the same parse onto the session row (schema v26, `last_notify_*`) and surface it on SessionSummary. O(1) to read; no client-side message parsing at fleet scale. Lights up on `blocked` + `stalled`, reusing the hub's existing stalled->blocked fold. Three surfaces, each doing something the others cannot: - In-row: amber left rail + "Blocked" text chip. Not a sixth dot — five dot colours already compete, and a different visual channel lets a row be blocked *and* awaiting a permission with no precedence rule. No animation: motion is the list's grammar for live state, and blocked is terminal. Demotes to muted past 24h so abandoned rows stop alarming. - A pinned "Blocked" section above Running/Active, so the default state is already in view. - An always-visible header counter with jump-to-next. Edge chevrons cannot do this job: the list collapses directory groups and caps each group's preview, so a blocked row is often absent from the DOM, not merely scrolled past. The jump clears filters and expands the section before travelling. A sibling toggle provides a blocked-only lens. Clearing is self-maintaining, no ack UI: opening a session does *not* clear (at 600 sessions you open things to triage), but sending a message or the agent's next turn does. Covers all three turn-start paths — markMessageQueued sets thinking before any CLI keep-alive, so a rising edge in handleSessionAlive alone would never fire for the reply path. Bounded startup backfill (24h window, deferred off the startup path) so an upgraded hub shows blocked work immediately rather than after every agent next speaks. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
The zero-blocked branch set a fresh `{above:0,below:0}` on every effect
run, and the effect's deps churn each render (the `machineLabelsById={}`
prop default cascades through the filter memos), so the list re-rendered
forever. Surfaced as a hang in the soup web suite.
Also corrects the blocked-lens copy: the lens is a real toggle button
now, not a long-press gesture, so "Hold to show blocked only" was
describing an interaction that no longer exists.
via [HAPI](https://hapi.run)
Co-Authored-By: HAPI <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Operator's rule: a session sitting on a pending permission or input request cannot proceed without them, which is the same problem as an agent that self-reported `blocked`. It gets the same count, the same section and the same row rail — only the chip's reason label differs (Blocked / Stalled / Permission / Input). This revises the first cut, which treated permission as an orthogonal axis and left those rows in the quiet pending bucket. The dot language is unchanged, so a row still shows its live permission pulse; blocked chrome rides the separate rail/chip channel as before. A live prompt outranks a stored footer when both are present — it is the one a single click clears. Pending needs no hub persistence or clearing logic: it is live state, so answering the prompt drops the chrome on the next render. Staleness still applies, measured from the oldest pending request, so a prompt ignored for a day demotes like a stale footer. Also drops the duplicated "pending N" text on blocked rows — the chip already names the reason, and repeating it truncated the session title. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
…selves (tiann#1717) Operator asks 2 and 3: flag ALL kinds of blocker, and make them unmissable. Coverage, driven by what the fleet actually emits rather than the documented contract: - `CursorCreatePlan` was unclassified. It is Cursor's plan-approval prompt — the direct analogue of Claude's ExitPlanMode and the second most common request tool in the wild (16 uses on a 683-session fleet) — so every Cursor plan review read as "approve a tool" rather than "answer me". Now an input request, and input outranks permission. - Notify status `pending` occurs 92 times and `completed` twice, neither in the contract vocabulary. `pending` now blocks; `completed` clears. - Added needs_decision / needs_review / failed / error / waiting, so "blocked by a question" and "blocked by an error" are blockers rather than only "blocked by the summary line". - Unrecognised statuses stay quiet. Crying wolf costs more than a missed synonym, so the non-blocking set is explicit rather than a default. Chips name the reason (Blocked / Stalled / Decision / Review / Failed / Permission / Question) and errors get the red badge; amber keeps meaning "you are the blocker", red means "it broke". Alerting, because a static number is easy to walk past: - The counter pulses when a session *becomes* blocked, keyed on ids not the count — a resolve-plus-arrive swap nets to zero and would otherwise stay silent on the new blocker. - Optional short two-tone WebAudio buzzer, throttled so a wave of blockers is one tone. Synthesised rather than shipped: no bundle bytes, no fetch, works offline. - Settings → Display → Blocker alerts: count only / pulse / pulse+sound. The counter itself is never suppressed; only the transition alert is. - Pulse decays after 8s and respects prefers-reduced-motion. Nothing pulses continuously — permanent motion at fleet scale is wallpaper within a day. Review fixes in the same pass: the pulse could stick forever when the blocked list churned inside the alert window; a cold page load read its whole backlog as new arrivals and buzzed; the startup backfill could resurrect a blocker the operator had already answered; and the notify cache write reverted an in-memory updatedAt bump via refreshSession. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
…#1717) Dogfood gap: replying was the only way out of blocked. Now right-click a blocked row → "Mark unblocked…". The reason prompt is the point, not friction. Replying to an agent leaves the rationale in the transcript where anyone — including the overseer — can read it later; dismissing silently would leave the event log with a state change and no "why". So the reason is mandatory, with four one-tap presets so it stays fast at fleet scale and still writes something machine-comparable rather than "x". Recorded as a work-graph `operator_unblock` event with a `human` principal. The payload carries the agent's prior claim (status / note / timestamp) next to the operator's rationale, so a reader can tell "operator disagreed with the agent" from "operator resolved it elsewhere" — those say very different things about whether that agent's judgement should be trusted next time. Note the overseer and system_events are soup-only layers; the work graph is the substrate that exists upstream, and it is what the overseer reads. Stored as a WATERMARK (`blocked_ack_at` + reason, schema v27), not a flag: anything reported at or before the ack is dismissed, anything newer blocks again. One mechanism covers both blocker sources, and "mark unblocked" can never mute a session permanently. Review fixes folded in: an acknowledged prompt used to return early and silently mute a NEWER footer on the same session; the watermark was compared only against the oldest pending request, so a prompt raised after the ack stayed suppressed; the confirm button never disabled, so a double click wrote two ledger rows; a closed AudioContext (backgrounded iOS PWA) permanently killed the alert tone; collapsing the Pinned section left a stale off-screen glyph; and the blocked count was taken after the active-only filter, which hid exactly the disconnected blocked agents it was supposed to surface. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
) Seven findings from the fork-stage review, all reproduced before fixing. P1 — a live prompt no longer loses to `thinking`. A remote Claude agent keeps `thinking` true for the whole time it waits on a permission or a question: `claudeRemote` only clears it on the turn's result, and the permission handler never touches it. `getSessionBlockedState` returned early on `thinking`, so the single commonest blocker there is — an agent parked on a prompt — was missing from the section, the count and the arrival alert for as long as it waited. The comment justifying that guard claimed `classifySessionAttention` suppresses attention while thinking; it does not, and never did. Prompts are now read first and the guard applies only to the stored notify footer, which really is superseded once a new turn starts. Acknowledgement handling, two ways it could silently mute a session: - Kind priority ran before the ack filter, so an older dismissed question still won the contest and the matching pool held only that question — a genuinely unanswered permission raised afterwards was discarded. Acks are now applied first and the contest runs over what still needs answering. - `pendingRequests` is capped at five and keeps the OLDEST, so once the cap is full the carried slice cannot show a prompt that arrived after the ack. Adds `pendingRequestsNewestAt`, computed uncapped from `agentState` beside `pendingRequestsCount` — no column, no migration, optional so an older hub may omit it. Also: - Keep the blocked lens toggle mounted while the lens is on. When the last blocker resolved, `blockedCount > 0` unmounted it without clearing the lens, leaving every row hidden and no control to turn it off. - Pass the content-search props to blocked rows. They float out of their directory group during a search like any other floated row, but were the one path not given `contentSnippet` / `targetMessageId`, so a blocked hit lost its match preview and opened the conversation instead of the message. - Order the startup backfill by message time. `getMessages` sorts by insertion `seq` while replayed transcripts keep their original timestamps, so a delayed older footer could outrank a newer `done` and restore the wrong status. The operator-reply boundary moves with it. - Reconcile the notify signal after a rewind truncates history. Nothing else repaired it: a Codex rollback starts no new turn, so clear-on-new-turn never fires and the next refresh re-read the stale columns. Two preview-cap tests drove "required" rows with a pending request and leaned on `thinking` to keep them out of the Blocked section — a workaround for the P1 bug above. They now use the other `requiredIds` trigger, unread, which keeps a row in its group without depending on state this feature relocates. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
…n#1717) Second cold-review round. An archived session kept its prompt as a blocker. `handleSessionEnd` drops activity and thinking but leaves `agentState.requests` in place, and archived conversations stay sidebar-visible, so a session archived while holding a permission sat in the Blocked section and count permanently — on a prompt that can no longer be answered. `classifySessionAttention` has always excluded inactive requests for this reason; the blocked classifier now does too. A notify footer still applies on its own: an agent that said it was stuck before the session ended still was. The blocked pill and lens also needed to be reserved for. They render in the actions row but are not shed-able slots, and the shed budget subtracted only the machine menu — so the shedder kept icons inline that no longer fit and the row overflowed its allocation instead of moving the excess into More. They are now one measured box whose width feeds `blockedPx` into `toolbarChrome` and comes off the budget, mirroring the existing machine-menu handling. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
Four findings, all reproduced before fixing. A session merge dropped the acknowledgement. `mergeSessionData` moves the source's pending requests onto the destination with their original timestamps, but left `blocked_ack_at` behind — so a prompt the operator had already dismissed read as newer-than-nothing and blocked again the moment the rows consolidated. The ack now travels with the requests it silences, keeping the later of the two so a genuinely newer prompt on either side still blocks. Scheduling a reply for later erased the blocker. `MessageService.sendMessage` deliberately withholds a future-scheduled message from the CLI, but `SyncEngine.sendMessage` called `markMessageQueued` regardless — starting a thinking turn nothing ends and clearing a footer the agent never received an answer for. Cancelling the schedule then left it erased with no way back. Future-scheduled sends skip the marker; the matured path still sets it. The uncapped request watermark went stale on SSE patches. `pendingRequests` is capped at five, which is why `pendingRequestsNewestAt` exists — but `patchSessionSummary` recomputed the three neighbouring pending fields and not that one, so a prompt arriving after an acknowledgement stayed suppressed until the next full refresh. It is now recomputed with the set it belongs to. The jump pill could not reach rows the new lenses hid. Active, Working, Scratchlist (tiann#2376) and the date range all narrow `sessionFilteredSessions`, so the header count included rows that never mounted and the pending-scroll effect had nothing to travel to. The jump clears those alongside the search, machine and persisted-view filters it already cleared. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
… search (tiann#1717) Third cold-review round; both findings sit next to the previous round's fixes. The merge carried the acknowledgement but not the footer. `mergeSessionMessages` moves the blocked turn onto the surviving row and replays no `message-added`, so nothing re-derives the signal there: the conversation kept an unanswered AGENT_NOTIFY_SUMMARY in its transcript while dropping out of the Blocked section and count entirely. The signal now travels with its messages, newest winning, matching the monotonic rule the live writes already use. The blocked lens did not reach content search. `searchMessageContent` keeps only the 100 most recently updated matching sessions, and `showBlockedOnly` was the one lens missing from `contentSearchCandidateSessions` — so unblocked matches could consume the whole budget and exclude an older blocked conversation the lens was specifically asking for. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
…d replies (tiann#1717) Fourth cold-review round. Both findings are the previous round's fixes not carried into their sibling path. OpenCode rewinds do not go through `truncateHubTranscriptFrom`. They use `reportOpenCodeRewind` -> `truncateOpenCodeRewind`, which rebuilds todos and refreshes the session — restoring the signal of the very footer the rewind deleted. A rollback starts no new turn, so the clear-on-new-turn transition never fires either. That path now reconciles the notify columns the same way. The startup backfill treated a future-scheduled reply as an answer. `isOperatorReplyMessage` reads content only, so the scan stopped at a message `MessageService.sendMessage` deliberately withholds from the agent, burying an unanswered footer on restart. This is the same blind spot the live path had at `markMessageQueued`, fixed there last round and missed here. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
…iann#1717) Fifth cold-review round, and a blind spot in the merge fix from the third. Carrying the source's notify signal onto the destination keyed on the destination's `lastNotifyAt` being null. That null is ambiguous: it means "never had a footer", but it equally means "the operator already replied and `markMessageQueued` cleared it". In the second case the merge handed an answered blocker straight back, and the row reappeared as blocked once the thinking grace expired. The merge now applies the same operator-reply boundary the startup backfill uses: scan the (already merged) transcript for a delivered reply newer than the footer, and leave the destination alone when one exists. Future-scheduled replies do not count, for the reason they do not count anywhere else — the agent was never given them. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
…tiann#1717) Sixth cold-review round. A subagent's footer was being read as the session's status. Both the local transcript scanner and the remote SDK converter forward sidechain assistant output, and `extractAssistantPlainText` does not filter it — so a background subagent's `done` erased the main agent's unanswered blocker, and its `blocked` flagged a parent that had finished. Sidechain output is now rejected before the session-level signal is derived, which covers the backfill scan too since both go through `extractSessionNotifySignal`. A cleared signal had no boundary. `clearSessionLastNotify` nulls `last_notify_at`, which disarms the store's timestamp-monotonic check, and Claude transcript messages keep their original timestamps — so a footer delayed past the operator's reply was accepted and the row reappeared as blocked once thinking ended. Incoming signals older than the turn that did the clearing are now rejected, which is the same operator-reply boundary the startup restore and the merge already apply through the transcript. That null is the third place this branch has had to distinguish "no footer" from "footer deliberately cleared"; the other two were the merge path and the backfill scan. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
Three Major and three Minor findings from the upstream bot review on tiann#2520. Major — a dismissal could silence a blocker the operator never saw. The hub stamped its own receive time as the watermark, so a permission request or footer arriving between the dialog opening and the confirmation landing was covered by a reason written for an earlier blocker. The client now sends the timestamp of the blocker it was displaying; the hub clamps it to now so a skewed clock cannot dismiss the future. Optional, so an older client keeps the previous behaviour. Major — a delayed SSE snapshot could restore cleared blocker state. `lastNotify` and `blockedAck` ride full-session snapshots on both the global and session-scoped streams with no ordering between them, so an older snapshot arriving after a newer clear revived the blocker until the next refresh. Adds a `notifyUpdatedAt` watermark, bumped on every write including clears, and the web keeps whichever side is newer — the same shape `attachedJobUpdatedAt` already uses. Major — the replay boundary did not outlive the turn. It read `activeTurnStartedAt`, which resets when the agent goes idle: once the reply turn ended, that and `last_notify_at` were both null and a delayed pre-reply footer was accepted. Replaced with a persisted `last_notify_cleared_at` (schema v39), enforced in SQL and in the cache, so the boundary survives the turn ending and a restart. The review was right that the previous test only covered arrival during the reply turn. Minor — due time is not delivery. A scheduled reply can pass its due time while the agent is offline and still never be invoked. Recovery and merge now share one `isDeliveredOperatorReply` predicate that requires invocation for scheduled messages and orders them by invocation time. Minor — jumping to a blocker no longer discards saved list filters speculatively. The target is chosen first, and the status/unread/lens preferences are only cleared when that specific row is hidden. Minor — collapsed Blocked rows left focusable buttons mounted, so a keyboard user tabbing out of the collapsed header landed on invisible rows, one dead tab stop per blocker. The section now uses `CollapsiblePanel`, which unmounts its children once the close transition settles. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f4674487c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
tiann#1717) Four Major and four Minor findings, plus the CI failure they sat behind. The CI failure was real, not a flake. `withSettingsLock` takes the cross-process lock by creating `settings.json.hapi.lock` beside the settings file, but the parent directory was only created inside `writeSettingsUnlocked` — which runs inside the lock. On a data dir that does not exist yet the lock's own mkdir fails with ENOENT and retries its whole budget, 50 x 100ms, which is the unnamed ~5s failure. The directory is now created before the lock is taken. Latent in upstream; new hub tests that build a SyncEngine on a fresh data dir made it deterministic. Regression test asserts both the success and the timing, since the symptom is a retry storm. Major — refreshSession dropped the blocker revision. The watermark was in-memory only, so any ordinary refresh reset it to zero and a delayed snapshot could pass the ordering check. Now persisted alongside the blocker fields. Major — rewind rejected the footer it should restore. Clearing stamped the boundary at now, and the retained footer predates that, so the restore failed the guard the clear had just created and a session whose retained history still ends blocked dropped out of the section. The signal and its boundary are now derived first and written together; after a truncation the transcript is the truth, not arrival order. Major — the boundary did not advance when no footer was cached. A turn that starts before the previous footer reaches the hub skipped the write entirely, so that footer could arrive after the reply turn ended and be accepted. The write now moves the watermark even with nothing stored, which changes the store contract an existing test pinned as a no-op. Major — a merge applied the source acknowledgement to every older blocker on the destination, hiding ones the operator never saw. It now refuses the transfer when the destination holds an unacknowledged older blocker. Minor — delivery evidence is required for every queued reply, not just scheduled ones, and recovery orders replies by invocation time: a reply composed before a footer can be invoked after it. Minor — the unblock dialog froze only the timestamp while still rendering the live label and note, so it could show one blocker and acknowledge another. Identity and copy are now captured together. Minor — jumping to a hidden blocker rewrote saved list and machine filters. The target row is now exempted from those filters transiently instead. Minor — the dialog declared `aria-modal` without enforcing it. Adds a focus trap, an Escape handler, and focus restoration on dismissal. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
heavygee
force-pushed
the
1996-fold-blocked-filter
branch
from
November 19, 2026 21:13
f467448 to
9497e56
Compare
4 tasks done
Third upstream review round. Four Major, two Minor. The acknowledgement now records WHICH blocker it covered. It was a bare timestamp, which cannot tell two blockers apart, so it suppressed everything older than itself: a blocker that arrived while the dialog was open, a destination prompt during a merge, an incoming source footer during the reverse merge. Three rounds of findings were all that one shape. `notify:<at>` for a self-reported footer, `request:<id>` for a prompt, threaded from the dialog through the API to the store. Acks written before the identity existed keep the old watermark semantics so an upgrade does not resurrect dismissed work — and the one-directional merge guard added last round is deleted, because identity covers both directions properly. The blocker clears on confirmed delivery, not on optimistic queueing. Queueing starts no turn: an idempotent retry of an already-consumed message reuses its row, and a prompt can be cancelled before the agent ever sees it. Both erased a live blocker. Queueing still advances the clear boundary, so a footer delayed past the reply cannot slip in behind it. A stale list response could restore a cleared blocker. The GET can be captured before a clear and land after SSE applied it; the revision reconciliation now covers the REST path too, not only SSE summary writes. The jump could not reach a blocker hidden by the saved status filter. The target exemption now applies above status and date filtering rather than below it, and the revealed row stays mounted until the flash ends — releasing it as the smooth scroll began unmounted the row mid-travel. The unblock dialog took its focus-return target from `document.activeElement`, which races the action menu closing and the textarea's own autoFocus, so cleanup tried to focus the textarea as it unmounted. The caller now names the row button explicitly. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
heavygee
force-pushed
the
1996-fold-blocked-filter
branch
from
November 19, 2026 21:28
9497e56 to
8624538
Compare
heavygee
added a commit
that referenced
this pull request
Nov 19, 2026
Fork Codex now edits a codex-review-state:v1 issue comment in place (no formal review, no Reviewed commit prose) on clean waves. Status was stuck tip-ahead on the prior findings review (#337). Co-authored-by: Cursor <[email protected]>
…eliver (tiann#1717) Fourth upstream review round. Five Major, three Minor. Three are fallout from the previous round's fixes. A session can now retain dismissals for several prompts. One identity slot meant dismissing a newer question and then the older permission overwrote the first key — and because the write was timestamp-monotonic, that second dismissal was rejected outright and surfaced as a 500. The acknowledgement carries a merged set of identities; `at` and the reason stay monotonic so a replayed older acknowledgement cannot walk the watermark backwards, which is what the monotonic guard was actually protecting. `refreshSession` dropped the acknowledgement identity, so a restart or merge fell back to timestamp-cutoff semantics — the exact behaviour the identity replaces. This is the same omission made one round earlier in the same function with the revision field. A replayed consumption acknowledgement cleared a live blocker. Re-emitting it after the turn finished blocked, or naming unknown local ids, consumes nothing — `recordMessagesConsumed` now reports how many rows it actually invoked and the clear only fires when that is non-zero. A stale list snapshot brought answered prompts back. Keeping the newer footer while taking older pending-request data returned a dismissed prompt to Blocked and re-fired the arrival alert; those fields are one picture and now travel together, in both the REST and SSE paths. The jump still missed blockers hidden by the saved status filter: the exemption was applied below `allSessions`, which filters by status first. Rewind reused the startup backfill's six-message scan, so a retained footer sitting behind a run of sidechain rows was missed — and there the miss is not a delayed signal but a cleared blocker. Rewind scans deeper. The ledger recorded whatever footer was current at confirmation rather than the one the operator read, and the dialog's focus-return ran on every render (the callback identity changed), focusing the row while the dialog was still open and bypassing its own focus trap. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
heavygee
force-pushed
the
1996-fold-blocked-filter
branch
from
November 19, 2026 21:43
8624538 to
437000b
Compare
…ardening (tiann#1717) Fifth upstream review round: one Blocker, five Major, three Minor. BLOCKER — the hub would not start on a v26 database. The v26 fast path enumerated each later migration by hand, and three migrations added to the step ladder were never copied into it. A real v26 database ran as far as v36, was stamped SCHEMA_VERSION anyway, and then lacked `blocked_ack_key` while claiming to have it; every session load threw. That branch now drives the remainder of the ladder from `stepMigrations` by index, so a migration can never be silently missing from it again, and `parseAckKeys` tolerates an absent column. A queued reply no longer advances the clear boundary. Queueing is optimistic: if the reply was cancelled before delivery, the boundary it left behind rejected a footer the agent had generated beforehand and the blocker never reappeared. The clear and the boundary now move together, on delivery. Agent output no longer counts as a delivered reply. `sendAgentMessage` emits `messages-consumed` for id-bearing output such as OpenCode compaction summaries; the delivered count now considers only rows that are operator input. A merge unions dismissals instead of discarding the source's. Skipping the whole source acknowledgement whenever the destination had its own meant two rows that had each dismissed a different request lost one of them — the merge unions the requests, so it has to union what dismissed them. Overflow prompts have real identities. `pendingRequests` is capped, so a prompt beyond it fell back to a synthetic footer key and its dismissal stopped matching the moment the real request entered the slice. The summary now carries every pending request id, uncapped; ids are small, the bodies are not. Pending-request fields follow `agentStateVersion`, not the notify revision: answering a prompt advances one and not necessarily the other, so a stale snapshot could restore an answered prompt and re-fire the arrival alert. Rewind scans the whole retained transcript. Any fixed window is wrong there — a miss does not delay the signal, it writes null and drops a session whose history still ends unanswered. The unblock dialog joins the existing overlay-hold list, so a row revealed by the jump exemption cannot unmount from under it mid-entry, and the ledger records the dismissed blocker's identity even when the footer it named has already been replaced. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
heavygee
force-pushed
the
1996-fold-blocked-filter
branch
from
November 19, 2026 21:56
437000b to
c1311e6
Compare
…arker (tiann#1717) Sixth upstream review round: four Major, three Minor, all of them consequences of the previous round's fixes. The clear boundary now lives in the same clock domain as the footers it filters. It was stamped with hub time, but Claude transcript output preserves the runner's clock, so a runner thirty seconds behind had a genuinely newer footer rejected. The boundary takes the delivered reply's own timestamp. A session-end sweep is no longer mistaken for a delivered reply. The sweep stamps `invoked_at` on immediate queued rows to unpin the floating bar — its own documentation calls that synthetic, and the runtime never received them. Adds a `swept_at` marker that the delivered-reply predicate rejects. Deliberately NOT a new `delivery_state` value: that column drives dispatch and replay across forty SQL sites with non-exhaustive comparisons, and an additive column only this feature reads cannot perturb them. Overflow prompt identities are refreshed by agent-state patches, and the identity lookup now picks the first UNACKNOWLEDGED overflow id. Selecting merely the first id outside the preview returned an already-dismissed prompt, so the next one could not be dismissed at all. The acknowledgement revision is read back from the row instead of invented from hub time: SQLite versions the write using the blocker's observed timestamp, so a now-based broadcast made a later refresh look older than its own SSE patch and the browser rejected a dismissal a merge had transferred. A merge with no source footer still reconciles: the source may hold a delivered reply that answers the destination's older footer once the transcripts combine. The jump exemption is held by an explicit dialog signal. `CollapsiblePanelHoldContext` does not cover this — it gates whether a panel's children render during a collapse, but a row removed from the filtered list is not among those children at all. The previous round's reuse of it did not fix the reported bug. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
heavygee
force-pushed
the
1996-fold-blocked-filter
branch
from
November 19, 2026 22:20
c1311e6 to
fd3ffc6
Compare
…liation (tiann#1717) Found by auditing every column this PR adds against writer, row mapping, and every read path — not reported by review. `pendingRequestIds` was absent from both the REST and SSE preservation blocks, so a snapshot captured before a prompt changed kept the newer `pendingRequestsCount` / `Kinds` / `pendingRequests` / `pendingRequestsNewestAt` / `agentStateVersion` and then took the OLDER id list. That is the same defect already fixed for the sibling fields; this field was added after those blocks were written and never backfilled into them. The asymmetry is what made it findable: every sibling appeared in both paths and this one appeared in neither. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
…n#1717) Seventh automated review round on tiann#2520. Six findings, each fixed with a red/green test proving the fix is load-bearing. M1 Notify footers carry the agent runner's clock (the transcript preserves them) while the clear boundary is stamped when the hub delivers the reply. No comparison between those is sound, so the boundary is now the hub message `seq`, which both sides share. A fast runner clock no longer revives an answered blocker, and a slow one no longer buries a live blocker. M2 The blocked jump pill revoked its own filter exemption on the very next render: `flashBlockedSessionId === null` reads the same before the flash starts as after it ends, so the effect fired before the scroll effect could use the exemption and the target was filtered straight back out. Clicking the pill on a filtered-out row did nothing at all. `pendingBlockedScrollId` distinguishes the two states. The flash-end release also now honours the dialog guard its own comment described but did not implement. M3 Every notify broadcast now reads its revision back from the row. SQLite versions a clear off the boundary timestamp — usually well in the past — while this path invented `Date.now()`, so the patch outran the row and the following refresh looked stale to the browser's ordering guard. In a merge the rejected payload is the one carrying the transferred dismissal, so a row the operator had marked unblocked went back to blocked. m4 `clearQueuedThinkingGrace` means the CLI consumed the row synchronously and no agent turn follows: a slash command it handled itself, a rejected or aborted message, a failed steer. The operator typed something, but the agent never saw it, so the blocker stands. A successful steer reports `steered` instead and still clears. m5 `mergeSessionMessages` renumbers the destination above every source row, so seq order is not time order after a merge and a recency-bounded scan could hold nothing but destination chatter while the source reply that answered the blocker sat below the window. Replaced with an exact, unbounded lookup over delivered messages only. m6 `pendingRequestKinds` is a deduped set over all prompts including dismissed ones, so when every visible prompt was acknowledged the surviving overflow prompt inherited a dismissed question's label. Its real kind is not in the summary, so take the neutral label rather than escalate on borrowed evidence. The older-hub fallback (count and kinds, no array) is preserved and covered. Also fixes a `seq` parameter that was referenced in SQL but never bound — the setter's bare `catch` turned that into a silent `false` — and the store wrapper signature that dropped `seq` from its type. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
No marked conflicts — upstream's tiann#2728 (keep session groups together when a row is replaced) auto-merged cleanly into both hub/src/sync/sessionCache.ts and web/src/components/SessionList.tsx. Given the previous merge's silent misattribution in this exact file, verified by hand rather than trusting "went well": diffed tiann#2728's actual upstream change directly and confirmed both pieces (transferGroupMembership/setGroupLeader in sessionCache.ts, the pinned-members-first sort in the member-list render) landed intact and in context, and re-checked the specific Pinned/Blocked SessionItem blocks that broke last time — correctly undisturbed this round, no duplicate function declarations. Full verification: hub+web typecheck clean, hub suite 2520/0 fail, web suite 429 files/5209 pass/1 expected fail, shared 649/0 fail.
…cked (tiann#2730) Session grouping (upstream tiann#2727/tiann#2728) and the Blocked section (tiann#1717) each independently decided where a session renders, and neither accounted for the other. Two failure modes: A blocked group leader orphaned its members entirely. A grouped member never appears in topLevelSessions; it only ever renders via renderGroupMembers(leader), called from the Pinned-section loop, the member-list's own recursion, and the directory-group loop. The Blocked section's render loop wasn't one of them, so a leader floating to Blocked took its members out of the tree completely, not just out of a fold control. A blocked group member double-rendered. renderGroupMembers' own member list had no blocked-exclusion filter, so a blocked member kept rendering nested under its non-blocked leader at the same time it independently appeared in Blocked. Fixed by giving each session exactly one render location, matching the design `docs/guide/session-list.md` already specifies for the Pinned exception: the Blocked section's render loop now calls renderGroupMembers(s), same shape as Pinned, so a blocked leader's remaining members stay reachable underneath it; renderGroupMembers excludes any member already in blockedSectionIds from its own nested list, so a blocked member renders once, in Blocked, not twice. Two pre-existing tests asserted the old, now-superseded behavior — a member with a pending permission request is itself blocked, so it now floats to Blocked instead of staying nested behind a "waiting" badge on the leader. Updated both to assert the member's new direct visibility in Blocked instead. Red-green verified: reverted, ran the full groups.test.tsx file, confirmed exactly the 4 touched tests failed (the 2 new ones and the 2 updated ones) with the predicted wrong behavior, restored byte-identical, confirmed all 11 green again. Full verification: web typecheck clean, web suite 429 files/5211 pass/1 expected fail, hub typecheck clean, hub suite 2520/0 fail (one unrelated migration-timing flake reproduced and cleared on re-run), shared 649/0 fail.
One conflict, same known-bad region: upstream added a group-dissolve feature (DissolveGroupButton, allGroupMembersByLeader) to renderGroupMembers's empty-members branch, in the exact function tiann#2730's blocked-exclusion filter lives in. Not competing edits to the same behavior — combined both: kept the tiann#2730 filter (!blockedSectionIds.has(member.id)) on the visible member list, adopted upstream's allMembers/dissolveButton so a leader whose members are all pinned elsewhere, filtered out, OR floated to Blocked still keeps its dissolve action reachable instead of losing the group entirely. Ran the standing hazard check on this exact area regardless of the marked conflict's scope: all four renderGroupMembers(s) call sites (Pinned, directory-group, running-bucket, Blocked) verified individually, no duplication, each correctly closed. Everything past the conflict markers (the non-empty member-list render, already carrying upstream's dissolveButton wrapper) auto-merged correctly. Full verification: web typecheck clean, web suite 429 files/5222 pass/1 expected fail, hub typecheck clean, hub suite 2520/0 fail, shared 649/0 fail.
…te copy - Render consecutive markdown prose (paragraphs, headings, prose lists) in one read-only UITextView so a selection can span paragraphs, and keep it across unrelated re-renders. - Only end editing on transcript taps when a real keyboard is up, so taps on selection handles or the edit menu no longer drop the selection. - Replace the chat and scratchlist image viewers with a shared UIScrollView based viewer: pinch/double-tap zoom and pan; close via the button. - Add a one-tap copy button to markdown blockquotes.
Fix an iOS home-list hang: every row's context menu (built eagerly by SwiftUI) called canDissolveGroup, which rebuilt the member map over all sessions. With ~2,700 sessions the main thread never went idle. The dissolve flag is now computed once with the list snapshot. Group UI on iOS and web: - The separate members bar is gone. The leader row's second line carries "N members · x waiting · y working · z unread" and toggles the members. - Dissolve group moves to the leader's context/action menu. - iOS members render as ordinary session rows, indented under the leader. - iOS rows show the worktree name after the project (web parity).
Upstream restructured session groups significantly: the "Members (N)" summary and toggle moved off a separate nested block and onto the leader's own row (new SessionItemProps.groupSummary/groupMembers/ onToggleGroup, GroupSummaryLine, getGroupRowProps), and the dissolve action moved from a standalone button into the row's action menu (DissolveGroupDialog replacing DissolveGroupButton). This is the same function area tiann#2730's blocked-exclusion filter lives in, again. Three marked conflicts (destructured props, overlayOpen, and renderGroupMembers's body) reconciled by combining both sides rather than picking one. renderGroupMembers adopted upstream's simpler shape (no more standalone dissolve-button/empty-state branch, since that moved to getGroupRowProps) while keeping the tiann#2730 filter on its member list. getGroupRowProps itself — entirely new from upstream, so it carried no mark — needed the SAME tiann#2730 filter added by hand: without it, a blocked member would inflate the leader's own row summary (count, waiting/working status) instead of being excluded, reintroducing the double-counting tiann#2730 fixed in a new location. The standing hazard check caught a second silent misattribution in this exact area, unmarked by git: the new `{...getGroupRowProps(s)}` spread landed on the Blocked section's SessionItem (which does need it) but never made it onto the near-identical Pinned section's (which also needs it) — confirmed by direct comparison, not assumed. Added it to Pinned, with a new dedicated test (no prior coverage exercised a pinned leader with a blocked member) since the gap could have shipped silently otherwise. Two existing tiann#2730 tests needed updating for the toggle's new text ("N members"/"1 member" rendered on the leader's own row, replacing "Members (N)"); two more already-correct tests had the same stale selector sitting unexercised by the conflict and were fixed too. Red-green verified both non-marked fixes (the getGroupRowProps filter and the Pinned-section spread) independently: reverted each, ran the group test file, confirmed the predicted exact failures (double- counted summary / missing toggle), restored byte-identical, confirmed green again. Full verification: web typecheck clean, web suite 429 files/5223 pass/1 expected fail, hub typecheck clean, hub 2520/0 fail, shared 649/0 fail.
… keyboard, and sync hardening - Show live elapsed active-turn footer and context window ring with quota detail sheet (A1) - Add floating composer track bar for todos, group members, and uncommitted git diff stats (A2) - Seal closed streaming markdown blocks incrementally and defer highlighting inside open code fences (B5) - Enable iPad hardware keyboard submit, suggestion popup arrow/Esc navigation, and empty-draft prompt recall (B7) - Debounce WindowSnapshotStore with byte budget, fix send-catch/SSE routing races, and add foreground SSE liveness probes (B8) - Constrain markdown table column widths with copy menu, add redacted diagnostics export, OSSignposter, and MetricKit subscriber (B9)
…ills, PR chip, local import, and markdown/picker upgrades - Dictation: Bluetooth HFP/A2DP + ambient restore, audio interruption recovery, live level meter, insert vs. send flow, and retained-audio retry - Diff & file viewer: persisted inline diff review comments with grouped prompt submission and ScrollViewReader focusLine jump/highlight - Composer & settings: fullscreen editor, system haptics, quota burn-rate pace prediction, and auto-expand reasoning toggle - Hub features on iOS: in-chat and cross-session content search, skills picker sheet, PR status chip in track bar, and local CLI session import (Claude/Codex/Cursor/OpenCode/Pi) - Markdown: GFM admonitions, NSLayoutManager margin list markers without bullet-tab copy pollution, multi-format Copy (plain/RTF/HTML), and Copy as Markdown - Navigation & config: searchable model picker sheet, local agent profile presets, project directory grouping, and four-language localizations
…artial quota/file errors
…n-affordance-1717 # Conflicts: # web/src/components/SessionList.tsx
…nd fragment web QR - Hub: persist stable hubId (hub-id.json), expose on /health and /api/devices/register, stamp hubId into native push payloads, migrate fcm_devices to v38 with preferences_json, and filter iOS/FCM/Android Relay delivery per device - iOS: store hubId mappings in HubRegistry, route notification taps and lock-screen actions in O(1) without probing unrelated hubs, sync per-device push preferences from Settings, and add four-language localizations - Pairing: emit web direct-access URLs with #fragment instead of ?query; prefer fragment with query fallback across web, iOS BindLink, and Android PairingLinks
…n-affordance-1717 # Conflicts: # hub/src/store/index.ts # hub/src/store/migration-v13.test.ts # hub/src/store/migration-v15.test.ts # hub/src/store/migration-v18.test.ts # hub/src/store/migration-v19.test.ts # hub/src/store/migration-v20.test.ts # hub/src/store/migration-v23.test.ts # hub/src/store/migration-v24.test.ts # hub/src/store/migration-v25.test.ts # hub/src/store/migration-v26.test.ts # hub/src/store/migration-v28.test.ts # hub/src/store/migration-v30.test.ts # hub/src/store/migration-v36.test.ts # hub/src/store/migration-v37.test.ts
- Colour only waiting in the group summary; working turns secondary and member unread rolls up onto a folded leader's title and timestamp. - An open group's summary shows only its member count. - Under a project header, drop the repeated project name when a worktree or member summary fills the detail line, so it no longer truncates to "neo-…". - Render members as compact rows with no separators between them; the last member's separator closes the group at the top-level inset. - Fold toggle uses chevron down/up instead of a navigation-style ›.
- CoreText VT100/xterm emulator and renderer in HapiUI, with scrollback, wide/CJK glyphs, selection, quick keys and Send to Chat excerpts. - Direct-WebSocket Socket.IO client for the hub `/terminal` namespace: interactive shell plus live Agent PTY for active PTY sessions, with ping/pong watchdog, reconnect backoff and stable per-session shell ids so reopening replays the hub's retained buffer. - Terminal entry in the chat … menu and ⌘⇧T on iPad/Mac. - Clamp CSI numeric parameters (and bound CHT/CBT loops by width) so untrusted output cannot overflow cursor math or hang the main actor. - On an auth connect_error, pass the rejected JWT to the token provider so the retry refreshes past it instead of reusing the cached token. - Strip bracketed-paste terminators repeatedly so a nested ESC[201~ cannot be rebuilt into an early paste end. - Hub ws-interop test for the raw WebSocket client path; docs and README list the native terminal.
- Table cells clamped with .frame(maxWidth:) inside the horizontal scroll view reported a one-line height while their text wrapped at 300 pt, so long cells overflowed onto the rows below. A small cell Layout now measures the height at the width the cell actually gets, and cells fill their row so header and stripe backgrounds stay even. - A list item with a nested list took the child's indent: adjusting the nested list's spacing pointed at the separating newline, which belongs to the parent paragraph. - List gutters widen to the widest marker, so `10.` and checkboxes at accessibility sizes no longer run into the text; ordered numbers are right-aligned so their dots line up. - Add MarkdownTableLayoutTests with an opt-in table/list specimen.
…iann#2765) redactSettingsForDisplay spread the whole settings.json and masked only cliApiToken and extraHeaders. settings.json is shared with the hub, so doctor also printed vapidKeys.privateKey, telegramBotToken, serverChanSendKey, relayAuthKey and providerCredentials in clear text. Switch to an allowlist: known non-secret fields print as-is, the VAPID public key stays visible, and every other field (including fields added later) prints as "***". Fixes tiann#2761 Co-authored-by: Claude Opus 5.5 <[email protected]>
When the platform binary exits non-zero, bin/hapi.cjs printed the full command line in its "Failed to execute" line and then printed Node's raw exec error message, which repeats every argument. tiann#2664 redacted only the `job run -- <workload>` case, so a secret passed to any other command (`hapi hub --token ...`) still ended up in stderr. Print only the binary path, the spawn error code when the binary could not start, and the exit status or signal. The binary's own diagnostics already reach stderr through stdio: 'inherit'. The job-specific redaction helpers are no longer needed and are removed. Fixes tiann#2675 Co-authored-by: Claude Opus 5.5 <[email protected]>
…he hub down (tiann#2769) * fix(hub): an update sent without an acknowledgement no longer takes the hub down update-metadata, update-state, machine-update-metadata and machine-update-state answer the client through the callback that socket.io passes as the last argument. A client that leaves it out hands them none, and the call to it threw inside the socket handler, which ends the hub process. Each of the four now answers through a callback only when there is one; the update itself is applied, or refused, as before. via [HAPI](https://hapi.run) Co-Authored-By: Claude Code <[email protected]> Co-Authored-By: HAPI <[email protected]> * fix(hub): the same for a ping sent with nothing to answer it The app-level ping answers the client through the acknowledgement socket.io hands it. Sent without one, the call threw inside the socket handler. via [HAPI](https://hapi.run) Co-Authored-By: Claude Code <[email protected]> Co-Authored-By: HAPI <[email protected]> --------- Co-authored-by: Claude Code <[email protected]> Co-authored-by: HAPI <[email protected]>
tiann#2767) On Windows, isProcessAlive falls back to process.kill(pid, 0) when tasklist fails (e.g. times out). That fallback is unreliable on win32 and can throw for a live process. job attach treated the resulting `false` as exit: it skipped the start-marker check, stopped heartbeating, marked the job completed and could wake the session while the process kept running. Add probeProcessLiveness, which returns 'unknown' when tasklist failed and signal-0 threw on Windows. isProcessAlive keeps its behavior ('unknown' is still false for its other callers). job attach now stops only on 'exited' or a start-marker mismatch; an inconclusive probe falls through to the marker check and keeps the watcher running if that is unavailable too, matching how an unavailable marker probe is already handled. Fixes tiann#2677 Co-authored-by: Claude Opus 5.5 <[email protected]>
…sed (tiann#2764) The Codex duplicate merge copied a source's messages and moved its jobs before deleteSession could refuse it, and only published the result after the whole loop. A refusal on a later source left its messages copied into the canonical session and the earlier, already deleted sources unannounced. Check for a refusal before touching each source, and publish messages and session activity as each source completes. Fixes tiann#2706 Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…apply (tiann#2584) * fix: reject model and effort changes a locally driven session cannot apply * fix(web): keep model controls for inactive locally driven sessions * fix(hub): validate model payload before the local-mode gate * fix(hub): keep the existing local-mode model errors ahead of payload validation * docs: list the terminal-controlled flavors that reject model and effort changes * test: align per-flavor config tables with the local 409 rejection The per-flavor gates table in the hub and the control visibility table in the web still pinned the old false success for locally driven sessions. Record the behavior this PR introduces instead: - hub: expect 409 for local model changes on claude, kimi, opencode and copilot, and for local effort changes on claude, kimi, copilot and grok; a session without a flavor takes the Claude gate on both routes. - web: expect the model picker hidden for local claude, kimi and opencode sessions and the effort picker hidden for local claude
) * fix(agy): clear the HAPI MCP URL when the ACP launcher stops The agy launcher stopped its HAPI MCP bridge only after the backend disconnected cleanly and left the bridge URL in session metadata. A failed startup or a throwing disconnect kept advertising a dead URL. Stop the bridge in a finally block and clear the URL only when it is still the one this launcher published. * fix(agy): clear the HAPI MCP URL from the kill path The runner archives the session and closes the client as soon as the kill handler returns, so a bridge URL published while ACP startup was still waiting for a reply could stay in the archived row when the launcher cleanup reached the client too late. Share one idempotent bridge teardown between the kill handler and cleanup.
…ann#2471) * fix(cli): never let the agy quota probe start interactive sign-in Gate the agy quota probe behind a non-interactive auth check so unauthenticated runners (a macOS LaunchDaemon cannot read agy's token from the login keychain) can never open the interactive OAuth browser flow: - run `agy models` before any print-mode command; only exit 1 with the sign-in message counts as unauthenticated (10-minute cache), while timeouts, spawn failures, signals and other exits return an error status with a short 60-second cache - every failure path skips print mode - a successful auth check clears the stale caches, and an explicit refresh bypasses them, so the quota display recovers as soon as the user signs in - single-flight the whole probe (auth check + /usage + /credits) across concurrent callers including refresh, so overlapping polls or refreshes can never multiply print-mode invocations - /credits runs only after /usage completes; a non-zero /usage exit or unparseable output returns the error status instead of serving partial data - /usage failures arm the same short error cache as preflight failures * fix(cli): keep a single live negative verdict for the agy auth cache Recording an auth-check error while a refresh resolves a stale unauthenticated result left both caches armed, so later normal polls replayed "Not signed in" even though the latest verdict was an operational failure. The freshest negative verdict now replaces the older one in both directions (recording an error clears the unauthenticated cache and vice versa), keeping exactly one live verdict for normal polls to report. * test(cli): make the fake agy executable portable * fix(cli): reject agy sign-in output even on a zero models exit * fix(cli): recheck agy auth on ordinary quota polls * fix(cli): require a live model listing before agy print mode * test(cli): mock agy subprocess arguments on Windows * fix(cli): read the agy model listing from stdout only A zero-exit models probe with an empty stdout and a sign-in diagnostic on stderr was classified as authenticated: the legacy Name (Variant) parser accepted Authentication failed (session expired) as a model, so the quota probe launched /usage and could open the OAuth flow while signed out. Treat authentication failed as a sign-in message, require the model listing on stdout, and keep diagnostic rows out of the legacy fallback. * fix(cli): hold the next agy probe until a timed-out tree is gone A timeout rejects the command while the process-tree cleanup is still running, so a refresh issued right after could spawn a second agy beside the first child. Track that cleanup and wait for the child to close (or for termination to be confirmed) before the next spawn. * test(cli): keep one agy quota test per behavior * fix(cli): fail agy probes fast while a timed-out child is stopping * fix(cli): keep agy quota probes inside the hub deadline Give the Antigravity models, usage and credits sequence one shared budget and bound each command by the remaining time. Reject a timed-out command before starting tree cleanup, retry unconfirmed kills with backoff, and release the spawn guard on child close or a confirmed kill. * fix(cli): leave timed-out agy cleanup as on main and keep the probe budget * fix(cli): run agy usage and credits together after the sign-in check * fix(cli): stop a timed-out agy command by its process group * fix(cli): rerun agy preflight after unauthenticated refresh join * fix(cli): remove flaky agy quota scheduling assertions * chore(cli): add agy quota probe comment * fix(cli): give a quota refresh a fresh attempt after a failed joined probe * fix(cli): bound a joined agy refresh by its arrival deadline A refresh that joined an in-flight probe started a fresh probe budget after the join, so a slow joined probe plus a slow fresh attempt could outlast the hub's machine quota window and drop the completed results of the other providers. Start the refresh budget when the refresh arrives, hand the remaining time to the fresh attempt, and return an Antigravity error instead of starting a probe once it is spent.
…n-affordance-1717 # Conflicts: # hub/src/web/routes/codexDesktop.test.ts # hub/src/web/routes/codexExtras.ts
Move showBlockedOnly into the Sort-and-filter menu as a MenuRow alongside unread/active/working/scratchlist, AND-composed with the rest. Drop the standalone BlockedLensToggle header button; keep BlockedJumpPill (still the only way to travel to the next blocked row, not a filter). Predicate (sessionIsBlocked) and chrome are unchanged, from tiann#1717. Also folds Blocked into `isFiltering`, matching its new siblings — otherwise a previously-collapsed Blocked (or Pinned) section stayed collapsed after turning the filter on from the menu. Fixes tiann#1996
heavygee
force-pushed
the
1996-fold-blocked-filter
branch
from
December 4, 2026 06:18
1d94280 to
39626b4
Compare
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.
Fork-side cold-review stage PR. Not for merge.
Summary
Folds
showBlockedOnlyinto the combined Sort-and-filter menu (SessionListViewMenu) as aMenuRowalongside unread/active/working/scratchlist, AND-composed with the rest. Drops the standaloneBlockedLensToggleheader button; keepsBlockedJumpPill(travel-to-next-blocked, not a filter).Also folds
showBlockedOnlyintoisFiltering, matching its new siblings — a previously-collapsed Blocked (or Pinned) section now auto-expands when the filter is turned on from the menu.Stacking
Built on top of
tiann/hapi#2520(flagship blocked-chrome PR, introducessessionIsBlocked/BlockedJumpPill/showBlockedOnly/blockedCount— all reused as-is, nothing reinvented here). Diff vs tiann#2520's tip is 7 files / ~20 net lines; the rest of this diff is tiann#2520 itself until it merges.Fixes tiann#1996. Umbrella tiann#2356. Discussion tiann#2355.
Test plan
bun run typecheck(web) — cleanbun run test(web) — 409 files / 4809 passed, 1 pre-existing expected failisFilteringfix: reverting it fails the new "expands a collapsed Blocked section" test