Skip to content

feat(planning): full-screen Inbox page with urgent-only host pop-ups - #8471

Merged
kyle-sexton merged 9 commits into
mainfrom
feat/inbox-full-screen
Oct 19, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
feat/inbox-full-screen

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

No related issue: the owner approved this as item 9 of the question-screen spec, from rounds 9-12 of the live interview; it has no tracker issue.

Summary

The Inbox was a crowded drop-down, and it kept showing handled items as waiting. Pressing Inbox in the header now opens a full-screen page for everyone. Host pop-ups now appear only for urgent events.

  • Four tabs: Needs you (the default), My requests, Notifications and History. Filter chips sit under the tabs. Notifications show 20 per page, filtered by type, with an Unread only switch.
  • Clicking an item goes to where it happened (the question, answer, chat message, Discussion comment, Host queue row or report) and closes the page.
  • What a person sees depends on their role. Everyone sees their own items. Leaders also see proposals and rounds to mark ready. The owner also sees everything that needs the host. Only the owner can Run, Share, Take down, Approve or Remove, and the server enforces that.
  • The host gets pop-ups only for joins, requests waiting for Run and problem reports. Pop-ups that arrive close together collapse into one with a count, and an item that stops waiting drops out. Urgent pop-ups stay until closed or opened. The owner's on/off switches for each kind sit at the top of Notifications, stored per person as a popups pref.
  • The tour and welcome text now say @claude in chat reaches Claude.

Fix

The stale Inbox items had two causes.

  • Server: _inbox in session.py listed every open report as waiting, including reports the owner had already asked Claude about. Those now wait again only after the reporter adds to them.
  • Client: every failed request stayed in "Waiting on you" forever, including requests the owner had discarded or cancelled. A discard now records cancelled: true. Only a guest's request that Claude failed waits on the owner, and only until the owner opens it. The Host view's queue uses the same filter.

Schema v5 -> v6 (migrate.py _v5_to_v6): adds the optional popups pref. Legacy discards are marked cancelled: true, and only that flag marks a discard now, never a reason string, which Claude could write after reading guest text. Guest requests that Claude failed before the upgrade start read, so they do not flood Needs you. The original file is kept as state.v5.json. A rehearsal on a copy of the live session's state passed the v6 schema with unchanged record counts.

Not in this PR: guest pop-up defaults and host-set session defaults (round 11 Q36/Q37), and a "Don't pop up for these" action on each notification. They follow in a later PR.

Verification

  • plugins/planning/shared/tests/ui.test.sh: 36 suites, 1247 passed, 0 failed. align.test.sh: 502/502.
  • TestInbox.test_handled_requests_and_reports_leave_what_waits_on_the_host fails before the fix (['report:F3']) and passes after (['fail:R4']).
  • Planning Python suites (test_session, test_load, test_migrate, test_server, test_share, test_tunnel, surface tests), tracer.test.sh 18/0, surface.test.sh, watch.test.sh, the changelog-fragment check and typos all pass.

Related

Follows #8386 (Inbox), #8412 (sharing default) and #8420 (picture approval).

🤖 Generated with Claude Code

kyle-sexton and others added 7 commits October 19, 2026 12:08
…cations and History

The header Inbox button opens a page of its own in the session's place for everyone, at every width, with
tabs behind filter chips the device remembers. Needs you holds what each role can act on now; every row
opens where it happened and closes the page.

