Skip to content

fix(inbox): keep founder sidebars focused and preserve linked bots - #178

Merged
nullStack65 merged 5 commits into
release/native-0.1.10from
t3/fix-founder-inbox-default-shared-clo1108
Nov 26, 2026
Merged

nullStack65 merged 5 commits into
release/native-0.1.10from
t3/fix-founder-inbox-default-shared-clo1108

Conversation

@nullStack65

@nullStack65 nullStack65 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Problem

Founder sidebars could reopen without Shared or include the entire Agents backlog on reset. New threads could arrive without inbox metadata. The Inbox filter clipped host and attribution labels, and standing bots reached the Bots shelf only when the client connected directly to their host.

Change

  • Default to the active founder and Shared, including legacy owner-only selections. Reset clears the saved selection and updates the running renderer. Agents remains available on demand, so an inbox reset keeps the decision view usable even with hundreds of autonomous threads. A previously saved three-inbox choice needs one reset to adopt the new default because it looks identical to an intentional selection. Direct edits to the Electron settings file take effect on renderer reload.
  • Write a non-null inbox for new threads. WebSocket create and launch prefer the destination session's founder binding and preserve explicit Shared routing. An unattributed conversation uses the Agents filter without being treated as finished autonomous work.
  • Preserve the standing persona from the host's thread list through peer sidebar forwarding and client decoding. Restrict personal desks to their founder and exclude inherited child personas from Bots. Cap the menu to the viewport and wrap counts below the label when space is limited.

Scope

Founder inbox audit and permanent prevention, CLO-1108. The affected serializer is apps/server/src/peer/linkedSidebar.ts:76. The audited build 3ad1bfdd4f7114343ee6b6baf3b7854bdbb6c384 and the release branch at 18cf8f27f1df245acf78bbbbbea34c1475f4585a both omitted the persona. Regression tests cover the host list, peer summary, and client decoder.

Verification

  • 123 focused tests passed. A separate settlement sweep regression passed after the one independent Claude Opus review identified the unbound-human issue.
  • Chromium verified both founder views with a four-host linked sidebar fixture at 1280 and 360 pixels. Both passed on 4452a795a0, including Reset updating the running UI and persisting to the client settings store. Typechecks passed for Contracts, Client Runtime, Server, Web, Desktop, and Mobile. Changed-file formatting and lint passed.
  • The earlier broad changed-file check reported Knip, wider typecheck, and existing sidebar suite failures. ARC CI is still queued. The PR remains draft while those checks are outstanding. Tests use synthetic data. The fleet's existing bot routing and native devices were not changed or exercised by this PR.

Deploy: none
Model: GPT-6
Task: bugfix
Agent: Codex
Harness: Codex CLI in T3 Code

Jeff — personal and Shared desks and the readable four-host filter

Kameron — personal and Shared desks and the readable four-host filter

Jeff — 360px viewport

Kameron — 360px viewport

Before

The same synthetic sidebar fixture with the release-base filter menu.

Jeff with the release-base filter menu

Kameron with the release-base filter menu

Jeff with the release-base filter menu

Kameron with the release-base filter menu

@nullStack65
nullStack65 force-pushed the t3/fix-founder-inbox-default-shared-clo1108 branch from 4452a79 to 9a124b1 Compare November 25, 2026 02:10
@nullStack65
nullStack65 marked this pull request as ready for review November 25, 2026 02:10
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nullStack65

Copy link
Copy Markdown
Owner Author

Cross-family PR Review (1e5137e45a6f6d5cc6734f7e8465226ff2b7c52f)

Reviewed the full diff against release/native-0.1.10 (17 files) in a detached worktree and ran targeted unit tests across packages/contracts, packages/client-runtime, apps/server, and apps/web (all passing locally; Playwright browser test verified green in ARC CI).

Findings

  • F1 (important) — apps/web/src/components/sidebar/SidebarThreadFilterMenu.tsx:152-156:
    keepsShared omits a checked && guard:

    const keepsShared =
      inbox === "shared" &&
      owner !== undefined &&
      filter.inboxes.length === 2 &&
      filter.inboxes.includes(owner);

    When a founder enables a third inbox (e.g. ["jeff", "shared", "agents"]) and then unchecks Shared (yielding ["jeff", "agents"]), keepsShared still evaluates to true even though Shared is unchecked (checked === false). This disables the unchecked Shared menu item with the misleading aria-label ", stays checked with the founder-only selection", locking the user out of re-checking Shared until they select another inbox, uncheck their own inbox, or reset.
    Fix: guard with checked && (const keepsShared = checked && inbox === "shared" && ...) and add a regression assertion covering unchecking and re-checking Shared alongside Agents.

  • F2 (nit) — apps/web/src/components/sidebar/threadListFilter.logic.ts:322-330:
    threadListFilterCounts still sets standingVisible: standingBotBypassesListFilters(thread) for all non-archived standing bots, whereas matchesThreadListFilter now scopes standing bots by viewingFounder, filter.inboxes, and filter.hiddenAttributions. This causes faceted counts for Environments, From, and the other founder's Inbox to include standing bots that are hidden in the sidebar.

