Repository navigation
Closed
Description
Owner 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_changewith 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
linkedIssueper thread.
Collisions at the next sync
- The fork and upstream both define the
link_issueandunlink_issueMCP tools, with different behavior. - Thread links: the fork's single
linkedIssueversus upstream'sissues[]. Persisted fork links need a migration path. - Two Issues pages and two sets of
IssueRowandIssueDetailPanel(components/issue/andcomponents/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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
tannerpolley commentedon Nov 17, 2026
Owner requirements, 2026-11-17. These are fixed, and the plan decides only how to meet them:
tannerpolley commentedon Nov 17, 2026
Design: fork issue work on upstream's Issues, one data path
Pinned inspection: fork
main2178125d7c(clean); upstreampingdotgg/maine9dc20d063; newest nightly tagv0.1.11-nightly.20261117.4838(ea6d3fc30f), 168 commits past the last sync (7d32075e37), 214 topingdotgg/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
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
IssueService(apps/server/src/issue/, 1,013 lines) and its tracker drivers. The fork has no second reader or writer of these.IssueRef/ThreadIssueKey(tracker, host, scope, key). The fork's{host, repository, number}refs go away.thread.issues[], written bythread.issue.link/thread.issue.unlinkthroughThreadIssueService(109 lines).IssuesToolkit(689 lines).IssueGitHubApialready usesGitHubRest,GitHubRequestPolicyandSourceControlRateLimit). It adds facts to upstream rows; it never lists or reads issue content itself.apps/server/src/issues/and the #418 command modules.A roadmap row is an upstream
IssueListEntryplus a fork overlay keyed by the same issue key: relationships, milestone, live work, queue position, suspension, and the derived work state. This is the joinIssueLinks.enrichalready does today for live work, widened.Sizes that matter
pingdotgg/main)git merge-tree main pingdotgg/mainapps/server/src/issues/components/issues/components/issue/contracts/src/issue.tsIssueRef,IssueSummary,IssueListInput,IssueListResult,IssueListState,IssueComment,IssueLinkedPullRequest,IssueActor,IssueLabel)linkedIssueThe 7 colliding paths:
packages/contracts/src/issue.ts,packages/client-runtime/src/state/issues.tsand 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_issueandunlink_issue; RPC methodsissues.list,issues.detail,issues.setState; the right-panel surface kindissue(rightPanelStore.tshas 9 of the 58 blocks); the exportscreateIssueEnvironmentAtoms,issueEnvironment,IssueListTarget; and component namesIssueRow,IssueDetailPanel,IssueServicein sibling folders (issue/andissues/).Behavior mapping
IssueService.list,IssueGitHubHost.listIssuePage)IssueService.listnarrowed byprojectId, paged by its cursorsIssueDetailPanel.tsx, 856 lines)IssueDetailPanel(918 lines),issues.detail,issues.commentsissues.setState,issues.comment,issues.updateIssueChangeService, 651 lines)IssueService.create,update,setStateIssueCommentEffects)IssueService.commentfor a new commentissue_thread_linkstable,IssueLinks.link)thread.issues[]thread.linkedIssue)thread.issues[]entry.IssueLinks.enrich)thread.issues[]from thread shellsIssueRoadmap.ts,issueRoadmap.logic.ts)issues) and the Issues section in thread detailsissuesurface./issues)/issues/roadmap. A new route file never conflicts; a view switch inside upstream'sIssuesPage.tsx(810 lines, about 20 follow-up fixes in its first days) would. Say so if you want the switch instead.openIssueLink.ts,rightPanelIssueSurfaces.ts)useOpenIssueLinkand itsissuesurfaceThreadLinkedIssueRow.tsx, 100 lines)ThreadDetailsIssueRowswork_through_milestone, handoffs, inbox, owner decisionsIssueProjects.ts, 361 lines)IssueListResult.trackersandscopes,projectScopeFork files that end up replaced, by current size: the route body (458),
IssueBrowser.tsxshell (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 ofIssueGitHubHost.ts(2,011) andIssueHost.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'slink_issue(host, repository, number, thread). Outside the event history, with no title or URL.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.linkedIssuestays 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 readthread.issues[].thread.issues[]entry in the same commit as the claim, from the issue-owned planner (IssueWorkCommands.ts). Workers need not calllink_issue.thread.issues[]. A claim still counts if its link was removed, so unlinking cannot hide a running worker.linkedIssuehas no matching entry, dispatchthread.issue.linkwith a command id derived from the thread and issue, so a repeat is a no-op. Fields: trackergithub, scope = repository, key = the number, project = the thread's project, URL built from host, repository and number, sourceagent. Title comes from the thread'slinkedIssuewhen it is the same issue; otherwise oneIssueService.detailread 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.Loss: the original link time is not stored, so backfilled links carry the backfill time. Also update the purge list in
ForkHistoryMaintenance.tsandscripts/fork-dev/seed.py. Thenissues.unlinkandissues.subscribeLinkRefreshesgo: 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 fromrepository+numbertourl, orkeywith an optionalprojectId. Upstream'slink_issuereads the issue first, so a link to a missing issue now fails.list_issues,read_issue,create_issue,comment_on_issue,set_issue_state,list_thread_issues.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.issues.list,issues.detail,issues.setStatebecome upstream's. The fork's list and detail are renamed (issueWork.roadmap,issueWork.detail) and later shrink to the overlay; the fork'sissues.setStateis deleted. Upstream's mobile Issues tab then works against the fork server unchanged. Other forkissues.*methods don't collide and keep their names.issuesflag and the fork's fields inenvironment.ts; drop the fork'sgithubIssuesonce nothing reads it.docs/operations/fork.md, thet3-code:issuesskill): followevals/README.mdwith the free checks only, and remeasureagentContextBudget.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.
contracts/src/issue.ts, bothstate/issues.tsfiles 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.IssueDetailPanel.tsxinto one component with the smallest props. The fork panel renders body and comments plus that section. No visible change; before and after captures.issuesurface, link opening and thread-details rows;linkedIssuekept besideissuesinorchestrationV2.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.enrichreadsthread.issues[]as well as old table rows; upstream'sForgejoCli.ts; the "Issue host" section offork.mdrewritten; new workflows disabled. The roadmap still reads through the fork's GitHub code for this one step: the only step with two readers.issues.unlinkand the refresh stream. Server tests: backfill repeat, deleted thread, failed title read, claim and link in one commit./roadmaptake rows fromIssueService.listplus 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.IssueChangeServiceandIssueCommentEffectscallIssueService; milestone, relationship, marked-comment and activity code becomes the GitHub extension; deleteIssueHost.tsand the rest ofIssueGitHubHost.ts. Tests: a repeated create, an approval conflict, a stale attempt, a retry after a remote write.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
ProjectionStore.ts, which upstream changed by +183 / −69 forthread.issues;EffectWorker.tsis 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.Orchestrator.tsis +193 / −88.ClaudeAdapterV2.tsis +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.thread.issues[], so it needs step 4.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.Owner questions, all about how
linkedIssueas 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.create_issueandset_issue_statehave no approval step. Hide those two from repository-managed threads, sopropose_issue_changeremains 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 ofpropose_issue_change. The second edits upstream's handlers and changes tool text the orchestrator instructions depend on.Not verified
git merge-treeagainstpingdotgg/main.issue_thread_linksis unknown; it sets how many title reads the backfill makes.IssueGitHubHost.tsis plain reads and writes versus extension is judged from its outline, not line by line.t3-code:issuesskill text lives outside this repository and was not inspected.No files, branches or worktrees were changed.
tannerpolley commentedon Nov 17, 2026
Owner decisions, 2026-11-17. All four follow the plan's recommendations:
/roadmaproute, and upstream's Issues page keeps/issues. The per-repository side panel stays.create_issueandset_issue_statefrom repository-managed threads, sopropose_issue_changestays their gated path, running on upstream's service. Other threads get all eight upstream tools.linkedIssueas the claim record, and have each claim also write athread.issues[]link. Facts upstream lacks go in a fork-owned GitHub extension.The plan's steps are now top-level issues, chained by blocked-by. The step list follows in the next comment.
tannerpolley commentedon 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":
refactor(issues): move fork issue names out of upstream's way
refactor(web): split the work section out of the fork issue detail panel
feat(issues): move thread issue links onto thread.issues
feat(issues): roadmap and side panel read upstream issue rows
feat(issues): issue writes run on upstream IssueService
tannerpolley commentedon 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 mergee1d054250b. "Now" is localmainataabcbeac3d(057d0f690aplus 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>.apps/web/src/components/issue/IssueDetailPanel.tsxapps/server/src/mcp/toolkits/issues/tools.tscreate_issueandset_issue_statehidden from repository-managed threadsapps/server/src/issue/IssueService.tsrejectedreason passed throughpackages/contracts/src/issue.tsrejectedadded to the error reasonspackages/source-control-core/src/server/IssueTracker.tspackages/source-control-github/src/server/GitHubIssueTracker.tspackages/source-control-github/src/server/gitHubIssueJson.tsGitHubIssueTracker.test.tsThe 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.mdnow 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) anduiStateStore.ts(+140) are mostly other fork features.orchestration-v2/)mcp/)What moved after the sync:
ClaudeAdapterV2.ts,CodexAdapterV2.tsandCodexDeveloperInstructions.tsno longer carry issue hunks (38 lines gone; the managed tool policy moved out of the adapters).OrchestratorMcpService.tswent from +150 to +114.server.tswent from +18 to +26: it wraps upstream's issue service so its writes refresh the roadmap.ws.tsgained 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.apps/server/src/issues/, sourceapps/server/src/issues/, testscomponents/issues/, sourcecomponents/issues/, testsThe plan listed these as candidates, not promised deletions. What happened to each:
routes/_chat.issues.tsx, 458_chat.roadmap.tsx(8) andIssuesRoadmapPage.tsx(483)IssueBrowser.tsx, 897components/issues/IssueDetailPanel.tsx, 856IssueWorkSection.tsx(326) sits inside upstream's panelThreadDetailsIssueRows.tsx, 242ThreadDetailsRepositoryIssueRows.tsx(243)ThreadLinkedIssueRow.tsx, 100ThreadDetailsPanel.tsxlib/openIssueLink.ts, 98openRepositoryIssueLink.ts(41)rightPanelIssueSurfaces.ts, 68IssueStateIcon.tsx, 150IssueMcpTools.ts, 68link_issueandunlink_issueare upstream'scontracts/src/issueLinks.ts, 33IssueGitHubHost.ts, 2,011, andIssueHost.ts, 273IssueGitHubExtension.ts(1,846) holds what upstream has no field forclient-runtime/src/state/issues.ts, 395, andweb/src/state/issues.ts, 279repositoryIssues.ts(321 and 271)Left over
ThreadLinkedIssueRow.tsxis still there; the plan expected it to go once claims write links.githubIssuescapability is still read in 29 non-test files; the plan said to drop it once nothing reads it.Not verified