Follow-up 23: the owner's Inbox kept handled items waiting. session.py _inbox listed an open report the
owner had already asked Claude about as waiting, and the page's review list showed every failed request
under a chip on by default, including requests the owner discarded (failed with "The owner did not share
the result.") or cancelled. Reports asked about now wait on Claude until the reporter adds to them; a
discard marks its request cancelled; a guest's request Claude failed waits (fail: item) until the owner
opens it.

Follow-ups 18 and 24: the owner's pop-ups are for a join, a request waiting for Run and a problem report;
pop-ups arriving together collapse into one with a count and Open Inbox and drop items that stopped
waiting. The owner can change which kinds pop up with Pop-ups switches at the top of Notifications (the
new optional popups pref; old states load unchanged).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Round 12 Q39: the host's pop-up for what urgently waits (a join, a request for Run, a report) stays until
the host closes it with its new Close button or opens it, or nothing in it waits any more; a toast that covers it
hands back to it. Every other toast keeps its timing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…that name @claude

The host's pop-ups skip items the host filed (a report of their own). The tour step and the welcome line
have said chat never reaches Claude since #8408; they now say a message starting with @claude asks Claude.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Review in Inbox from the Host view opens the request's row (it passed a bare id).
- Run again and a reporter's addition forget the owner's read mark, so a second failure and a returning
  report read as new; a pop-up mark is forgotten when its item leaves, so it pops up again on return.
- Mark all read leaves failed requests alone; they clear from their row.
- Only the cancelled flag marks a discard. Schema version 6 (migrate.py 5 -> 6) marks earlier discards
  cancelled and starts earlier Claude failures read, so an upgrade adds nothing to Needs you.
- A toast's Close or Open never closes the Inbox page; the first Escape takes an urgent pop-up away; its
  Close is named Close this pop-up; Open Inbox never shuts an open page.
- A chip turned off stays in reach; guests see no proposals or suggestions to place.
- The popups pref refuses a kind named twice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first Escape now takes an urgent pop-up away (Q39), so the suite presses Escape until Ask Claude is closed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 19, 2026 17:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T17:32:13.660453Z 21c10b5 Draft marked ready
ℹ️ 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.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed efbb011c7d38263e739c22908fd501390d596271: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change since 21c10b5 (reviewed at head efbb011).

  • plugins/planning/shared/session.py: The new popups validator rejects non-string entries with isinstance(k, str) before the membership test. A payload like [["join"]] or [{}] now fails validation as bad-field. Before this change, set(v) would have raised on an unhashable entry. Duplicates are still refused, and the length stays at or below the number of kinds. The v.count check short-circuits on the first repeated entry, so a long list of repeats can't cost more than a linear pass.
  • plugins/planning/shared/web/app.js: The pop-up and Inbox changes only filter which waiting items may pop up and rebind the toast click handler. Toast text is still set through textContent, so there is no injection surface. Closing the chat when the bell opens is UI state only. No authorization or trust-boundary logic changed.
  • Tests: The two test files (test_session.py, ui_inbox_page.js) add coverage and nothing else.
  • Instruction surfaces: No standing instruction was deleted or softened. The protected-class register wasn't needed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 21c10b5979

ℹ️ 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".

Comment thread plugins/planning/shared/web/app.js Resolved
Comment thread plugins/planning/shared/web/app.js Resolved
Comment thread plugins/planning/shared/session.py Resolved
Comment thread plugins/planning/shared/web/app.js Resolved
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed efbb011c7d38263e739c22908fd501390d596271: 0 finding(s), 0 as inline comments.

Incremental review of efbb011 since 21c10b5 found nothing to flag. I read the diff and the surrounding code in session.py and app.js. I did not run any tests; the PR's test results are author-claimed and unverified.

  • session.py popups validator: This now checks each entry is a str before testing membership in POPUP_KINDS, then checks uniqueness with count. The old set(v) would have raised TypeError on an unhashable entry such as [["join"]] or [{}]. The new test cases cover that. The length bound still holds, because unique entries drawn from six kinds can't exceed six.
  • app.js alertable: It is shared by the fresh-item scan and alertToast, and a failure pops up only while i.unread is set. Fail inbox items carry unread (used at lines 2781 and 3025). An opened failure stays in waits, so it is not treated as new again. It drops out of the live pop-up set.
  • app.js toast Open handler: It is rebound on every render, so Open follows the newest item when the words are unchanged. The text and label are written only when they change, so the live region stays quiet.
  • app.js openBell: It now calls setChat(false) before opening the page. The call runs after closePop() and before ui.pop is set, so syncModal inside it doesn't see the page as open. syncModal then makes the chat inert, and the call closes it on desktop as well as phones. I'm treating that as intended, since the comment says the page stands in for the whole session.
  • ui_inbox_page.js: The new scenarios cover the three behaviours (an opened failure never pops up, Open follows the newer report, chat yields on phone). They contain fixed waits (2500 ms, 10500 ms for the report interval) that could be slow or flaky, but nothing there rises to a blocking finding.

kyle-sexton and others added 2 commits October 19, 2026 13:55
- A pop-up's Open follows the newest item even when its words stay the same.
- Opening the Inbox page closes chat, so a hidden chat never holds Tab or keeps the top bar inert on a phone.
- The popups pref refuses non-string items as a bad field instead of failing on hashing.
- A failure pops up only while unread; an opened one drops out of the pop-up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each poll set the same label again, which rewrote the live region every few seconds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit 1edc59b Oct 19, 2026
32 checks passed
@kyle-sexton
kyle-sexton deleted the feat/inbox-full-screen branch October 19, 2026 18:31
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.

1 participant