GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(board): board-owned threads stay out of every thread list by polymaniadeveloper-hub · Pull Request #186 · Tevin2119/t3code

Conversation

@polymaniadeveloper-hub

@polymaniadeveloper-hub polymaniadeveloper-hub commented Nov 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Board revamp phase 3, T3 side, slice 2 (spec section 7 item 2): the parts of board-owned threads that do not depend on the engine's task-to-thread link, which is not published yet. A board task's conversation is a hidden thread: it opens by id and no thread list shows it. This PR lands the marker, the filtering and three fixes left over from phase 2. Thread creation on task start is not in it (see Deferred).

Five commits, one per step.

1. Routing probe (spec section 10)

Result: the web app opens a thread no list shows purely by id. No routing change was needed.

ThreadRouteView.browser.test.tsx opens a thread whose lineage carries the marker through /$environmentId/$threadId three ways: in-app navigation from a listed thread, a pasted link, and a new router on the thread's own address (what a reload does). It runs twice: with the shell carrying the thread's row, which is what the server does today, and with the shell leaving the row out, so the open rests on the thread's own detail load alone. Both pass, and the sidebar shows only the listed thread.

Why it works: the server's shell stream still sends marked threads, and each client list filters them. ThreadRouteView also already loads a thread the shell leaves out through its own detail stream (the path older settled threads use).

One limit found by reading, not by test: while a tag filter is hiding threads, ThreadRouteView opens a thread the shell leaves out only as the child of a visible parent. A board thread has no parent, so if a server ever stopped sending its shell row it would not open while a tag filter is on. Today the row is always sent, so this does not bite.

The probe runs against the test harness's fake server, not a real one.

2. Marker decision

Reuse lineage.engineIntake, with the value board-task:<board>:<task>. No new field.

  • It inherits isListedThreadLineage, every existing SQL exclusion and the migration 098 index. No migration.
  • Builds of web and mobile that are already installed know this field and filter on it. A new field would show board threads in every older client until it updated.
  • I checked every reader of engineIntake. Nothing treats an intake thread in a way that is wrong for a conversation a person types into: NativeIntake.ts compares the marker only on its own thread (engine:<admission>), Orchestrator.ts only stamps it, ProjectionStore.ts only reads it into the lineage, and no client reads the value at all.
  • Only the server stamps it: withCreationProvenance already strips engineIntake from every client thread.create (ws.ts).
  • apps/server/src/delivery/boardThreadMarker.ts builds the marker and one deterministic create command id per task (the NativeIntake pattern). It is one way. Nothing parses a marker, and nothing resolves a task to a thread from it. The engine's link stays the only source of a task's thread.
  • New isServerOwnedThreadLineage in contracts names the check for the places that list subagents but must still leave server-owned work out.

3. Filter-site audit (regenerated from origin/master at 9db6a1bf84)

The key fact: the shell stream carries marked threads to clients, and clients filter. So both layers matter.

The audit found four real leaks. All four already leaked engine intake threads before this PR.

# Site Kind Before Now Proof
1 ProjectionStore.listActiveThreads (feeds t3_thread_list) listing leak: never selected the marker, so the lineage looked listed selects it ThreadLaunchService.test.ts (fails on base), ProjectionStore.test.ts
2 ThreadManagementService.listProjectThreads, includeSubagents branch listing leak: left out side chats only leaves out server-owned too same test, both branches
3 Archived threads list, web and mobile (createArchivedThreadSnapshotsAtomFamily) listing leak: no lineage filter filtered in the shared atom archivedThreads.test.ts
4 ThreadLinkPicker (link a pull request or issue to a thread) listing leak: no lineage filter filtered ThreadLinkPicker.logic.test.ts
5 issue/linkedThreads.ts, pullRequest/linkedThreads.ts relationship showed marked threads excluded both linkedThreads.test.ts
6 ProjectionStore shell rows with listedOnly (agent awareness read) listing excluded same ProjectionStore.test.ts (assertion added)
7 ProjectionStore.listOlderSettledThreads listing excluded same ProjectionStore.test.ts (now with a board value)
8 ThreadSearch.ts, four queries (message hits, title candidates, older settled) listing excluded same ThreadSearch.test.ts, through search and searchOlderSettled
9 ProjectionStore.listActiveShellIndex index carries the marker same by construction (feeds rows 10, 12)
10 ShellStream trims (shellTrimFacts, hiddenChildAncestorIds) predicate marked threads never count as older settled same existing ShellStream.test.ts, not extended
11 IdleCompaction predicate skips unlisted threads same not changed, see Owner questions
12 AgentAwarenessRelay, shared/agentAwareness, serverRuntimeStartup predicate unlisted threads get no awareness rows and do not count as a project's first thread same by construction
13 client-runtime threadShell (isShownUnderParent, navigationThreadShellsAtom), composerThreadItems, olderSettledThreads, projectRemoval, threadTagFilter predicate filtered same existing tests, not extended
14 Web sidebar (Sidebar.logic.ts), command palette incl. recents (CommandPalette.tsx, CommandPalette.logic.ts), composer thread mentions, scheduled-task picker, BackgroundThreadAnnouncer, ThreadNotificationCoordinator predicate filtered same read, plus the sidebar check in the probe
15 Mobile thread list (threadListV2.ts), home list, command palette, scheduled-task picker, composer predicate filtered same new test in threadListV2.test.ts; the rest read
16 t3_thread_search MCP routes through ThreadSearch.search same read (mcp/toolkits/thread/handlers.ts), SQL tested in row 8
17 t3_thread_list MCP routes through rows 1 and 2 fixed row 1 test runs the real stores

Left alone on purpose, because they are not thread listings:

  • ProjectionStore.getPullRequestSnapshot: pull request tracking for every thread.
  • The other json_extract lineage sites (fork history, subagent recovery, checkpoint capture, auto-settle, messageSearchIndex, migration 079): they read lineage for structure.
  • countThreads: a count for telemetry.
  • Web readers of every shell that do not list threads: project sort order, saved pull request summaries, the running-thread count in Update everything, pin order. A marked thread's activity can still move its project up the project order, and its pull request still shows on the pull requests page.
  • Mobile app shortcuts record threads a person opened. Mobile has no way to open a board thread yet.

Relationship surfaces (row 5). I chose to exclude. A linked-thread row opens the raw thread route, which shows the conversation without the task's engine facts beside it and outside the board. The card already carries the pull request link. Side chats are left out of the same rows for the same reason: they live inside another view. If the owner would rather see "this board task opened this pull request" there, the row should open the task, not the thread, and that needs the engine link.

Surfaces exercised by tests: server SQL and service listing (rows 1, 2, 5 to 8), the client-runtime archive atom (3), the web link picker logic (4), the mobile thread list (15), and web routing plus the sidebar in a real browser (the probe).
Covered by construction, not exercised: rows 9 to 14 and 16, and the mobile surfaces other than the thread list.
Desktop shares the web code. Nothing was run in the desktop app.

3a. Remote seat conversations (F1)

lib/taskConversation.ts read only a local child thread and assumed the task's environment, so a seat delegated to a linked machine opened nothing. It now resolves through subagentThreadTarget, which I moved from mobile into @t3tools/client-runtime/linked-thread so both clients use one function and one shape. A remote seat opens in its own environment when this client is connected there, and read-only through the task's environment otherwise, in the existing LinkedThread view. seatOfThread now matches the environment as well as the thread id. Tests cover a delegated remote child in all four connection cases.

3b. Unknown stage (F5, tail only)

workStageOf no longer makes up Build for a card neither its run nor its lane places. It returns unknown, and workSections puts such cards in a last section so none drops off the board. Rework still shows as Build, as documented.

3c. Close all (F8)

Closing every tab emptied the tab list, which the first-visit check read as a task never opened. That the task has had its panel is now kept per task in local storage, apart from the tabs. The existing browser test is extended and fails on the old code.

T3 pieces reused

  • Thread view mounting from feat(web): the task view as a conversation, engine facts in the right panel #182 (useQuietThreadProjection, ChatView by ref): unchanged, proven by the probe.
  • isListedThreadLineage and the engineIntake lineage: the marker itself.
  • NativeIntake's idempotent server-side creation: the deterministic command id.
  • Subagent lineage links and mobile's remoteChild resolution (subagentThreadTarget, resolveLinkedThreadOpen): now shared.
  • LinkedThread (the read-only view of a linked environment's thread) for a seat this client cannot reach directly.
  • The right panel from slices 170 to 173 and its useLocalStorage pattern.
  • Existing sidebar filtering (isShownUnderParent).
  • CollapsibleSectionHeader sections for the unknown stage: no new element.

Deferred, and why

  • Thread creation on task start, binding to the team lead, and replacing taskConversation()'s task.source stand-in. The engine's task-to-thread link does not exist yet and the creation contract is being settled. lib/taskConversation.ts stays the single reader. boardThreadMarker.ts is called only by tests until then.
  • How a board thread's id is chosen is left to that commit.

Owner questions

  1. Idle compaction. IdleCompaction skips unlisted threads, so board threads never idle-compact. Not changed here. Should they be exempt from the skip?
  2. Orphaned hidden threads. Deleting a task leaves its thread with nothing pointing at it. Removing a project deletes its board threads on the server, but the confirm count (projectRemoval.ts) leaves them out, so the person is not told. An archived board thread now shows in no archive list, so nothing in the UI can restore it. Board threads also auto-settle like any top-level thread.
  3. Approvals and unread. A hidden thread has no sidebar row, ThreadNotificationCoordinator skips it and the awareness relay sends nothing for it. An approval or question waiting in a board thread shows only inside the thread. Where should it surface: the card, the board's sidebar entry, a notification?
  4. Relationship rows (above): exclude, or show and open the task?

Not verified

  • No pass in a real client. I did not start a dev server. There are no before and after images for the two visible changes (the "Stage not known" section and a linked seat's conversation in the centre).
  • The linked seat view (LinkedSeat in TaskConversation.tsx) is covered only by the resolution unit tests. It was not rendered in a browser.
  • The probe runs against the fake server.
  • The new string "Stage not known" is translated in all ten web catalogs by me. No native speaker has read them. i18n:check passes.
  • Full suites were not run. I ran vp run check:changed and the test files around each change.
  • Two tests fail on this machine without this PR's changes: ProjectionStore.test.ts "reads a fixed SQL turn-item window for long histories and repeated clients" (fails alone on base), and ChatView.browser.test.tsx "a shortcut conditioned on rightPanelOpen sees the thread's open right panel" (fails in a full-file run on base, passes alone).

Claude Fable 5.2, Claude Code.

🤖 Generated with Claude Code


Independent QA (Claude Opus 5.5, Claude Code, 22 November 2026)

Tested origin/master at dbe1d21aaf in a separate worktree. No product code was changed and nothing was pushed or merged. The verdict is pass with findings, 0 blocking. Most of the real-client pass could not be finished: see "What I could not verify".

Setup

  • Scratch web client (vp run dev), with a scratch database built by migrate-dev-db from a read-only copy of the PM profile's statev2.sqlite.
  • Markers were set by a direct projection write, which is what the fixture guide allows for visual states. The thread.create dispatch was not used in the client. Fixture:
    • f9dab4c9 "QAMARK active board task": engineIntake = board-task:qa-board:task-1, active, linked to PR #1038 An empty first team read blocks later automatic settling when teams appear #3.
    • c53748be "QAMARK archived board task": marked and archived.
    • 789021a5 "QACTRL active ordinary": no marker, linked to the same PR #1038 An empty first team read blocks later automatic settling when teams appear #3.
    • 3a5f60ad "QACTRL archived ordinary": no marker, archived.

Verified in the real web client

Surface Marked thread Ordinary control
Sidebar, Settled group expanded and "Show 22 more" opened absent present
Sidebar search by title ("QA") absent present
Sidebar search by content ("Calmar", in the marked thread's first message and in PR #3's title) absent present
Command palette Recent Threads absent n/a
Command palette results for "QA" and "Calmar" absent present

Verified by focused tests (run once each, on master)

  • vp test run on taskConversation.test.ts, boardLaneCards.test.ts, archivedThreads.test.ts and ThreadLinkPicker.logic.test.ts: 4 files, 32 tests passed.
  • vp test run on ThreadLaunchService.test.ts, ThreadSearch.test.ts, pullRequest/linkedThreads.test.ts and issue/linkedThreads.test.ts: 4 files, 113 tests passed. These cover listProjectThreads with includeSubagents both ways, and the search and PR/issue link SQL exclusions.

Verified by reading the code

  • Unread state, the dock and favicon badge, and desktop notifications skip unlisted lineage: ThreadNotificationCoordinator.tsx:250 (isShownUnderParent). The background announcer skips it at BackgroundThreadAnnouncer.tsx:47.
  • The archived snapshot decodes the full payload_json, so the client-side archive filter sees the marker.
  • t3_thread_search takes no includeSubagents. All four of its queries exclude engineIntake (ThreadSearch.ts:237,428,460,484).
  • Attack item 7, engine intake. Intake reaches its thread by the fixed id engine:<admissionId> through getThreadRecords (NativeIntake.ts:141,229). Nothing on the server lists threads to find it. The Operation-PaperClip repo has no t3_thread_list caller. One behaviour change to know: MCP t3_thread_list defaults includeSubagents to true (OrchestratorMcpService.ts:3465), so agents that listed threads with the defaults used to see intake threads and now do not. That matches spec 4.3.
  • F8. openTaskPanel always adds both tabs, so the first-open flag is set on the next render. The right-panel store is persisted, so "Close all, then reload" stays closed.

Findings, ranked

1. Medium, not blocking. Active board-task threads are never trimmed from the shell, so the shell grows with every task.
isOlderSettledThreadShell (packages/contracts/src/orchestrationV2.ts:2474) only trims listed lineage. omitOlderSettledShellsWith (ShellStream.ts) therefore keeps every un-archived marked thread, settled or not, in every client's active shell snapshot. The client then hides it. Engine intake threads already behaved this way, but board tasks are the high-volume kind (spec 4.3: "a plan broken into twenty tasks"). Each task's shell row goes over the socket to every client for as long as the task is not archived. AGENTS.md treats websocket payload size as a performance regression.
Repro: give N settled, un-archived threads an engineIntake marker, then read the shell snapshot. All N are present, and the older-settled cut does not count them.
Suggested fix, for the creation slice: trim settled server-owned shells, or keep them out of the active shell altogether and rely on the open-by-id path. If you do the second, read finding 2 first.

2. Low. With a tag filter on, an off-shell marked thread does not open by id. This confirms the known corner, by code only.
ThreadRouteView.tsx sets offShellBlocked when any environment hides tags and the unlisted thread has no loaded, visible parent. A top-level board-task thread has parentThreadId: null, so unlistedParentKey is null and the route redirects to /.

  • Today this only hits archived marked threads. Active ones are always on the shell (finding 1), and they open unless their own tags are hidden.
  • If finding 1 is fixed by taking them off the shell, every board-task conversation would stop opening while a tag filter is on. The two need to be fixed together.
    Repro: turn on any tag filter, then open /<env>/<archived marked thread id>. You land on /.

3. Low. F1: the seat view can flip between "direct" and "linked" while the links query loads, by code only.
useTaskConversation enables useLinkedEnvironments only once a remote seat lacks its own connection. Until that query returns, isLinked is false, so resolveLinkedThreadOpen gives direct for a saved but offline environment. Once links arrive it gives linked. The centre view switches from ChatView to LinkedThread and remounts.
The same happens on a reconnect blip while a seat thread is open: phase !== "connected" moves it to read-only, then back. The view remounts twice, and composer focus and scroll position go with it.
Repro (needs two environments): open a seat delegated to a linked environment, then drop the client's own connection to that environment.

4. Owner question, not a defect. Board-task threads raise no notification or badge.
A board-task thread is unlisted, so an approval or question in it produces no unread mark, badge or desktop notification (isShownUnderParent). Spec 6 gives the card the unread count, but it does not say whether an approval the lead asks for in the conversation should reach the person outside the board. Worth deciding before the creation slice lands.

5. Nit. F8 edge cases.

  • One t3code:task-panel-first-open:<owner> key is kept per task, forever, the same as task-inspected-thread.
  • A task first seen at narrow width or in the sheet records nothing, so it auto-opens the first time it is seen wide. That matches the comment's intent.
  • A person who used Close all before this change gets one more auto-open after upgrading.

6. Translations. "Stage not known" is present exactly once in all ten catalogs and every entry reads plausibly. German "Phase nicht bekannt" is fine, though "Phase unbekannt" is the more usual short heading. None of this has been read by a native speaker.

What I could not verify

The machine ran out of memory during the run: swap was 27.6 of 28.7 GB used. The scratch server's event loop stalled for up to 45 s, and every full page load failed environment discovery. The host T3 also restarted once mid-run. I stopped my scratch server to protect the live T3. As a result, none of the following were exercised in a real client:

  • Opening a marked thread by id: deep link, reload, back and forward, tag filter off and on. The fake-socket browser test ThreadRouteView.browser.test.tsx covers the deep link and reload, but I did not run it.
  • The archived list, the thread link picker, and the PR/issue linked-thread rows, in the UI. They are covered by the unit tests above.
  • Unread, dock badge and announcer behaviour, live. This was checked by code only.
  • Mobile was not run. Desktop was not run.
  • F1 rendered with two environments, in any of its five cases. Only one environment was available.
  • F5 and F8 rendered in the task centre. There was no board fixture in the scratch server.
  • The MCP tools t3_thread_list and t3_thread_search called live against a marked thread. The server tests above cover the service methods behind them.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Tevin2119 and others added 5 commits November 21, 2026 22:15
@Tevin2119 @claude
test(web): a thread no list shows opens by id, from a link and after …
9d0d275
…a reload

Routing probe for board-owned threads. A thread whose lineage keeps it out of
every list opens through /$environmentId/$threadId by navigation, by a pasted
link and on a fresh router, both when the shell carries its row and when the
shell leaves it out. No routing change was needed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@Tevin2119 @claude
feat(server): a board task's thread carries the engine marker and sta…
be6d1df
…ys out of every list

A board task's conversation reuses lineage.engineIntake with a namespaced
value (board-task:<board>:<task>), stamped only by the server. Reusing the
field inherits isListedThreadLineage, every SQL exclusion and the index.

The audit of listing surfaces found four places a marked thread still showed:
- t3_thread_list: the active list read never selected the marker, and the
  includeSubagents branch only left out side chats.
- The archived threads list on web and mobile.
- The threads linked to a pull request or an issue.
- The thread picker that links a pull request or an issue.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@Tevin2119 @claude
fix(web): a seat that runs in a linked environment opens its conversa…
8449257
…tion

seatConversation read only a local child thread and assumed the task's
environment, so a seat the lead delegated to a linked machine opened nothing.
It now resolves through subagentThreadTarget, the resolution mobile's agent
rows use, moved into client-runtime so both clients share one shape: the
thread opens in its own environment when this client is connected there, and
read-only through the task's environment otherwise.

seatOfThread matched a thread id alone, so the same id in two environments
named the wrong seat. It now matches the environment too.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@Tevin2119 @claude
fix(web): a card in work with no stage the client knows shows as stag…
2c234c1
…e not known

workStageOf fell back to Build when neither the run's stage nor the lane
placed a card, which made up a fact the engine never sent. Such a card now
has an unknown stage and stands in a last section of its own, so it stays on
the board. A card in rework still shows as Build whatever its last run was.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@Tevin2119 @claude
fix(web): closing every tab of a task's panel no longer reopens it
d9999ef
The first-visit open read an empty tab list as a task never opened, and
Close all empties the tabs, so the panel came back on the next visit. That
the task has had its panel is now kept on its own, per task, apart from the
tabs. A first visit still opens it when the width holds all three panes.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@polymaniadeveloper-hub
polymaniadeveloper-hub merged commit dbe1d21 into master Nov 22, 2026
22 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@polymaniadeveloper-hub

polymaniadeveloper-hub commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Note

🤖 GLM-5.3 responding on behalf of Tevin2119

Lead review record, posted after the merge, which the owner ratified in the working thread. Full diff read (9db6a1bf84..d9999ef00c, 41 files). Verdict: no blocking defect found. Model record: built on Claude Fable 5.2, lead review on GLM-5.3, QA in progress on Claude Opus 5.5 against master dbe1d21aaf; QA findings will be appended to this PR's description.

Findings carried into the follow-up slice, none blocking:

  • A hidden board thread's approvals and unread counts surface nowhere today: BackgroundThreadAnnouncer and AgentAwarenessRelay skip unlisted threads, and a board thread has no parent to roll up to. Spec sections 5 and 6 place these on the task card counts and the "Waiting on you" lane; the wiring lands with the creation commit.
  • Archived board threads are filtered out of archive lists, so the owner's archive-on-task-end ruling needs a reachable door (a board-level archive view or equivalent) before creation lands, or "archive" is deletion by another name.
  • The marker reuse (lineage.engineIntake = board-task:<board>:<task>) is accepted with guards: stamped server-side only (withCreationProvenance strips client attempts), one-way, never parsed, never used to resolve a task to its thread. A contract test must pin NativeIntake as the only reader of the value.
  • The deterministic create command id joins board and task ids with :; the creation slice must pin or escape ids and test restart-after-archive, so an archived thread is never silently reused for a restarted task.
  • Still unexercised anywhere: mobile open-by-id, the linked-seat view in a real browser, desktop, and the reverse states. That is the QA pass now running.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 22, 2026
fix: harden board-owned threads after QA (shell trim, routing, seat view, project removal) #187
Merged
feat(delivery): a board task opens as its native thread #191
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@polymaniadeveloper-hub @Tevin2119
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.