GeezerVison is showing github.com — Adopt upstream Issues as the base and rebuild fork issue orchestration on it · Issue #451 · tannerpolley/t3code
Adopt upstream Issues as the base and rebuild fork issue orchestration on it #451DescriptionOwner decision, 2026-11-17: plan first, then sync to the newest upstream nightly following the plan.
Background
Upstream added an Issues feature in nightly v0.1.11-nightly.20261117.4825 (first commit 20501a0221, then about 20 follow-up fixes):
- an Issues page across projects, with search, sort, label and assignee filters, saved views, and grouping by tracker;
- an issue detail panel with comments, reactions, templates, create, and moving between tracker states;
- trackers: GitHub, GitLab, Azure DevOps, Forgejo/Gitea, Bitbucket, and Linear;
- several issues linked per thread (
thread.issues);
- agent tools:
list_issues, read_issue, create_issue, comment_on_issue, set_issue_state, link_issue, unlink_issue, list_thread_issues;
- a mobile Issues tab.
Our last sync (#428) was to 7d32075e37, before any of this.
The fork has its own Issues page (apps/web/src/components/issues/, apps/server/src/issues/):
- a roadmap of In progress / Paused / Done, with a sub-issue tree and milestones;
- managed work: start or queue an issue, worker claims and worktrees, worker and read-only limits, pause,
work_through_milestone;
propose_issue_change with approval, the issue inbox and owner decision cards;
- live work and PRs per issue, plus composer issue chips;
- GitHub only since GitHub-only issue host: remove Forgejo, GitLab and git-bug write support #422, with one
linkedIssue per thread.
Collisions at the next sync
- The fork and upstream both define the
link_issue and unlink_issue MCP tools, with different behavior.
- Thread links: the fork's single
linkedIssue versus upstream's issues[]. Persisted fork links need a migration path.
- Two Issues pages and two sets of
IssueRow and IssueDetailPanel (components/issue/ and components/issues/).
- Settings: upstream's "Source control & issues" section versus the fork's issue settings.
Ask (Designer)
Write the plan as a comment here, the same way as #418 and #419.
- Direction: upstream wins for browsing, reading, commenting, creating, changing state, trackers, thread links and agent tools. The fork keeps the roadmap and tree, managed work, the queue, approvals and milestones, as additions to upstream's page, panel and service rather than a second page.
- Mapping: map each fork issue behavior to the upstream owner it should use, or mark it as retained fork code with a reason.
- Data: decide the thread-link data move and the tool-name resolution.
- Order: list small steps that can each merge separately. Say whether the sync goes first, keeping both pages for one step, or whether some prep lands first.
- Other work: say how this interacts with the in-flight Run managed issue work through upstream delegation primitives #418 steps (#418 step 2: Move issue effects and reads out of shared execution files #434 to #418 step 4: Isolate provider and MCP managed policy and verify delegation integration #436) and Orchestrator status read and status posts #440 to Needs you and Ready for review groups in Activity #442.
- Owner questions: list any decisions for the owner, each with a recommendation.
Constraints: Codex and Claude only; mobile is out of scope for the fork's additions; GitHub is the fork's only write host, but upstream's other trackers come along unchanged. Follow docs/operations/fork.md and the #416 decisions.
Activitytannerpolley commented on Nov 17, 2026 Owner requirements, 2026-11-17. These are fixed, and the plan decides only how to meet them:
- Side panel per repository: keep the issues side panel for each repository. Upstream's cross-project Issues page can exist alongside it, but it doesn't replace the panel.
- Work states: keep the Ready / Paused / Queued / In progress / Done states and the roadmap grouping.
- Orchestration: keep all of it: managed workers, the queue, limits, milestones, approvals, the inbox and owner decisions.
- One data path: all of this runs on upstream's Issues service, contracts, thread links and agent tools. There should be one issue data path, not two parallel systems.
tannerpolley commented on Nov 17, 2026 Design: fork issue work on upstream's Issues, one data path
Pinned inspection: fork main 2178125d7c (clean); upstream pingdotgg/main e9dc20d063; newest nightly tag v0.1.11-nightly.20261117.4838 (ea6d3fc30f), 168 commits past the last sync (7d32075e37), 214 to pingdotgg/main. Read-only: source, history and issues. No merge, tests or builds were run, and the live database was not read.
Authority: this issue's brief, the #416 decisions, the #418 plan and its decisions, docs/operations/fork.md, and the owner requirements of 2026-11-17 below.
Fixed by the owner (2026-11-17), not open
- The per-repository issues side panel stays. Upstream's cross-project Issues page exists beside it; it does not replace it. The panel shows upstream issue data.
- The Ready / Paused / Queued / In progress / Done states and the roadmap grouping stay.
- All orchestration stays: managed workers, the queue, limits, milestones, approvals, the inbox, owner decisions.
- All of it runs on upstream's Issues service, contracts, thread links and agent tools. One issue data path, not two.
Also fixed: Codex and Claude only; mobile out of scope for fork additions; fork additions write only to GitHub; upstream's other trackers come along unchanged.
Target shape
| Layer |
Owner after this plan |
| Issue content: list, detail, comments, create, comment, edit, state change, templates, label and assignee pickers |
Upstream IssueService (apps/server/src/issue/, 1,013 lines) and its tracker drivers. The fork has no second reader or writer of these. |
| Issue identity on the wire |
Upstream IssueRef / ThreadIssueKey (tracker, host, scope, key). The fork's {host, repository, number} refs go away. |
| Thread ↔ issue links |
Upstream thread.issues[], written by thread.issue.link / thread.issue.unlink through ThreadIssueService (109 lines). |
| Agent tools for read, list, comment, link |
Upstream IssuesToolkit (689 lines). |
| What upstream has no field for: parent and sub-issues, blocked-by, milestones, GitHub Project fields, node ids, closing pull request refs, updating a marked comment, the activity feed the inbox polls |
One small fork-owned GitHub extension, addressed by upstream's issue key and running on upstream's GitHub client, request policy and rate limiter (the fork's IssueGitHubApi already uses GitHubRest, GitHubRequestPolicy and SourceControlRateLimit). It adds facts to upstream rows; it never lists or reads issue content itself. |
| Work policy: admission, attempts, queue, limits, pause, work states, roadmap grouping, approvals, inbox rules, owner decisions |
Fork, unchanged in behavior, in apps/server/src/issues/ and the #418 command modules. |
| Screens |
Upstream's page, detail panel and linked-issue rows, plus fork-owned additions joined by small hooks: the per-repository roadmap panel, a work section inside upstream's detail panel, composer issue chips, the hover card. |
A roadmap row is an upstream IssueListEntry plus a fork overlay keyed by the same issue key: relationships, milestone, live work, queue position, suspension, and the derived work state. This is the join IssueLinks.enrich already does today for live work, widened.
Sizes that matter
| Measure |
Value |
Upstream since last sync (to pingdotgg/main) |
853 files, +108,765 / −8,304 (59,113 of the added lines are Linear's GraphQL schema) |
Trial merge, git merge-tree main pingdotgg/main |
39 conflicted files, 58 blocks (36 files against the nightly tag) |
| Of those, whole-file issue collisions (both sides added the same path) |
7 |
Fork server apps/server/src/issues/ |
38 files, 11,800 lines (+10,371 test lines in 16 files) |
Fork web components/issues/ |
41 files, 7,217 lines (+2,423 test lines in 18 files) |
| Fork issue contracts |
12 files, 1,665 lines |
Upstream web components/issue/ |
10 files, 2,514 lines |
Upstream contracts/src/issue.ts |
624 lines (fork's file at the same path: 345) |
Files using a fork type whose name upstream also exports (IssueRef, IssueSummary, IssueListInput, IssueListResult, IssueListState, IssueComment, IssueLinkedPullRequest, IssueActor, IssueLabel) |
47 non-test |
Files reading linkedIssue |
44 non-test, 26 test |
The 7 colliding paths: packages/contracts/src/issue.ts, packages/client-runtime/src/state/issues.ts and its test, apps/web/src/state/issues.ts, apps/web/src/routes/_chat.issues.tsx (fork 458 lines, upstream 9), apps/web/src/lib/openIssueLink.ts, apps/web/src/components/chat/ThreadDetailsIssueRows.tsx.
Name collisions with no shared path: MCP tools link_issue and unlink_issue; RPC methods issues.list, issues.detail, issues.setState; the right-panel surface kind issue (rightPanelStore.ts has 9 of the 58 blocks); the exports createIssueEnvironmentAtoms, issueEnvironment, IssueListTarget; and component names IssueRow, IssueDetailPanel, IssueService in sibling folders (issue/ and issues/).
Behavior mapping
| Fork behavior today |
Runs on (upstream owner) |
Fork code that remains, and why |
Listing a repository's issues (IssueService.list, IssueGitHubHost.listIssuePage) |
IssueService.list narrowed by projectId, paged by its cursors |
The overlay only. Upstream rows have no parent, sub-issue tally, blocked-by, milestone or node id. |
Issue body, comments, linked pull requests in the detail panel (fork IssueDetailPanel.tsx, 856 lines) |
Upstream IssueDetailPanel (918 lines), issues.detail, issues.comments |
A work section inside upstream's panel through one hook line: start and queue actions, live work, parent and sub-issue tree, blocked-by, change cards, done details, start in a worktree. Upstream has none of these. |
| Close and reopen, comment, edit from the screen |
Upstream panel and issues.setState, issues.comment, issues.update |
None. |
Managed writes: create, split, body edit, close/reopen (IssueChangeService, 651 lines) |
IssueService.create, update, setState |
The approval gate, previews and conflict checks. Retry safety stays fork policy around the call: the outbox may run a create twice, so the write-key check before a repeat create stays. |
| Milestone moves, sub-issue and blocked-by changes |
No upstream operation |
The GitHub extension. |
Status and closeout comments with markers (IssueCommentEffects) |
IssueService.comment for a new comment |
Markers, per-issue write serialization, and updating an existing comment (upstream cannot edit a comment). |
Ordinary thread links (issue_thread_links table, IssueLinks.link) |
thread.issues[] |
None; see the data move. |
Managed claim (thread.linkedIssue) |
Not a link; upstream has no claim |
Kept as the claim record. Each claim also writes its thread.issues[] entry. |
Live work per issue (IssueLinks.enrich) |
Reads thread.issues[] from thread shells |
Lineage inheritance, owned pull request refs, worktree check, suspension reasons. |
Ready / Paused / Queued / In progress / Done and roadmap grouping (IssueRoadmap.ts, issueRoadmap.logic.ts) |
Computed over upstream rows plus overlay |
All of it; fixed requirement 2. |
Per-repository issues panel beside a thread (right-panel kind issues) and the Issues section in thread details |
Rows from upstream's list for that project |
The panel and section, as mounts of one roadmap component; fixed requirement 1. Selecting a row opens upstream's issue surface. |
Full-page roadmap with inbox, owner decision cards and change approvals (today /issues) |
Upstream's page takes /issues |
The same roadmap component at a fork-owned route, /roadmap. A new route file never conflicts; a view switch inside upstream's IssuesPage.tsx (810 lines, about 20 follow-up fixes in its first days) would. Say so if you want the switch instead. |
Opening issue links from chat (openIssueLink.ts, rightPanelIssueSurfaces.ts) |
Upstream useOpenIssueLink and its issue surface |
The hover card. |
Linked-issue rows in thread details (fork ThreadLinkedIssueRow.tsx, 100 lines) |
Upstream ThreadDetailsIssueRows |
None once claims write links. |
Queue, limits, pause, work_through_milestone, handoffs, inbox, owner decisions |
No upstream equivalent |
All retained. The inbox's activity polling moves into the GitHub extension. |
Repository list for the panel (IssueProjects.ts, 361 lines) |
IssueListResult.trackers and scopes, projectScope |
Whatever orchestration status the picker shows. |
| Settings |
Upstream "Source control & issues" owns trackers and connections |
Fork toggles stay under Customizations. Rename the fork group "Version control & issues" so the two don't read as one. |
Fork files that end up replaced, by current size: the route body (458), IssueBrowser.tsx shell (897), IssueDetailPanel.tsx (856), ThreadDetailsIssueRows.tsx (242), ThreadLinkedIssueRow.tsx (100), openIssueLink.ts (98), rightPanelIssueSurfaces.ts (68), IssueStateIcon.tsx (150), IssueMcpTools.ts (68), contracts/issueLinks.ts (33), and the list, detail, comment, plain-write and identity parts of IssueGitHubHost.ts (2,011) and IssueHost.ts (273). These are candidates, not promised deletions: the roadmap body, the work section and the extension keep part of each.
Thread links: the data move
Three facts exist today:
thread.linkedIssue: one per thread, the managed claim, with GitHub's repository id and node id. Event-sourced.
issue_thread_links: ordinary links from the fork's link_issue (host, repository, number, thread). Outside the event history, with no title or URL.
- Upstream's
thread.issues[]: tracker, host, scope, key, project, URL, source, display key, title, link time.
Decisions:
thread.issues[] is the only store of "this issue is shown beside this thread". The table is retired.
linkedIssue stays as the claim record with its persisted shape, in line with the Run managed issue work through upstream delegation primitives #418 decision to keep persisted identities. Policy reads it (attempts, suspension, closeout, thread title). Screens and tools read thread.issues[].
- A managed start writes the
thread.issues[] entry in the same commit as the claim, from the issue-owned planner (IssueWorkCommands.ts). Workers need not call link_issue.
- Live work is derived from
thread.issues[]. A claim still counts if its link was removed, so unlinking cannot hide a running worker.
- Backfill, once, at server start, fork-owned: for each table row, and each thread whose
linkedIssue has no matching entry, dispatch thread.issue.link with a command id derived from the thread and issue, so a repeat is a no-op. Fields: tracker github, scope = repository, key = the number, project = the thread's project, URL built from host, repository and number, source agent. Title comes from the thread's linkedIssue when it is the same issue; otherwise one IssueService.detail read per distinct issue, four at a time. A failed read leaves the row for the next start. A row for a deleted thread is dropped. Each row is deleted after its command commits; a later fork migration drops the empty table.
- It is a command backfill, not a SQL migration, because links must be events to survive a projection rebuild.
Loss: the original link time is not stored, so backfilled links carry the backfill time. Also update the purge list in ForkHistoryMaintenance.ts and scripts/fork-dev/seed.py. Then issues.unlink and issues.subscribeLinkRefreshes go: the client reads links from thread shells and unlinks through upstream's command.
Open right-panel issue tabs saved in the browser use the fork's shape and have no project id; they close once at the store version bump.
Tool and RPC names
link_issue, unlink_issue: upstream's definitions and handlers. The fork's are deleted. Inputs change from repository + number to url, or key with an optional projectId. Upstream's link_issue reads the issue first, so a link to a missing issue now fails.
- New from upstream, no collision:
list_issues, read_issue, create_issue, comment_on_issue, set_issue_state, list_thread_issues.
- Fork tools keep their names and execute through upstream's service:
propose_issue_change, t3_issue_post, t3_issue_inbox, queue_issue, unqueue_issue, cancel_issue_request, close_out_issue_attempt, work_through_milestone, the three owner-decision tools and the repository tools.
- RPC:
issues.list, issues.detail, issues.setState become upstream's. The fork's list and detail are renamed (issueWork.roadmap, issueWork.detail) and later shrink to the overlay; the fork's issues.setState is deleted. Upstream's mobile Issues tab then works against the fork server unchanged. Other fork issues.* methods don't collide and keep their names.
- Capabilities: keep upstream's
issues flag and the fork's fields in environment.ts; drop the fork's githubIssues once nothing reads it.
- Model-facing text changes (tool list,
docs/operations/fork.md, the t3-code:issues skill): follow evals/README.md with the free checks only, and remeasure agentContextBudget.json (already a conflict; the tool list was 79,439 bytes at the last sync).
Order: two prep steps, then the sync, then the convergence
Prep goes first. Otherwise the 7 whole-file collisions, about 10 type names and 3 RPC names are resolved inside an 853-file merge, where the lost-code audit cannot tell a rename from a loss.
- Prep A: move fork issue names out of upstream's way. Codemod only, no behavior change. Move the fork's
contracts/src/issue.ts, both state/issues.ts files and the route body to fork-named files; rename the colliding types and the 3 RPC methods. Keep names plain: step 5 deletes most of them. Done: contracts, client-runtime, server and web type checks and the existing issue tests pass; the trial merge shows the issue path collisions reduced to the thin route file.
- Prep B: split the fork detail panel. Extract the work section (actions, live work, tree, change cards, done details, start in a worktree) from
IssueDetailPanel.tsx into one component with the smallest props. The fork panel renders body and comments plus that section. No visible change; before and after captures.
- The sync, in its own issue per the fork guide. Real merge of the newest nightly, lost-code audit, disposable-database check of upstream migration 97 beside the fork ledger. Issue resolutions: upstream's files at the 7 paths; upstream's
issue surface, link opening and thread-details rows; linkedIssue kept beside issues in orchestrationV2.ts; upstream's toolkit registered and the fork's two link tools deleted; one hook line puts the work section in upstream's panel, and the fork panel shell is deleted; the fork page moves to /roadmap; IssueLinks.enrich reads thread.issues[] as well as old table rows; upstream's ForgejoCli.ts; the "Issue host" section of fork.md rewritten; new workflows disabled. The roadmap still reads through the fork's GitHub code for this one step: the only step with two readers.
- Thread links. Claims write links; the backfill; delete the table reads,
issues.unlink and the refresh stream. Server tests: backfill repeat, deleted thread, failed title read, claim and link in one commit.
- Roadmap reads on upstream. The panel, the thread-details section and
/roadmap take rows from IssueService.list plus the overlay. Delete the fork's list, detail and comment reads and the fork ref types. Acceptance includes a rate-limit check: the fork lists with conditional requests that cost nothing when unchanged, and upstream's list is a paid query. Refresh the list when the inbox's activity feed reports a change, not on a timer.
- Writes on upstream.
IssueChangeService and IssueCommentEffects call IssueService; milestone, relationship, marked-comment and activity code becomes the GitHub extension; delete IssueHost.ts and the rest of IssueGitHubHost.ts. Tests: a repeated create, an approval conflict, a stale attempt, a retry after a remote write.
- Closeout. Residual-hunk ledger for the hooks in upstream files, before and after line counts, settings group rename, user docs for the two screens.
Each step is one issue, blocked by the one before. Steps 5 and 6 can swap. Web steps get one integrated pass by the primary agent with the Replay provider.
Other work in flight
- #418 step 2: Move issue effects and reads out of shared execution files #434 (Run managed issue work through upstream delegation primitives #418 step 2, in a worktree now): lands before Prep A. It removes fork hunks from
ProjectionStore.ts, which upstream changed by +183 / −69 for thread.issues; EffectWorker.ts is untouched upstream. Prep A renames imports in the files #418 step 2: Move issue effects and reads out of shared execution files #434 edits, so run the codemod after it merges.
- #418 step 3: Unify managed completion and restart recovery with upstream delegation #435 (completion and recovery): after the sync. Upstream changed the code it consolidates onto in three commits (fix(server): a thread_send follow-up waits only on background work its own runs started pingdotgg/t3code#37793, fix(server): a delegated task reports the answer its child gives after an awaited Monitor ends pingdotgg/t3code#37901, fix(server): a delegated task keeps its report when a later run ends without text pingdotgg/t3code#37942);
Orchestrator.ts is +193 / −88.
- #418 step 4: Isolate provider and MCP managed policy and verify delegation integration #436 (provider and MCP policy): after the sync.
ClaudeAdapterV2.ts is +596 / −517 upstream. It also owns the managed tool policy that question 3 touches, and the "wait for approval on the Issues page" wording in tool text, which becomes the roadmap.
- Orchestrator status read and status posts #440 (status read): stays blocked by Run managed issue work through upstream delegation primitives #418. Name each child's issue from
thread.issues[], so it needs step 4.
- Managed issue workers watch their PR by default #441 (workers watch their pull request): no dependency on this plan; after #418 step 4: Isolate provider and MCP managed policy and verify delegation integration #436 as already set.
- Needs you and Ready for review groups in Activity #442 (Activity groups) and #419 step 3: Common thread row and one subscription path in Projects #446 / #419 step 4: Finish the sidebar shell boundary and remove obsolete composition code #447: sidebar only. Upstream's delta there is small (
SidebarThreadRow.tsx +42 / −27). Land #419 step 3: Common thread row and one subscription path in Projects #446, in flight, before the sync; Prep A changes one import path in sidebar files.
- Make child and worker state visible and completion wakes reliable #429: its "In progress from real worker activity" reads the same live work, so after step 4.
Owner questions, all about how
- The claim record (data move). Keep
linkedIssue as it is and have each claim also write a link (recommended: no change to stored events, in line with Run managed issue work through upstream delegation primitives #418) / replace it with a reference to the link plus the GitHub ids, through a fork migration and an old-event reader. The second is cleaner on paper and puts every managed thread's history at risk for no visible gain.
- Facts upstream lacks (data move). A fork-owned GitHub extension that adds them to upstream's rows (recommended) / add relationship and milestone fields to upstream's tracker contract and GitHub driver, and offer that upstream. The second means fork edits in upstream's driver files at every sync until upstream accepts it. It can be offered later as a small contribution without blocking this plan.
- Approvals and upstream's write tools (tool names). Upstream's
create_issue and set_issue_state have no approval step. Hide those two from repository-managed threads, so propose_issue_change remains their gated path and runs on upstream's service; other threads get all eight tools (recommended) / put the approval gate inside upstream's two handlers and retire the create and state operations of propose_issue_change. The second edits upstream's handlers and changes tool text the orchestrator instructions depend on.
- Order against Run managed issue work through upstream delegation primitives #418. Sequence #418 step 2: Move issue effects and reads out of shared execution files #434 → Prep A → Prep B → sync → #418 step 3: Unify managed completion and restart recovery with upstream delegation #435 and #418 step 4: Isolate provider and MCP managed policy and verify delegation integration #436 beside steps 4 to 7 (recommended) / finish #418 step 3: Unify managed completion and restart recovery with upstream delegation #435 and #418 step 4: Isolate provider and MCP managed policy and verify delegation integration #436 first, then prep and sync. Waiting grows the sync (46 more commits landed since the nightly tag alone) and builds #418 step 3: Unify managed completion and restart recovery with upstream delegation #435 on code upstream has already changed.
Not verified
- No merge was performed; conflict counts are from
git merge-tree against pingdotgg/main.
- The number of rows in
issue_thread_links is unknown; it sets how many title reads the backfill makes.
- The rate-limit cost of upstream's list for a roadmap refresh is not measured.
- How much of
IssueGitHubHost.ts is plain reads and writes versus extension is judged from its outline, not line by line.
- The
t3-code:issues skill text lives outside this repository and was not inspected.
No files, branches or worktrees were changed. tannerpolley commented on Nov 17, 2026 tannerpolley commented on Nov 17, 2026 The plan's steps are now issues. Each one is blocked by the one before it:
#434 → #452 (Prep A) → #453 (Prep B) → #454 (sync) → #455 (thread links) → #456 (reads) → #457 (writes) → #458 (closeout).
Also wired, following the plan's "Other work in flight":
tannerpolley commented on Nov 18, 2026 Closeout ledger: fork edits left in upstream files (step 7, #458)
Result: the fork edits 7 of upstream's 84 issue source files (+85 / −17 lines) and 1 of its 17 issue tests. Six of the seven paths that collided before the sync are now byte-identical to upstream; the seventh, packages/contracts/src/issue.ts, differs by one added error reason. The fork's own issue code did not get smaller overall.
How it was counted: upstream is b387e3a179 (v0.1.11-nightly.20261117.4851, the commit sync #469 merged). "After the sync" is the sync merge e1d054250b. "Now" is local main at aabcbeac3d (057d0f690a plus the three closeout commits, not pushed yet). .repos/ is left out everywhere.
1. Fork edits inside upstream's own issue code
Exact counts from git diff --numstat b387e3a179 <ref>.
| Upstream file |
Lines: upstream → now |
After the sync |
Now |
What the edit is |
apps/web/src/components/issue/IssueDetailPanel.tsx |
918 → 921 |
+3 / −0 |
+3 / −0 |
Import and one slot line for the fork's work section |
apps/server/src/mcp/toolkits/issues/tools.ts |
385 → 388 |
+3 / −0 |
+3 / −0 |
create_issue and set_issue_state hidden from repository-managed threads |
apps/server/src/issue/IssueService.ts |
742 → 749 |
none |
+11 / −4 |
Milestone on create; create returns GitHub ids; comment returns its id; rejected reason passed through |
packages/contracts/src/issue.ts |
624 → 626 |
none |
+3 / −1 |
rejected added to the error reasons |
packages/source-control-core/src/server/IssueTracker.ts |
216 → 222 |
none |
+9 / −3 |
The same four additions on the tracker interface |
packages/source-control-github/src/server/GitHubIssueTracker.ts |
466 → 503 |
none |
+45 / −8 |
The same four additions in the GitHub driver |
packages/source-control-github/src/server/gitHubIssueJson.ts |
378 → 388 |
none |
+11 / −1 |
Decodes the created issue's ids and the created comment's id |
| Source total |
|
+6 / −0 in 2 files |
+85 / −17 in 7 files |
|
GitHubIssueTracker.test.ts |
613 → 649 |
none |
+39 / −3 |
Tests for the driver additions |
The five files that were untouched after the sync were edited by step 6 (#479 and its two fixes) so managed writes keep their receipts and can retry. These are edits in upstream's tracker contract and GitHub driver, the kind the plan's question 2 recommended avoiding, so they are the ones most likely to conflict at a sync. docs/operations/fork.md now lists them under "Upstream syncs". They could be offered upstream as one small change.
2. Issue join points in other upstream files
This table is an estimate. It counts fork hunks (no context lines) in upstream-owned files that contain "issue" or "roadmap". A whole fork block counts when it names issues once, so it overstates: storageCleanup.ts (+409), SidebarThreadRow.tsx (+225) and uiStateStore.ts (+140) are mostly other fork features.
| Area |
After the sync: files, hunks, lines |
Now: files, hunks, lines |
Server orchestration (orchestration-v2/) |
17, 98, +950 / −154 |
15, 87, +932 / −153 |
Server agent tools (mcp/) |
8, 36, +457 / −15 |
8, 33, +421 / −14 |
| Server, other |
9, 26, +475 / −174 |
9, 26, +479 / −176 |
| Web chat and composer |
27, 109, +572 / −87 |
27, 109, +572 / −87 |
| Web, other |
14, 64, +602 / −18 |
14, 64, +602 / −18 |
| Contracts |
7, 31, +342 / −2 |
7, 31, +342 / −2 |
| Shared packages |
10, 15, +220 / −4 |
10, 14, +229 / −4 |
| Docs, evals, config |
6, 10, +388 / −4 |
6, 10, +390 / −4 |
| Total, source |
98 files, 389 hunks, +4,006 / −458 |
96 files, 374 hunks, +3,967 / −458 |
| Tests and test kits |
35 files, +2,847 / −47 |
36 files, +2,875 / −48 |
What moved after the sync:
ClaudeAdapterV2.ts, CodexAdapterV2.ts and CodexDeveloperInstructions.ts no longer carry issue hunks (38 lines gone; the managed tool policy moved out of the adapters).
OrchestratorMcpService.ts went from +150 to +114.
server.ts went from +18 to +26: it wraps upstream's issue service so its writes refresh the roadmap.
ws.ts gained one changed line: the comment call now returns an id, which the RPC drops.
Largest remaining, by this estimate: Orchestrator.ts (35 hunks, +584 / −149), contracts/src/orchestrationV2.ts (+199), mcp/toolkits/orchestrator/tools.ts (+151), orchestrationInstructions.ts (+130), CommandPalette.tsx (+111), contracts/src/rpc.ts (+97), ChatView.tsx (+94 / −52). These are work policy and its tools, which the plan keeps in the fork.
For scale, all fork edits in upstream files, every feature: 552 files, +25,708 / −5,413 after the sync; 563 files, +25,806 / −5,421 now, out of 8,412 upstream files.
3. Fork-owned issue code, before and after
"Before the plan" is 2178125d7c, the commit the plan was written against.
| Code |
Before the plan |
After the sync |
Now |
Server apps/server/src/issues/, source |
38 files, 11,800 lines |
39, 12,106 |
39, 12,153 |
Server apps/server/src/issues/, tests |
16 files, 10,371 lines |
16, 10,586 |
17, 9,735 |
Web components/issues/, source |
41 files, 7,217 lines |
43, 7,201 |
43, 7,122 |
Web components/issues/, tests |
18 files, 2,423 lines |
18, 2,416 |
18, 2,360 |
| Fork issue contracts, with tests |
12 files, 1,845 lines |
12, 1,858 |
12, 1,783 |
The plan listed these as candidates, not promised deletions. What happened to each:
| Fork file, lines before the plan |
Now |
routes/_chat.issues.tsx, 458 |
Upstream's 9-line file. The fork page is _chat.roadmap.tsx (8) and IssuesRoadmapPage.tsx (483) |
IssueBrowser.tsx, 897 |
909, kept as the roadmap body |
components/issues/IssueDetailPanel.tsx, 856 |
Deleted. IssueWorkSection.tsx (326) sits inside upstream's panel |
ThreadDetailsIssueRows.tsx, 242 |
Upstream's 43-line file. The fork section is ThreadDetailsRepositoryIssueRows.tsx (243) |
ThreadLinkedIssueRow.tsx, 100 |
102, still used by ThreadDetailsPanel.tsx |
lib/openIssueLink.ts, 98 |
Upstream's 83-line file, plus the fork's openRepositoryIssueLink.ts (41) |
rightPanelIssueSurfaces.ts, 68 |
2 |
IssueStateIcon.tsx, 150 |
153, kept |
IssueMcpTools.ts, 68 |
Deleted; link_issue and unlink_issue are upstream's |
contracts/src/issueLinks.ts, 33 |
10 |
IssueGitHubHost.ts, 2,011, and IssueHost.ts, 273 |
Deleted. IssueGitHubExtension.ts (1,846) holds what upstream has no field for |
client-runtime/src/state/issues.ts, 395, and web/src/state/issues.ts, 279 |
Upstream's files (301 and 46). The fork's state is in repositoryIssues.ts (321 and 271) |
Left over
ThreadLinkedIssueRow.tsx is still there; the plan expected it to go once claims write links.
- The
githubIssues capability is still read in 29 non-test files; the plan said to drop it once nothing reads it.
- A repository that is not a T3 Code project still appears on the Roadmap page, but its issues do not load ("Add this repository as a project to use its issues"), because upstream reads issues through a project. The user guide now says so.
Not verified
- No trial merge against a newer upstream was run, so "likely to conflict" in section 1 is a judgment from where the edits sit.
- Section 2 is a keyword estimate, as described there.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|