{
  "reviewed_head": "1e5137e45a6f6d5cc6734f7e8465226ff2b7c52f",
  "reviewer": "Gemini 4 Neon, Antigravity",
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "summary": "SidebarThreadFilterMenu.tsx keepsShared omits `checked &&`, disabling the unchecked Shared checkbox whenever a founder selects `[owner, other]` (e.g. `[jeff, agents]`) and locking them out of re-checking Shared.",
      "outcome": "open"
    },
    {
      "id": "F2",
      "severity": "nit",
      "summary": "threadListFilterCounts still passes standingVisible: standingBotBypassesListFilters(thread) even though matchesThreadListFilter now filters standing bots by viewingFounder, inboxes, and hiddenAttributions, causing minor faceted count drift.",
      "outcome": "open"
    }
  ]
}

@nullStack65

Copy link
Copy Markdown
Owner Author

Cross-family PR Review Re-check (1e5137e45a6f..86e810c377d4)

Verified the fix delta on exact head 86e810c377d4b7007d591da33d7d21e756ed1c28 in a detached worktree and ran apps/web unit tests (threadListFilter.logic.test.ts: 15/15 passed; botPresence.test.ts: 11/11 passed).

Verification

  • F1 (important) — confirmed: inboxKeepsSharedChecked in apps/web/src/components/sidebar/threadListFilter.logic.ts now guards with filter.inboxes.includes("shared") and is called from SidebarThreadFilterMenu.tsx. Unchecking Shared from [owner, shared, agents] leaves Shared enabled and re-checkable, while [owner, shared] still keeps Shared checked. Regression test covers both paths.
  • F2 (nit) — fixed: threadListFilterCounts now filters out non-listed standing bots via standingListedFor(thread, viewingFounder) and restricts standingVisible via standingBypassesCountFilters(thread, viewingFounder), aligning faceted counts with matchesThreadListFilter. Unit tests updated and passing.

No new regressions introduced.

{
  "reviewed_head": "1e5137e45a6f6d5cc6734f7e8465226ff2b7c52f",
  "reviewer": "Gemini 4 Neon, Antigravity",
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "summary": "SidebarThreadFilterMenu.tsx keepsShared omits `checked &&`, disabling the unchecked Shared checkbox whenever a founder selects `[owner, other]` (e.g. `[jeff, agents]`) and locking them out of re-checking Shared.",
      "outcome": "confirmed",
      "rechecked_head": "86e810c377d4b7007d591da33d7d21e756ed1c28"
    },
    {
      "id": "F2",
      "severity": "nit",
      "summary": "threadListFilterCounts still passes standingVisible: standingBotBypassesListFilters(thread) even though matchesThreadListFilter now filters standing bots by viewingFounder, inboxes, and hiddenAttributions, causing minor faceted count drift.",
      "outcome": "fixed",
      "rechecked_head": "86e810c377d4b7007d591da33d7d21e756ed1c28"
    }
  ]
}

nullStack65 and others added 5 commits November 25, 2026 22:13
Model: GPT-6
Task: bugfix
Agent: Codex
Lane: codex
Model: GPT-6
Task: bugfix
Agent: Codex
Lane: codex
The inbox routing commit left a stale duplicate dispatch branch and a
second InboxActor import in ws.ts, which broke parsing (TS1005/TS1128).
Restore ws.ts to the already-correct fileUnderCreator version; the PR's
inbox behavior lives elsewhere.

Model: Claude Sonnet 5.5
Task: CLO-1108
Agent: Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t counts

Unchecking Shared while Agents was also selected left the Shared menu item
disabled, because the keep-checked guard ignored whether Shared was checked.
The guard is now a tested helper that applies only while Shared is checked.
Inbox, Environment and From counts also now treat standing bots the way
matchesThreadListFilter does for a viewing founder.

Model: claude-sonnet-5-5
Task: CLO-1108
Agent: claude-code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Drop the symmetric standing-bot list rule so Kameron keeps Jeff's personal bots
visible while Jeff never lists Kameron's, and update the affected tests.

