Skip to content

[cold-review] feat(web): fade non-resident session rows alongside the presence dot - #324

Closed
heavygee wants to merge 5 commits into
mainfrom
feat/session-row-residency-fade
Closed

heavygee wants to merge 5 commits into
mainfrom
feat/session-row-residency-fade

Conversation

@heavygee

Copy link
Copy Markdown
Owner

Fork-side cold-review stage PR. Not for merge.

Upstream target: tiann/hapi — umbrella tiann#2356 item 4 (residency).

Restores the row-level residency fade that 832c5922f dropped, scoped to the title line so the presence badge and attached-job meter stay full strength.

@heavygee
heavygee marked this pull request as ready for review November 10, 2026 02:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T10:16:26.776422Z dffb573 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

tiann and others added 4 commits November 10, 2026 16:26
* fix(deps): patch WebSocket and math rendering dependencies

* fix: retain the release version after integration validation
Claude Code emits `system/task_notification` and injects
`<task-notification>` user messages when a background task finishes.
These are fed back to the model so it can continue; they are not
user-facing turn boundaries. The hub treated them as events and sent an
extra "Task completed / Task failed" notification on every channel
(Web Push/toast, FCM, APNs, Telegram, ServerChan) on top of the Ready
notification that follows once the agent finishes reacting.

Remove the task notification pipeline from the hub: parsing, dispatch,
the TaskNotification type, each channel's sendTaskNotification, and the
native composer's composeTask. Narrow the composed native type/severity
to what the hub emits. Chat timeline display of task summaries and the
background task count are unchanged.

Update the native contract, PWA, and ServerChan docs to match.
The hub no longer sends `task-notification` pushes (961f2fd), so remove
the client handling on both platforms:

- iOS: drop PushType.taskNotification, its Reply notification category,
  and the NSE category stamping; Reply now applies to `ready` only.
- Android: drop PushType.TASK_NOTIFICATION; Reply attaches to `ready`
  only. The `task_notifications` channel stays as the bucket for unknown
  types / contract versions, renamed to "Other notifications"
  (CHANNEL_OTHER). Its system channel ID is unchanged so operators'
  per-channel settings survive.
- Drop the task-only `success` / `error` severities from both clients and
  the hub's FCM/APNs payload types.

Chat timeline parsing of `<task-notification>` is unchanged.
@heavygee heavygee added the cold-review-clean Fork-side bot review is satisfactory; safe to promote to upstream PR label Nov 10, 2026
832c592 moved liveness onto the agent icon and dropped the row fade; tiann#2296
then gave every state its own mark, so stopped is no longer shown by an absence.
That fixes identity. It doesn't fix scale.

The badge answers "what state is this row in?" once you look at it. It can't
answer "which of these sessions is still held in memory?" across a long list,
because that's a whole-list scan and a 10px mark doesn't survive one. At a
handful of sessions the badge covers both jobs. At ~30 active, a stopped row and
a resident idle row are the same shape of row until you inspect each badge.

So restore the fade on `!active` — the same predicate the stopped badge uses,
rendered at the other scale. Shape carries which state; dimming carries which
rows.

The fade covers the title line only. The presence badge and the attached-job
meter sit outside it deliberately: a job outliving its agent is exactly the case
where the row is non-resident but the work is live, and both facts have to stay
readable at once. tiann#2296 already marks that session's badge as working; this
keeps the row dim underneath it.

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <[email protected]>
@heavygee
heavygee force-pushed the feat/session-row-residency-fade branch from 21de8a3 to dffb573 Compare November 10, 2026 10:15
@heavygee heavygee closed this Nov 11, 2026
@heavygee
heavygee deleted the feat/session-row-residency-fade branch November 11, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cold-review-clean Fork-side bot review is satisfactory; safe to promote to upstream PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants