Skip to content

#451 step 5: Roadmap and side panel read issues from upstream #456

Closed

Description

@tannerpolley

Part of #451. Step 5 of 7, after step 4. Plan: #451 (comment) ("Order", item 5, and "Target shape").

The per-repository side panel, the thread-details section and /roadmap take rows from upstream IssueService.list plus the fork overlay (relationships, milestone, live work, queue, work state). Delete the fork's list, detail and comment reads and the fork ref types. The Ready / Paused / Queued / In progress / Done states keep working.

Done: includes a rate-limit check (the fork used conditional requests that cost nothing when unchanged). Refresh when the inbox activity feed reports a change, not on a timer.

Activity

  1. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    Carried over from step 4 (#455, PR #474): issues.subscribeLinkRefreshes still exists. Step 4 removed only its table-refresh source. The stream still drives the roadmap's live-work refresh (runs, requests, background tasks) while the roadmap reads through fork code. Retire it in this step, once the roadmap reads upstream rows plus the overlay, replacing it with an event-driven refresh (the inbox activity feed and orchestration events), not the 5-minute poll.

  2. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code status: Done

    Issue: #456 #451 step 5: Roadmap and side panel read issues from upstream

    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-456-451-step5-2026-11-18

    Model: claude-opus-5-5

    Branch: issue-456-451-step-5-roadmap-and-side-panel-read

    Updated: 2026-11-18T03:53:26.610Z

  3. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #456 #451 step 5: Roadmap and side panel read issues from upstream
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-456-451-step5-2026-11-18
    Model: claude-opus-5-5
    Branch: issue-456-451-step-5-roadmap-and-side-panel-read
    Completed: 2026-11-18T02:57:28.867Z

    I've opened draft PR #476, which closes #456 and references #451. The roadmap, the side panel and the thread-details section now read issue rows from upstream's IssueService.list plus the fork's overlay. Before/after captures show the same issue states and row text, and the new path costs fewer GitHub requests. I haven't merged it.

    What changed

    • Rows and detail come from upstream. The fork's overlay adds relationships, milestone, sub-issue counts and Projects; live work, queue position, suspension and work state still come from IssueLinks.enrich. The fork's list, detail and comment reads are deleted, along with the types only they used (RepositoryIssueComment, the detail's body and comments, the roadmap list flag, expectedAccountId).
    • Refresh follows events, not a timer. issues.subscribeLinkRefreshes, the 60-second client poll and the 5-minute detail poll are gone. Lists and detail re-read when a thread's status, run, pending request, background tasks, linked issues, pull requests, branch or worktree change. They also re-read on new inbox activity, after a local write, and on an explicit Refresh.
    • The server caches rows and detail. It reuses them until a fork write or new inbox activity changes the repository, for at most 5 minutes, so frequent refresh signals don't hit GitHub. Refresh always reads GitHub.

    Rate limit (idle roadmap, 10 minutes, mocked GitHub)

    Requests Paid GraphQL REST
    Before (60-second poll) 33 11 22 (20 were "not modified")
    After, nothing changes none after the first load 0 0
    After, a signal every minute (worst case) 12 9 3 conditional

    Since the new path costs no more, I didn't need to ask you about it.

    Captures: I captured /roadmap, the side panel and the thread view before and after, on the same synthetic repository with seeding off. The issue states and row text match exactly; only the "Updated" time differs. The first "after" capture showed an empty "0/0" sub-issue count on issues without sub-issues. I fixed that to match main and took the captures again. The in-app Browser panel produced no frames because its window was hidden, so these are headless Chromium captures of the worktree's dev server. I stopped the server, and ports 8123 and 16163 are free.

    Tests: I extended the roadmap and work-state tests. The focused server, client-runtime, contracts and web tests all pass. One cleanup test fails only under the global git config and passes with GIT_CONFIG_GLOBAL=/dev/null, as noted in memory. vp run check:changed passes format, knip, the 14 test files and the React compiler check. Its type check fails only on the 3 known mobile errors. Its lint failed only on 7 errors that already exist on main, in two web files I touched. The commit hook blocked on them, so I fixed them instead of bypassing it:

    • dropped useMemo/useCallback in apps/web/src/state/repositoryIssues.ts;
    • added a reasoned disable on two lines of ThreadLinkedIssueRow.test.tsx, which uses react-test-renderer rather than the browser render helper.

    Decisions made while you were away

    • /roadmap lists only repositories that have a T3 project (your answer). For any other repository it asks you to add it as a project.
    • Starting or queueing an issue now checks that it's open with the existing workRead. One queue race test had to skip each issue's first read, because that read is now the open-state check.
    • The inbox's first value doesn't count as activity, so mounting the roadmap doesn't cause an extra read.

    Known limits

    • Changes made through upstream's write path (the panel's state change, agent tools) appear only after the next inbox activity, the 5-minute limit, or a Refresh.
    • viewer is null in roadmap results.
    • Marked-comment reads and milestoneIssues stay in place for step 6 (#451 step 6: Issue writes run on upstream IssueService #457), along with the writes.

    I didn't touch RepositoryOrchestrationMcp or the provider adapters.

    PR #476, head 97023ea, checks and reviews: none reported yet (draft).

  4. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #456 #451 step 5: Roadmap and side panel read issues from upstream
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-456-451-step5-2026-11-18
    Model: claude-opus-5-5
    Branch: issue-456-451-step-5-roadmap-and-side-panel-read
    Completed: 2026-11-18T03:36:01.142Z

    I fixed all five checker items on the same branch and pushed. While doing so I found a worse problem: the head you reviewed (97023ea) didn't type-check on the server. Managed issue delegation and four test mocks still used the fork detail read I removed. I misread the failing type-check package as the known mobile one; the new commit fixes it, and the PR body now says so.

    The five checker items

    1. Upstream writes now refresh. A wrapper around upstream's issue service advances the fork revision after create, comment, update and setState. It's added where that service is built in server.ts, so panel actions and agent tools both go through it.
    2. Every revision change now reaches clients. Each time the fork revision advances (a fork write, an upstream write or new GitHub activity), the server pushes it into the inbox's unread stream, which clients already re-read on. The poll's own before/after revision comparison is gone, so this is the only path.
    3. Queue and ownership events reach clients again. The same stream now also carries issue.queue.updated, issue.work.requested, issue.work.cancelled, repository.work.restored and thread.metadata-updated, grouped within 250 ms. They come from the event sink, the way the work service already reads events.
    4. Fallback rows aren't cached. The overlay read now returns "none" when GitHub fails. The roadmap shows relationships as unknown for that read and doesn't keep the rows.
    5. Tests and wording:
      • The existing overlay test now covers sub-issue counts, including that a zero count is left out.
      • The roadmap test shows rows built from a failed overlay aren't kept.
      • One new inbox test shows a revision change reaches the unread stream.
      • I removed the issueWorkSignal test that only mirrored its field list; the refresh test still covers that progress doesn't trigger a re-read and a status change does.
      • The PR body is corrected:
        • 5 minutes is only the server's cache age.
        • Changes made on GitHub show at the next inbox poll: 5 minutes with an orchestrator, 15 without.
        • The table counts requests against a mocked client.
        • A Refresh costs 3 GraphQL plus 1 conditional REST (main: 1 GraphQL plus 2 REST).
        • Busy days weren't measured.

    One behavior change: resuming a suspended issue that is still closed is now refused with "Only open issues can be queued." A live read would always have done this; the test passed on main only because its two mocks disagreed about the issue's state. That test now runs the reconcile itself and still ends with both issues suspended.

    Checks:

    • Tests: all 26 server test files that use the fork issue service pass, except the two runtimeLayer tests (an html_render timeout and a wake-order assertion). 16 tests already fail on main in files check:changed rarely selects #470 lists two runtimeLayer failures on main but doesn't name them, so I'm assuming these are those two and didn't re-run them on main.
    • vp run check:changed: format, lint, knip, graphql and the React compiler check pass. The type check fails only on the 3 known mobile errors; the test step fails only on those two runtimeLayer tests.

    PR #476, head be64af6, checks and reviews: none reported yet (draft, no CI runs or reviews listed).

  5. tannerpolley commented on Nov 18, 2026

    @tannerpolley
    OwnerAuthor

    T3 Code closeout: done

    Issue: #456 #451 step 5: Roadmap and side panel read issues from upstream
    Thread: thread:delegated-task:command%3Amcp%3A53eed4d4-49de-4205-ba6f-a35a0b15b7c9%3Adelegate-task%3Aissue-456-451-step5-2026-11-18
    Model: claude-opus-5-5
    Branch: issue-456-451-step-5-roadmap-and-side-panel-read
    Completed: 2026-11-18T03:53:27.035Z

    I fixed the remaining defect and both related changes, pushed them to the same branch, and updated the PR body to match.

    1. Per-client queues are gone. The inbox now subscribes once to the event sink and once to revision changes, when it is created. It keeps only the issue-work event types, batches them within 250 ms and publishes into the existing size-1 change queue. Each client's unread stream is back to exactly what main has: one subscription to that queue. If the internal feed fails, the server logs "Issue changes stopped reaching clients" instead of dropping it silently.
    2. Metadata events are narrowed. thread.metadata-updated triggers a refresh only when payload.repositoryOrchestration !== undefined, the same test IssueWorkService uses. Renames and branch syncs no longer re-read anything.
    3. One GitHub poll now means one re-read round. I couldn't rely on the 250 ms batch alone, because a poll advances the revision before it commits its new inbox events. Clients would have re-read unread counts before the new events existed. So the activity read now advances the revision without publishing. The poll then pushes once, after its events commit, when it inserted events or the revision moved. Writes still publish their own advance.

    The existing inbox test (a revision advance reaches the unread stream) still covers the single-subscription path, so I added no new case.

    Checks:

    • Server type check: clean.
    • Focused tests: the inbox, fork service, roadmap and queue tests pass (99), as do the owner-decisions tests (24). Owner decisions also builds the inbox.
    • vp run check:changed: format, lint, knip, graphql and the React compiler check pass. The type check fails only on the 3 known mobile errors. The test step fails only on the same two runtimeLayer tests you confirmed fail on main.

    PR #476, head d28c72d, checks and reviews: none reported (draft, no CI runs or reviews listed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions