Skip to content

fix(sidebar): show one founder attention cue on standing bots - #253

Draft
nullStack65 wants to merge 4 commits into
release/native-0.1.10from
t3/clo-1362-standing-bot-sidebar-indicator
Draft

nullStack65 wants to merge 4 commits into
release/native-0.1.10from
t3/clo-1362-standing-bot-sidebar-indicator

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Browser proof

Chromium, December 1, 2026, 03:48:39-03:49:00 UTC: 5/5 browser tests passed. Both Kameron and Jeff at 1280px and 390px show zero right-edge indicators on quiet/read rows, only their own name for an unread mention, clearing after a click supplies their read update, a fresh badge after re-mention, and Decision remaining after reading. A shared-thread case proves independent founder reads. Rendered captures were inspected.

Run from apps/web:

vp env exec --node 26.13.1 vp test run src/components/sidebar/SidebarBotsGroup.browser.test.tsx --project browser

Matched base captures at e9f14efd91bd27c45ba767fb433bda0c4d779d1e reproduced both right-edge marks in two browser cases at 03:47:52 UTC. Screenshots are under /mnt/arc-nvme/t3-worktrees/t3code/t3-ea381798-bc0831df13642ffc/.t3/: clo1362-before-{kameron-1280,jeff-390}-{quiet,mention}.png and clo1362-{kameron,jeff}-{1280,390}-{quiet,mention,read,remention,decision-read}.png. They are uncommitted. GitHub image attachment upload is unavailable through the exposed PR tools; screenshots have not been uploaded to GitHub.

Limits: these are real Chromium component tests with supplied shell/read updates. Whole-client WebSocket sync, remote/relay/tunnel, multi-device behavior, Electron shell and native mobile were not observed. No live client/server was changed, restarted or deployed.

Change

Standing-bot rows could show both an FYI dot and a presence dot. They now show one priority cue: explicit sign-off/decision/review/approval first, otherwise the viewing founder's unread name, otherwise nothing. Work and availability keep the existing text and avatar.

A later routine assistant reply reproduced the loss of an unread mention. Each founder now keeps their own latest qualifying mention time within the existing shell/read contract, so a later Jeff ping cannot renew a read Kameron ping. Existing prose/quote/code and agent-message exclusions remain. A paged migration backfills per-message flags; two partial indexes serve the latest times without scanning history on sidebar reads. Older shell fields remain compatible.

Stacks on #252, whose head is e9f14efd91bd27c45ba767fb433bda0c4d779d1e. Must be rebased if #252's head moves. This PR targets release/native-0.1.10; #252's branch was not written to or reviewed here.

Requirement: standing-bot sidebar indicators (CLO-1362).

Validation

  • Before repair: seven failing contract/projection assertions, including a routine reply hiding a mention.
  • Focused suite: 142 tests passed across botAttention.test.ts, orchestrationV2.test.ts, ProjectionStore.test.ts, HumanNote.test.ts, Migrations.test.ts, and 119_FounderMentionIndex.test.ts. Covers retained founder times, re-mention, editing away a mention, backfill and indexed lookup plans.
  • Repo formatter and lint on all 13 changed files pass; lint retains one existing loop warning. Feature map passes: 71 features, 63 with specs, 8 explicitly unverified. Changed-file tests and React Compiler check pass.
  • vp env exec --node 26.13.1 vp run check:changed e9f14efd91bd27c45ba767fb433bda0c4d779d1e remains red on nine typing errors in untouched Sidebar.logic.test.ts / botOrgTree.test.ts, plus unused .github/scripts/set-{mobile,release}-version.cjs and five existing exports in AgentOutputGate.ts, RemoteDelegation.ts and secretRedaction.ts. These are outside this repair.
  • Surface audit: My Bots, Others and Closura all render SidebarBotsGroup, so all receive the fix in web, narrow web and Electron's shared web UI. Search uses ordinary thread rows. ChatView only consumes the avatar state and had no double mark. Native mobile has no equivalent standing-bot renderer; no mobile UI changed. The projection covers replies from every provider.

Model: codex/gpt-6.1-sol
Task: implementation and verification
Agent: Codex
Harness: Codex through T3 Code
Review state: draft; no independent review started by this writer. No merge or deployment.

Prior art

  • Extend the existing attention resolver, shell projection and founder read cursors. A new unread store or per-row message fetch would duplicate the existing contract.
  • Use stock SQLite partial indexes and the existing migration runner. Tradeoff: two projection flags/indexes and an optional two-founder shell map, in exchange for retaining events with bounded lookup cost.
  • Keep the existing row, avatar, badges and accent styling; no new UI primitive, dependency or presence system.
  • Searched: 2026-12-01, repository search for resolveBotAttention, BotAttentionMark, resolveBotPresence and attentionMentions across apps and packages. The shared component is the only double-mark renderer.

Deploy: fleet

nullStack65 and others added 4 commits December 1, 2026 02:40
The standing-bot row badged a founder-named message forever: it passed the
shell's mention names to resolveBotAttention with no read check, so opening
the bot and reading it left the purple name pill on.

The shell now carries the time of the message that names the founders
(attentionMentionsAt, from the same latest-visible-message lookup). The row
compares it with the viewing founder's own read cursor, the one the rest of the
sidebar uses (a message at or before the visit is read; a later one re-badges).
Decisions, reviews, approvals and joint sign-offs still badge until answered.

Model: claude-sonnet-5-5
Task: fix
Agent: Platform
Lane: CLO-1359
Harness: t3/claude-code

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ature

Model: claude-sonnet-5-5
Task: fix
Agent: Platform
Lane: CLO-1359
Harness: t3/claude-code

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Retain each founder's latest mention through routine replies and compare it with that founder's existing read cursor. Keep explicit asks ahead of mentions and leave ordinary updates in the avatar and row text.

Model: codex/gpt-6.1-sol
Task: implementation
Agent: Codex
Model: codex/gpt-6.1-sol
Task: verification
Agent: Codex

This branch has not been deployed

No deployments
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