Model: Claude Sonnet 5.5
Task: bugfix
Agent: Antigravity
@nullStack65
nullStack65 force-pushed the t3/fix-founder-inbox-default-shared-clo1108 branch from 86e810c to 33b8bf5 Compare November 25, 2026 22:39
@nullStack65

Copy link
Copy Markdown
Owner Author

Cross-family PR Review Re-check (post-rebase onto #213, head 33b8bf543b6c26e842a8d77f2f979e1ec9ffe41d)

Performed a focused cross-family re-check on exact rebased head 33b8bf543b6c26e842a8d77f2f979e1ec9ffe41d (rebased onto origin/release/native-0.1.10 08d850cf79a66dcda77320bb72ec6b281e745bf4) in a detached temporary worktree (/tmp/t3code-pr178-recheck).

Verification

  1. Asymmetric founder sidebar visibility (#213) preserved:
    • standingListedFor has been completely removed; no symmetric standing-bot hiding remains.
    • isHiddenFromFounder in packages/contracts/src/threadInbox.ts is intact: viewing as jeff hides audience: "kameron" and owner: "kameron" non-shared/non-jeff threads/bots; viewing as kameron hides nothing.
    • packages/client-runtime/src/state/threadListFilter.ts (matchesThreadListFilter, matchesOlderSettledGroup), apps/web/src/components/bots/botPresence.ts (partitionBotGroups), apps/web/src/components/sidebar/threadListFilter.logic.ts (threadListFilterCounts), and apps/web/src/components/Sidebar.tsx all enforce isHiddenFromFounder asymmetrically: jeff never sees Kameron's personal threads/bots, while kameron keeps Jeff's personal bots (CoS (Jeff), Personal Finance, audience: "jeff") visible in Shared Bots alongside Kameron's own and shared bots.
    • apps/web/src/components/Sidebar.founder-inbox.browser.test.tsx explicitly verifies both jeff and kameron asymmetric views.
  2. Focused-inbox & linked-sidebar changes (#178) clean:
    • F1 (important) — confirmed on 33b8bf543b6c26e842a8d77f2f979e1ec9ffe41d: inboxKeepsSharedChecked still guards with filter.inboxes.includes("shared") and is wired into SidebarThreadFilterMenu.tsx.
    • F2 (nit) — fixed: threadListFilterCounts uses isHiddenFromFounder and standingBotBypassesListFilters(thread) in alignment with matchesThreadListFilter.
    • effectiveInboxFilter ([owner, "shared"] default, legacy [owner] upgrade), splitStandingThreads child exclusion, linkedSidebar.ts sameThread equality fields, and Orchestrator.ts / ThreadForkService.ts / ThreadSettlementService.ts unattributed-thread handling are clean with no regressions.
  3. Targeted tests (all passed in detached worktree):
    • packages/contracts/src/threadInbox.test.ts: 32/32 passed
    • packages/client-runtime/src/state/threadListFilter.test.ts: 12/12 passed
    • packages/client-runtime/src/state/linkedSidebar.test.ts: 5/5 passed
    • apps/web/src/components/bots/botPresence.test.ts: 12/12 passed
    • apps/web/src/components/sidebar/threadListFilter.logic.test.ts: 17/17 passed
    • apps/web/src/components/Sidebar.logic.test.ts: 92/92 passed

No new findings.

{
  "reviewed_head": "1e5137e45a6f6d5cc6734f7e8465226ff2b7c52f",
  "reviewer": "Gemini 4 Neon, Antigravity",
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "summary": "SidebarThreadFilterMenu.tsx keepsShared omits `checked &&`, disabling the unchecked Shared checkbox whenever a founder selects `[owner, other]` (e.g. `[jeff, agents]`) and locking them out of re-checking Shared.",
      "outcome": "confirmed",
      "rechecked_head": "33b8bf543b6c26e842a8d77f2f979e1ec9ffe41d"
    },
    {
      "id": "F2",
      "severity": "nit",
      "summary": "threadListFilterCounts still passes standingVisible: standingBotBypassesListFilters(thread) even though matchesThreadListFilter now filters standing bots by viewingFounder, inboxes, and hiddenAttributions, causing minor faceted count drift.",
      "outcome": "fixed",
      "rechecked_head": "33b8bf543b6c26e842a8d77f2f979e1ec9ffe41d"
    }
  ]
}

@nullStack65
nullStack65 merged commit 6b57c64 into release/native-0.1.10 Nov 26, 2026
8 of 11 checks passed
@nullStack65
nullStack65 deleted the t3/fix-founder-inbox-default-shared-clo1108 branch November 26, 2026 01:38
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