diff --git a/docs/fork/FORK-DEPENDENCIES.md b/docs/fork/FORK-DEPENDENCIES.md index c05d140a5b18..d678f2ef0aeb 100644 --- a/docs/fork/FORK-DEPENDENCIES.md +++ b/docs/fork/FORK-DEPENDENCIES.md @@ -116,7 +116,7 @@ Rows in a cycle are ordered as one unit in [UPSTREAM-READINESS.md](UPSTREAM-READ | W16 | W15 | hard | server/internal/handler/issue_workflow_edges.go:71 spawn happens inside the edge-advance loop; stage join reads edge Facts (server/internal/issueworkflow/edges.go:212) | | W17 | W15 | hard | server/internal/handler/issue_workflow_edges.go:197 facts.Webhooks = h.guardedWebhooks(...); server/internal/issueworkflow/edges.go:35 GuardWebhook guard consumes verified events | | W19 | W15 | hard | server/internal/handler/issue_workflow_entry_gate.go:84 h.loadEdgeFacts(...); :206 issueworkflow.Edge; server/internal/issueworkflow/entry.go:16 MaxEntryGatesPerStep = MaxEdgesPerStep, :63 ParseGuard | -| W20 | H07 | hard | server/internal/handler/github_workflow.go:62 `githubEnabledForWorkspace(ws)`; the helper is defined at server/internal/handler/github.go:2679 (added by fork commit cec25ddc8b, row H07) and is absent from upstream `3794359792` (upstream has the `github_enabled` setting, read in server/internal/daemon/daemon.go:3294, but no handler helper). The H07 writer was removed (149e45f53e); the 17-line helper stayed. W20 needs it bundled | +| W20 | H07 | hard | server/internal/handler/github_workflow.go:62 `githubEnabledForWorkspace(ws)`; the helper is defined at server/internal/handler/github.go:2679 (added by fork commit cec25ddc8b, row H07) and is absent from upstream `7397565332` (upstream has the `github_enabled` setting, read in server/internal/daemon/daemon.go:3300, but no handler helper). The H07 writer was removed (149e45f53e); the 17-line helper stayed. W20 needs it bundled | | W21 | W06 | hard | server/internal/service/wakeup_custom_exec.go:47 b := &builtinWakeup{Eff: r.eff, ...} | | W21 | W07 | hard | server/internal/service/wakeup_custom_instance.go:139 ApplyDefaultWakeupInstance; wakeup_custom_sweep.go:312 same call | | W21 | W08 | hard | server/internal/service/wakeup_custom_exec.go:262 admitAggregateStart(...) | diff --git a/docs/fork/FORK-FEATURES.md b/docs/fork/FORK-FEATURES.md index a3d232c43d11..c3145afde337 100644 --- a/docs/fork/FORK-FEATURES.md +++ b/docs/fork/FORK-FEATURES.md @@ -10,10 +10,10 @@ This refresh moves the ledger from the 2026-10-23 pin to current `main`, adds a It describes the fork; it does not authorize a PR, merge or deployment. - Fork `main` pin: `ee8b37834f56f7219f17d2046c8155a731cb80d8` (committed 2026-11-02 16:33 ICT). -- Upstream `main` pin: `3794359792e1e310d89d0488b46efff66e9d2369` (committed 2026-11-02 19:02 ICT). +- Upstream `main` pin: `73975653323750d04c27047ea9c986ef06bdf6a1` (committed 2026-11-08 13:35 ICT). Upstream tag `v0.7.0` (`dbdbb299164347586e2650bb67684a490726a798`) and the merge base are unchanged. - Evidence was read at `e8b6a97643ccc35efbcf2a4675c8d088a288ed6e` (2026-11-02 17:44 ICT) and re-verified at the pin `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT): 3 later commits change 55 files (agents UI, collection page, skill-import limit errors; `server/internal/cli/errors.go` gains a 413 kind). Of those 55 files only `packages/views/chat/components/chat-session-header.tsx`, `packages/views/layout/index.ts`, `packages/views/search/search-command.test.tsx` and `server/internal/cli/errors.go` are named anywhere in these docs, and none is an upstream line that a status or fix verdict rests on, so no status changed. -- Previous pin: `9ac3541dba50d3e1f06687779694b08095c21b79` (2026-10-23 16:52 ICT). + Evidence was read at `e8b6a97643ccc35efbcf2a4675c8d088a288ed6e` (2026-11-02 17:44 ICT) and re-verified at the previous pin `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT) and at the pin `73975653323750d04c27047ea9c986ef06bdf6a1` (2026-11-08 13:35 ICT). From the previous pin to this pin 134 upstream commits change 1053 files. 48 of the files named in these docs changed. Only those with an upstream line behind a status or fix verdict were re-read: FX120, FX133, FX080, FX106, FX082, FX074, FX058, FX148, FX070, FX036, FX077, W20 and the unknown rows. Result: FX083 is now `fixed upstream` (82492f94d6, #9860); every other status is unchanged; FX131 was re-checked and upstream has no fix. Line numbers moved for FX080, FX082, FX074, FX148, FX070, FX036, FX077 and W20 and are updated. Upstream `e7592c57ed` (#10057, a per-issue `--pr-auto-complete` flag) does not add a CLI link or unlink path, so FX070 stays `present`. +- Previous pin: `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT); before it `9ac3541dba50d3e1f06687779694b08095c21b79` (2026-10-23 16:52 ICT). - Fork PRs merged after the previous pin: **299**. 204 are grouped into the 64 new rows below; 91 fix and perf PRs are in [UPSTREAM-FIXES.md](UPSTREAM-FIXES.md); 4 upstream-sync chores diff --git a/docs/fork/UPSTREAM-FIXES.md b/docs/fork/UPSTREAM-FIXES.md index 2c174632e39d..8ed0f1535bb8 100644 --- a/docs/fork/UPSTREAM-FIXES.md +++ b/docs/fork/UPSTREAM-FIXES.md @@ -7,11 +7,11 @@ Covers every merged fork PR whose title type is `fix` or `perf` (195 PRs, groupe - A fix is one bug, which can span several fork PRs (follow-up fixes to the same bug are grouped). - **Code area**: `upstream-shared` if the changed non-test files exist in upstream `main`; `fork-only` if the code is fork-only. Fork-only fixes get one line each in [Stays in fork](#stays-in-fork). -- **Upstream state** for upstream-shared fixes, checked against upstream `main` `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT): +- **Upstream state** for upstream-shared fixes, checked against upstream `main` `73975653323750d04c27047ea9c986ef06bdf6a1` (2026-11-08 13:35 ICT): `present` = the bug is still in upstream (evidence cites the upstream file and line); `fixed upstream` = upstream fixed it (evidence cites the commit); `unknown` = could not be decided (the reason says why). - **Size** = changed lines outside test files. **Regression test** = `yes` only when a test the fix PRs added or changed asserts the fixed behavior (test names and assertions read in the PR diff; not run here); the cell names it. `partial` = a test covers part of the fix. `unverified` = test files were touched but their coverage of the bug was not read. `no` = no test file touched. A touched test file alone is never `yes`. - **Depends on** = ledger rows the fix needs, hard or soft, with one pointer; `none` = independent. -- Evidence was read at `e8b6a97643ccc35efbcf2a4675c8d088a288ed6e` (2026-11-02 17:44 ICT) and re-verified at the pin `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT): 3 later commits change 55 files (agents UI, collection page, skill-import limit errors; `server/internal/cli/errors.go` gains a 413 kind). Of those 55 files only `packages/views/chat/components/chat-session-header.tsx`, `packages/views/layout/index.ts`, `packages/views/search/search-command.test.tsx` and `server/internal/cli/errors.go` are named anywhere in these docs, and none is an upstream line that a status or fix verdict rests on, so no status changed. +- Evidence was read at `e8b6a97643ccc35efbcf2a4675c8d088a288ed6e` (2026-11-02 17:44 ICT) and re-verified at the previous pin `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT) and at the pin `73975653323750d04c27047ea9c986ef06bdf6a1` (2026-11-08 13:35 ICT). From the previous pin to this pin 134 upstream commits change 1053 files. 48 of the files named in these docs changed. Only those with an upstream line behind a status or fix verdict were re-read: FX120, FX133, FX080, FX106, FX082, FX074, FX058, FX148, FX070, FX036, FX077, W20 and the unknown rows. Result: FX083 is now `fixed upstream` (82492f94d6, #9860); every other status is unchanged; FX131 was re-checked and upstream has no fix. Line numbers moved for FX080, FX082, FX074, FX148, FX070, FX036, FX077 and W20 and are updated. Upstream `e7592c57ed` (#10057, a per-issue `--pr-auto-complete` flag) does not add a CLI link or unlink path, so FX070 stays `present`. - **Security-class rows** (a defect upstream has not patched that is an authorization, credential or data-exposure gap) carry the id and a one-line effect only. They never carry upstream file or line, route names or exploit detail; the evidence cell reads `security-class; details withheld until upstream fixes it (private report pending)`. Report such a defect to upstream privately first (CHE-3676), then fill in the evidence after upstream fixes it. Git history keeps older text; it is not rewritten. - Order of the `present` list: independent and test-backed first, then smaller first. Static read; no fix was re-run against upstream. @@ -19,8 +19,8 @@ Covers every merged fork PR whose title type is `fix` or `perf` (195 PRs, groupe | Class | Fixes | PRs | | --- | --- | --- | -| Upstream-shared, `present` | 29 | 30 | -| Upstream-shared, `fixed upstream` | 3 | 3 | +| Upstream-shared, `present` | 28 | 29 | +| Upstream-shared, `fixed upstream` | 4 | 4 | | Upstream-shared, `unknown` | 5 | 7 | | Fork-only (stays in fork) | 126 | 155 | | Total | 163 | 195 | @@ -37,33 +37,33 @@ Covers every merged fork PR whose title type is `fix` or `perf` (195 PRs, groupe | 6 | FX105 | Add comment popup does not open when mouse-up lands outside the message text | #458 (CHE-2206) | 19 | yes: `use-comment-annotations.chat.test.tsx` "selection released outside the message text" | none | upstream/main use-comment-annotations.tsx:239-242 captureProps.onPointerUp captures only if event.target.closest('[data-comment-content]'); a drag released in padding/gutter never calls capture(). Fork fix arms on pointerdown and captures on document pointerup. | - | | 7 | FX133 | Claude-injected turn result closes stdin early | #580 (CHE-2462) | 25 | yes: `agent/claude_result_test.go` TestClaudeExecuteTurnResult | none | upstream/main server/pkg/agent/claude.go:327-358 case "result" accepts any result: sets sawResult/finalResultText and calls closeAfterControls() with no check that the result belongs to the daemon prompt; no user_message_uuid/promptUUID in file (grep empty). A resumed CLI result from an injected task-notification turn closes stdin on the pending prompt. | - | | 8 | FX060 | Dev env startup GC destroys containers without opt-in | #280 (CHE-1614, CHE-1813) | 35 | yes: `scripts/dev-env.test.sh` (startup runs no GC without opt-in; stub repo) | none | upstream/main scripts/dev-env.sh:1130 and :1438 still run the destructive startup GC unconditionally; dry-run patch applies cleanly to dev-env.sh and Makefile | O19 | -| 9 | FX083 | PR check snapshot counts superseded cancelled check runs as failures | #374 (CHE-1994) | 39 | yes: `ghsnapshot/rest_snapshot_test.go` TestFetchPRSnapshotRESTLatestCheckRuns | none | upstream/main server/internal/integrations/ghsnapshot/snapshot.go:106 fetches `check-runs?filter=latest` and :116-135 appends every returned run, only rejecting duplicate run IDs - no per-(name,app) dedupe by started_at/ID. The fork had the same filter=latest call and still saw superseded cancelled runs, so the defect likely survives; depends on GitHub runtime behavior. | - | -| 10 | FX080 | --no-start (suppress_run) drops the workflow step handoff run for a different handler | #369 (CHE-1948, CHE-1966, CHE-1984, CHE-1988) | 40 | yes: `handler/issue_workflow_no_start_test.go` TestNoStartKeepsHandoffRunForADifferentHandler | none | upstream/main:server/internal/handler/issue.go:4167 `willRun = willRun && !req.SuppressRun` (single) and :4962 `willRun = willRun && !req.Updates.SuppressRun` (batch) while a workflow handoff (workflowHandoff, issue_workflow_entry.go:35) reassigns to another agent; so the flag silences the new handler's run, same pattern the fork replaced with suppressRunForWrite. Fork code used (handedToAgent, issue_workflow_entry.go:183) also exists upstream. | - | -| 11 | FX106 | Mobile share/copy links use web-404 path /{ws}/issue/; web has no /issue/ redirect | #460 (CHE-1798, CHE-2202) | 41 | partial: `apps/web/proxy.test.ts` covers the web redirect; the mobile link builders are untested | none | upstream/main:apps/mobile/app/(app)/[workspace]/issue/[id].tsx:119 and apps/mobile/components/issue/comment-context-menu.tsx:163 still build `${webUrl}/${wsSlug}/issue/${identifier}`; web only has apps/web/app/[workspaceSlug]/(dashboard)/issues/[id] and apps/web/proxy.ts LEGACY_ROUTE_SEGMENTS (line ~14-60) has no 'issue', so the shared link 404s (same pattern fork changed to /issues/). PR also mixes fork-only decision-link builders (decisiontx/ask.go, decision_record.go, decision_request_api.go, decision_veto_notice.go, util/issue_link.go) that belong in the fork lane. | - | -| 12 | FX082 | Agent PRs not linked to their issue (branch name and Refs/Part of keywords) | #373 (CHE-7, CHE-1988, CHE-1991) | 55 | yes: `repocache/cache_test.go` TestCreateWorktreeBranchCarriesIssueIdentifier | none | upstream/main server/internal/daemon/repocache/cache.go:892 `branchName := fmt.Sprintf("agent/%s/%s", sanitizeName(params.AgentName), taskKey(params.TaskID))` (no issue key in the branch), and server/internal/handler/github.go:1069 closingIdentifierRe only accepts close/fix/resolve keywords; a branch/body without those links nothing. Task.IssueIdentifier exists upstream (daemon/types.go:87). Enhancement more than defect; mixes in one fork-only line (issue_workflow_ci_advance.go workflowHandoffPayload arg, W04) that must be dropped. | - | -| 13 | FX027 | Codex SQLite state-runtime init exit not retried | #101 (CHE-737) | 56 | yes: `agent/codex_test.go` TestCodexExecuteRetriesOnceAfterSQLiteStateRuntimeInitExit | none | upstream/main server/pkg/agent/codex.go:~1535 retrySafe := timedOut && !semanticObserved.Load() && cleanupConfirmed && codexInitializeRetrySupported(): retry only on timeout, so an initialize exit from SQLite state-runtime init is not retried | - | -| 14 | FX137 | Wakeup run inherits a stale workflow step from its registering run | #599 (CHE-2553) | 112 | yes: `service/issue_wakeup_workflow_test.go` TestWakeupFromStaleRunWorksOnTheIssuesStatus | none | upstream/main server/pkg/db/queries/wakeup.sql:206-210 CreateWakeupTask sets workflow_step = COALESCE((SELECT s.workflow_step FROM agent_task_queue s WHERE s.id = delegated_from_task_id ...), issue status): a wakeup copies the registering run step at fire time, so a run already stale when it registers hands that step down every wakeup chain and the guard (issue_workflow_entry.go:152 workflow_step_moved) refuses every status change. | - | -| 15 | FX074 | Repeat delivery of an already-executing task is re-run | #358 (CHE-1972) | 118 | yes: `daemon/duplicate_delivery_test.go` TestRunBatchPollerIgnoresDuplicateDeliveryOfInflightTask | none | upstream/main server/internal/daemon/daemon.go:5464 calls d.handleTask(parentCtx, t, slot) with no running-task guard; server/pkg/db/queries/agent.sql:856-870 claim can redeliver. Patch applies cleanly to daemon.go | D08 | -| 16 | FX058 | DM back stack lost on web and desktop | #267 (CHE-1755, CHE-1758) | 120 | yes: `core/chat/store.test.ts` navIntent; `views/chat/chat-page.test.tsx` | none | upstream/main packages/views/chat/chat-page.tsx:125 still has single-state chat navigation without a back stack (store/index.ts shape matches the fork pre-fix). Patch applies with drift: store.ts and index.ts clean, chat-page.tsx hunks 1,2,5,11 need manual rebase | C17 | -| 17 | FX118 | Redactor masks shell references and placeholders as credentials | #531 (CHE-2338, CHE-2340) | 155 | yes: `redact/redact_test.go` TestGenericCredentialValues; `task-transcript/redact.test.ts` | none | upstream/main server/pkg/redact/redact.go:71 `(?i)(?:API_KEY/.../TOKEN)\s*[=:]\s*\S+` -> [REDACTED CREDENTIAL] and packages/core/security/redact-secrets.ts:32 same regex; `TOKEN=$TOKEN`, `TOKEN=$(jq ...)`, `TOKEN=`, `password: ***` are all masked, losing readable commands in transcripts. Fork TS change targets packages/views/.../redact.ts which upstream turned into a re-export, so the TS half must be ported into core/security/redact-secrets.ts. | - | -| 18 | FX050 | Decided open/draft PR snapshots that no conflict rule watches are never re-fetched | #230 (CHE-1395, CHE-1417, CHE-1665) | 280 | yes: `ghsnapshot/recheck_che1665_test.go` (bounded drain through sweepOnce); the catch-up after start has no test | none for the re-check half (query ClaimGitHubPRsDueForRecheck, migration 623, refresh.go sweepRecheck). The wake-rule half (BEHIND/draft/dedupe keys in handler/github.go and service/issue_wakeup_system.go) is fork-only PR-attention code and needs hard: W05; leave it out of the pitch | upstream/main (3794359792) partly fixed it, not fully. server/pkg/db/queries/github_snapshot.sql:46-70 ListStaleUndecidedGitHubPRs still drops a decided snapshot ("A decided snapshot leaves the undecided sweep"); :85-106 ListStaleConflictWatchedGitHubPRs re-checks a decided snapshot only when an enabled `issue_wakeup` rule with condition event `conflicts` links to it (`w.enabled`, :100-105); ghsnapshot/refresh.go:557 is its only caller. A decided open/draft PR with no such rule keeps a stale snapshot indefinitely, so the owner of a PR whose base moved by direct push is not woken. Upstream commit e720fe2219 covers the watched subset only | H05 | -| 19 | FX103 | Table auto-fit remeasured on every remount; thread rail looks up all rows each frame | #455 (CHE-2082, CHE-2174, CHE-2192) | 292 | yes: `rich-table.test.tsx` "auto-fit cost"; `thread-minimap.test.tsx` | none | upstream/main rich-content/rich-table.tsx:129,224-240 measureColumns() runs on every mount, no cache or row-count cap (fork fix caches per content+width, skips >50 rows); thread-minimap.tsx:230-234 loops document.getElementById over all anchorIds each frame (rail was refactored upstream, so that half needs re-cut). | - | -| 20 | FX134 | Mermaid xychart/timeline/pie/radar unreadable in dark mode | #590 (CHE-2294, CHE-2525) | 41 | yes: `editor/utils/mermaid-theme.test.ts` | hard: C46 `packages/views/editor/utils/mermaid-theme.ts` | upstream/main packages/views/editor/mermaid-diagram.tsx:99-118 getMermaidThemeVariables sets only primaryColor/primaryBorderColor/primaryTextColor/lineColor; no darkMode, xyChart, cScale/pie or radar variables (git grep cScale/xyChart upstream/main -- packages empty), so those diagram types keep Mermaid light defaults in dark mode. | - | -| 21 | FX076 | Auto-update never installs while the daemon has a running task | #361 (CHE-1978, CHE-1979) | 57 | yes: `daemon/auto_update_fork_test.go` (installs while busy) | soft: D02 `fork diff calls d.autoUpdateTarget(ctx) (fork-only, introduc` | upstream/main server/internal/daemon/auto_update.go:214-217 `if running := d.activeTasks.Load(); running > 0 { ... return }` before fetchLatestRelease, then trySetClaimBarrier at :253 defers whole upgrade when busy; same pattern the fork removed (install now, only restart waits for idle barrier). A daemon that is always busy never updates. | - | -| 22 | FX129 | Annotation note popup loses draft on touch scroll and does not size on Safari | #571 (CHE-2428) | 58 | yes: `use-comment-annotations.chat.test.tsx` "annotation note drafts" | soft: C20 `(use-comment-annotations.tsx` | upstream/main packages/views/issues/components/use-comment-annotations.tsx:79-84 pointerdown dismisses (setSelection(null); setEditor(null)) for every pointer type incl. touch, and the unconfirmed note lives only in editor state that dismissal drops; :268-271 textarea relies solely on CSS field-sizing-content (no fallback). Same pattern the fork fix replaced. | - | -| 23 | FX148 | Issue detail back-navigation restores wrong comment (pixel offset on virtualized timeline) | #673 (CHE-1857, CHE-2668) | 128 | yes: `use-issue-detail-scroll-anchor.test.ts` (anchor read); `e2e/issue-detail-back-navigation.spec.ts` not run in default CI | none | upstream/main packages/views/issues/components/issue-detail.tsx:3905 Virtuoso initialScrollTop={restoredScrollTop} restores a stored pixel offset (useRestoredScrollOffset, :1424); row heights are estimated until measured, so remount lands on a different comment. Fork e2e: scrollTop 7680 before leaving, 13385 after Back. Not run against upstream. | - | -| 24 | FX088 | Annotation 'Add comment' popup: IME/keystroke lag, iOS menu overlap, hidden under keyboard | #393, #430 (CHE-2077, CHE-2162) | 136 | yes: `use-comment-annotations.ime.test.tsx`; `use-comment-annotations.chat.test.tsx` | soft: C20 `use-comment-annotations.tsx` | upstream/main packages/views/issues/components/use-comment-annotations.tsx:268,273 note textarea is controlled by hook state (value={editing.note}, onChange -> setEditor), so each keystroke/IME update re-renders the whole host page; comment-selection-bubble.tsx:35,51 fixed placement 'top' + offset(8), no pointer:coarse handling (iOS native menu sits above selection) and no visualViewport/keyboard handling. Same pattern the fork fix removed. | - | -| 25 | FX070 | PR close-link repair from CLI | #339 (CHE-1930, CHE-1932, CHE-1933) | 183 | partial: `cmd/multica/cmd_issue_test.go` covers CLI routing and unlink only | soft: H04 `relies on fork actor-aware PR linking and unlink repair` | upstream/main server/cmd/server/router.go:2158 and server/internal/handler/pr_auto_complete.go:536 still auto-complete from PR text with no CLI repair path for wrong close links; patch applies cleanly to cmd_issue.go | H04 | -| 26 | FX100 | Oversized comment bodies and tables mount synchronously on minimap jump | #447 (CHE-2174, CHE-2191, CHE-2272) | 186 | yes: `comment-card-long-body.test.tsx` | hard: C01 `comment-card.tsx` | upstream/main comment-card.tsx:909,1459 `` mounts the full body with no size cap; rich-table.tsx has no near-viewport deferral. Perf plus a visible behavior change (prefix + 'Show full comment' over 16,000 chars; Cheese accepted for the fork). Mixes an unrelated use-in-page-find keepRangeInView settle loop. | - | -| 27 | FX094 | Offscreen Mermaid/HTML previews stay mounted forever | #432 (CHE-2082, CHE-2132, CHE-2164) | 218 | yes: `editor/mermaid-diagram.test.tsx` MermaidDiagram lifecycle | soft: C46 `mermaid-diagram.tsx` | upstream/main rich-content/lazy-rich-block.tsx:24-26,103 'MOUNT-ONCE LATCH ... never unmounted' plus mounted-block-registry.ts; blocks scrolled past keep their Mermaid SVG/iframe. Deliberate upstream trade-off, so upstream may reject; also upstream issue-detail does not provide RichContentScrollRootProvider (only chat-message-list.tsx:354 does). | - | -| 28 | FX090 | Issue timeline: deep link and find drop virtualization and mount the full list | #409 (CHE-2082, CHE-2132, CHE-2135) | 348 | yes: `issue-detail.test.tsx` (virtualized deep link and find) | soft: C01 `issue-detail.tsx` | upstream/main issue-detail.tsx:1866 `const isFlatTimeline = !!highlightCommentId // find.open;` still switches the whole timeline to a flat full-list render for deep links and in-page find (extra flat scroll paths at :1909-1934); use-in-page-find.ts walks mounted DOM only. Perf cliff on very long threads, same as base of the fork fix. Perf/behavior change, not a crash bug. | - | -| 29 | FX092 | Long thread replies mount together inside one oversized root row | #416 (CHE-2082, CHE-2132, CHE-2149) | 377 | yes: `issue-detail.test.tsx` "virtualizes replies as individual rows" | hard: C01 `issue-detail.tsx`; soft: C20 `416 adds revealAnnotation / pendingAnnotationEdit in issue-d` | upstream/main comment-card.tsx:1503,1521 `{threadRows.map(renderThreadRow)}` renders every reply inside the root's single Virtuoso item, so an oversized thread mounts all replies. Same pattern the fork fix split into per-reply rows. Perf, mixed with annotation-reveal and find-effect changes. | - | +| 9 | FX080 | --no-start (suppress_run) drops the workflow step handoff run for a different handler | #369 (CHE-1948, CHE-1966, CHE-1984, CHE-1988) | 40 | yes: `handler/issue_workflow_no_start_test.go` TestNoStartKeepsHandoffRunForADifferentHandler | none | upstream/main:server/internal/handler/issue.go:4171 `willRun = willRun && !req.SuppressRun` (single) and :4969 `willRun = willRun && !req.Updates.SuppressRun` (batch) while a workflow handoff (workflowHandoff, issue_workflow_entry.go:35) reassigns to another agent; so the flag silences the new handler's run, same pattern the fork replaced with suppressRunForWrite. Fork code used (handedToAgent, issue_workflow_entry.go:183) also exists upstream. | - | +| 10 | FX106 | Mobile share/copy links use web-404 path /{ws}/issue/; web has no /issue/ redirect | #460 (CHE-1798, CHE-2202) | 41 | partial: `apps/web/proxy.test.ts` covers the web redirect; the mobile link builders are untested | none | upstream/main:apps/mobile/app/(app)/[workspace]/issue/[id].tsx:119 and apps/mobile/components/issue/comment-context-menu.tsx:163 still build `${webUrl}/${wsSlug}/issue/${identifier}`; web only has apps/web/app/[workspaceSlug]/(dashboard)/issues/[id] and apps/web/proxy.ts LEGACY_ROUTE_SEGMENTS (line ~14-60) has no 'issue', so the shared link 404s (same pattern fork changed to /issues/). PR also mixes fork-only decision-link builders (decisiontx/ask.go, decision_record.go, decision_request_api.go, decision_veto_notice.go, util/issue_link.go) that belong in the fork lane. | - | +| 11 | FX082 | Agent PRs not linked to their issue (branch name and Refs/Part of keywords) | #373 (CHE-7, CHE-1988, CHE-1991) | 55 | yes: `repocache/cache_test.go` TestCreateWorktreeBranchCarriesIssueIdentifier | none | upstream/main server/internal/daemon/repocache/cache.go:894 `branchName := fmt.Sprintf("agent/%s/%s", sanitizeName(params.AgentName), taskKey(params.TaskID))` (no issue key in the branch), and server/internal/handler/github.go:1069 closingIdentifierRe only accepts close/fix/resolve keywords; a branch/body without those links nothing. Task.IssueIdentifier exists upstream (daemon/types.go:87). Enhancement more than defect; mixes in one fork-only line (issue_workflow_ci_advance.go workflowHandoffPayload arg, W04) that must be dropped. | - | +| 12 | FX027 | Codex SQLite state-runtime init exit not retried | #101 (CHE-737) | 56 | yes: `agent/codex_test.go` TestCodexExecuteRetriesOnceAfterSQLiteStateRuntimeInitExit | none | upstream/main server/pkg/agent/codex.go:~1535 retrySafe := timedOut && !semanticObserved.Load() && cleanupConfirmed && codexInitializeRetrySupported(): retry only on timeout, so an initialize exit from SQLite state-runtime init is not retried | - | +| 13 | FX137 | Wakeup run inherits a stale workflow step from its registering run | #599 (CHE-2553) | 112 | yes: `service/issue_wakeup_workflow_test.go` TestWakeupFromStaleRunWorksOnTheIssuesStatus | none | upstream/main server/pkg/db/queries/wakeup.sql:206-210 CreateWakeupTask sets workflow_step = COALESCE((SELECT s.workflow_step FROM agent_task_queue s WHERE s.id = delegated_from_task_id ...), issue status): a wakeup copies the registering run step at fire time, so a run already stale when it registers hands that step down every wakeup chain and the guard (issue_workflow_entry.go:152 workflow_step_moved) refuses every status change. | - | +| 14 | FX074 | Repeat delivery of an already-executing task is re-run | #358 (CHE-1972) | 118 | yes: `daemon/duplicate_delivery_test.go` TestRunBatchPollerIgnoresDuplicateDeliveryOfInflightTask | none | upstream/main server/internal/daemon/daemon.go:5470 calls d.handleTask(parentCtx, t, slot) with no running-task guard (activeTasks is only a count); server/pkg/db/queries/agent.sql:882-896 ReclaimStaleDispatchedTaskForRuntime can redeliver. Patch applies cleanly to daemon.go | D08 | +| 15 | FX058 | DM back stack lost on web and desktop | #267 (CHE-1755, CHE-1758) | 120 | yes: `core/chat/store.test.ts` navIntent; `views/chat/chat-page.test.tsx` | none | upstream/main packages/views/chat/chat-page.tsx:125 still has single-state chat navigation without a back stack (store/index.ts shape matches the fork pre-fix). Patch applies with drift: store.ts and index.ts clean, chat-page.tsx hunks 1,2,5,11 need manual rebase | C17 | +| 16 | FX118 | Redactor masks shell references and placeholders as credentials | #531 (CHE-2338, CHE-2340) | 155 | yes: `redact/redact_test.go` TestGenericCredentialValues; `task-transcript/redact.test.ts` | none | upstream/main server/pkg/redact/redact.go:71 `(?i)(?:API_KEY/.../TOKEN)\s*[=:]\s*\S+` -> [REDACTED CREDENTIAL] and packages/core/security/redact-secrets.ts:32 same regex; `TOKEN=$TOKEN`, `TOKEN=$(jq ...)`, `TOKEN=`, `password: ***` are all masked, losing readable commands in transcripts. Fork TS change targets packages/views/.../redact.ts which upstream turned into a re-export, so the TS half must be ported into core/security/redact-secrets.ts. | - | +| 17 | FX050 | Decided open/draft PR snapshots that no conflict rule watches are never re-fetched | #230 (CHE-1395, CHE-1417, CHE-1665) | 280 | yes: `ghsnapshot/recheck_che1665_test.go` (bounded drain through sweepOnce); the catch-up after start has no test | none for the re-check half (query ClaimGitHubPRsDueForRecheck, migration 623, refresh.go sweepRecheck). The wake-rule half (BEHIND/draft/dedupe keys in handler/github.go and service/issue_wakeup_system.go) is fork-only PR-attention code and needs hard: W05; leave it out of the pitch | upstream/main (3794359792) partly fixed it, not fully. server/pkg/db/queries/github_snapshot.sql:46-70 ListStaleUndecidedGitHubPRs still drops a decided snapshot ("A decided snapshot leaves the undecided sweep"); :85-106 ListStaleConflictWatchedGitHubPRs re-checks a decided snapshot only when an enabled `issue_wakeup` rule with condition event `conflicts` links to it (`w.enabled`, :100-105); ghsnapshot/refresh.go:557 is its only caller. A decided open/draft PR with no such rule keeps a stale snapshot indefinitely, so the owner of a PR whose base moved by direct push is not woken. Upstream commit e720fe2219 covers the watched subset only | H05 | +| 18 | FX103 | Table auto-fit remeasured on every remount; thread rail looks up all rows each frame | #455 (CHE-2082, CHE-2174, CHE-2192) | 292 | yes: `rich-table.test.tsx` "auto-fit cost"; `thread-minimap.test.tsx` | none | upstream/main rich-content/rich-table.tsx:129,224-240 measureColumns() runs on every mount, no cache or row-count cap (fork fix caches per content+width, skips >50 rows); thread-minimap.tsx:230-234 loops document.getElementById over all anchorIds each frame (rail was refactored upstream, so that half needs re-cut). | - | +| 19 | FX134 | Mermaid xychart/timeline/pie/radar unreadable in dark mode | #590 (CHE-2294, CHE-2525) | 41 | yes: `editor/utils/mermaid-theme.test.ts` | hard: C46 `packages/views/editor/utils/mermaid-theme.ts` | upstream/main packages/views/editor/mermaid-diagram.tsx:99-118 getMermaidThemeVariables sets only primaryColor/primaryBorderColor/primaryTextColor/lineColor; no darkMode, xyChart, cScale/pie or radar variables (git grep cScale/xyChart upstream/main -- packages empty), so those diagram types keep Mermaid light defaults in dark mode. | - | +| 20 | FX076 | Auto-update never installs while the daemon has a running task | #361 (CHE-1978, CHE-1979) | 57 | yes: `daemon/auto_update_fork_test.go` (installs while busy) | soft: D02 `fork diff calls d.autoUpdateTarget(ctx) (fork-only, introduc` | upstream/main server/internal/daemon/auto_update.go:214-217 `if running := d.activeTasks.Load(); running > 0 { ... return }` before fetchLatestRelease, then trySetClaimBarrier at :253 defers whole upgrade when busy; same pattern the fork removed (install now, only restart waits for idle barrier). A daemon that is always busy never updates. | - | +| 21 | FX129 | Annotation note popup loses draft on touch scroll and does not size on Safari | #571 (CHE-2428) | 58 | yes: `use-comment-annotations.chat.test.tsx` "annotation note drafts" | soft: C20 `(use-comment-annotations.tsx` | upstream/main packages/views/issues/components/use-comment-annotations.tsx:79-84 pointerdown dismisses (setSelection(null); setEditor(null)) for every pointer type incl. touch, and the unconfirmed note lives only in editor state that dismissal drops; :268-271 textarea relies solely on CSS field-sizing-content (no fallback). Same pattern the fork fix replaced. | - | +| 22 | FX148 | Issue detail back-navigation restores wrong comment (pixel offset on virtualized timeline) | #673 (CHE-1857, CHE-2668) | 128 | yes: `use-issue-detail-scroll-anchor.test.ts` (anchor read); `e2e/issue-detail-back-navigation.spec.ts` not run in default CI | none | upstream/main packages/views/issues/components/issue-detail.tsx:3996 Virtuoso initialScrollTop={restoredScrollTop} restores a stored pixel offset (useRestoredScrollOffset, :1490); row heights are estimated until measured, so remount lands on a different comment. Fork e2e: scrollTop 7680 before leaving, 13385 after Back. Not run against upstream. | - | +| 23 | FX088 | Annotation 'Add comment' popup: IME/keystroke lag, iOS menu overlap, hidden under keyboard | #393, #430 (CHE-2077, CHE-2162) | 136 | yes: `use-comment-annotations.ime.test.tsx`; `use-comment-annotations.chat.test.tsx` | soft: C20 `use-comment-annotations.tsx` | upstream/main packages/views/issues/components/use-comment-annotations.tsx:268,273 note textarea is controlled by hook state (value={editing.note}, onChange -> setEditor), so each keystroke/IME update re-renders the whole host page; comment-selection-bubble.tsx:35,51 fixed placement 'top' + offset(8), no pointer:coarse handling (iOS native menu sits above selection) and no visualViewport/keyboard handling. Same pattern the fork fix removed. | - | +| 24 | FX070 | PR close-link repair from CLI | #339 (CHE-1930, CHE-1932, CHE-1933) | 183 | partial: `cmd/multica/cmd_issue_test.go` covers CLI routing and unlink only | soft: H04 `relies on fork actor-aware PR linking and unlink repair` | upstream/main server/cmd/server/router.go:2167 and server/internal/handler/pr_auto_complete.go:536 still auto-complete from PR text with no CLI repair path (no `issue pull-requests link/unlink`) for wrong close links; upstream e7592c57ed (#10057) adds only a per-issue `--pr-auto-complete on|off` flag, which stops completion but does not repair the link; patch applies cleanly to cmd_issue.go | H04 | +| 25 | FX100 | Oversized comment bodies and tables mount synchronously on minimap jump | #447 (CHE-2174, CHE-2191, CHE-2272) | 186 | yes: `comment-card-long-body.test.tsx` | hard: C01 `comment-card.tsx` | upstream/main comment-card.tsx:909,1459 `` mounts the full body with no size cap; rich-table.tsx has no near-viewport deferral. Perf plus a visible behavior change (prefix + 'Show full comment' over 16,000 chars; Cheese accepted for the fork). Mixes an unrelated use-in-page-find keepRangeInView settle loop. | - | +| 26 | FX094 | Offscreen Mermaid/HTML previews stay mounted forever | #432 (CHE-2082, CHE-2132, CHE-2164) | 218 | yes: `editor/mermaid-diagram.test.tsx` MermaidDiagram lifecycle | soft: C46 `mermaid-diagram.tsx` | upstream/main rich-content/lazy-rich-block.tsx:24-26,103 'MOUNT-ONCE LATCH ... never unmounted' plus mounted-block-registry.ts; blocks scrolled past keep their Mermaid SVG/iframe. Deliberate upstream trade-off, so upstream may reject; also upstream issue-detail does not provide RichContentScrollRootProvider (only chat-message-list.tsx:354 does). | - | +| 27 | FX090 | Issue timeline: deep link and find drop virtualization and mount the full list | #409 (CHE-2082, CHE-2132, CHE-2135) | 348 | yes: `issue-detail.test.tsx` (virtualized deep link and find) | soft: C01 `issue-detail.tsx` | upstream/main issue-detail.tsx:1866 `const isFlatTimeline = !!highlightCommentId // find.open;` still switches the whole timeline to a flat full-list render for deep links and in-page find (extra flat scroll paths at :1909-1934); use-in-page-find.ts walks mounted DOM only. Perf cliff on very long threads, same as base of the fork fix. Perf/behavior change, not a crash bug. | - | +| 28 | FX092 | Long thread replies mount together inside one oversized root row | #416 (CHE-2082, CHE-2132, CHE-2149) | 377 | yes: `issue-detail.test.tsx` "virtualizes replies as individual rows" | hard: C01 `issue-detail.tsx`; soft: C20 `416 adds revealAnnotation / pendingAnnotationEdit in issue-d` | upstream/main comment-card.tsx:1503,1521 `{threadRows.map(renderThreadRow)}` renders every reply inside the root's single Virtuoso item, so an oversized thread mounts all replies. Same pattern the fork fix split into per-reply rows. Perf, mixed with annotation-reveal and find-effect changes. | - | ## Fixed upstream | ID | Fix | Fork PRs (CHE) | Size | Upstream commit | Ledger row | | --- | --- | --- | --- | --- | --- | -| FX036 | GPT-6 Sol/Luna usage pricing missing | #143 (CHE-881) | 14 | upstream ba30324e10 "fix(codex): add GPT-6.1 Sol fallback and current model pricing (MUL-7834) (#8996)"; upstream pricing.go:39-40 and packages/views/runtimes/utils.ts:262-263 carry gpt-6-sol/gpt-6-luna rows | - | +| FX036 | GPT-6 Sol/Luna usage pricing missing | #143 (CHE-881) | 14 | upstream ba30324e10 "fix(codex): add GPT-6.1 Sol fallback and current model pricing (MUL-7834) (#8996)"; upstream pricing.go:39-40 and packages/views/runtimes/utils.ts:290-291 carry gpt-6-sol/gpt-6-luna rows | - | +| FX083 | PR check snapshot counts superseded cancelled check runs as failures | #374 (CHE-1994) | 39 | upstream 82492f94d6 'MUL-8510: fix(ghsnapshot): drop cancelled workflow runs that a newer run of the same workflow replaced from the PR rollup (#9860)': upstream/main server/internal/integrations/ghsnapshot/snapshot.go:124 still fetches `check-runs?filter=latest`, and `fetchSupersededSuites` (:208-) drops a cancelled workflow run's suite when a newer run of the same workflow and event exists on the head. It needs the optional Actions read permission; without it nothing is dropped. Same root cause | - | | FX043 | govulncheck: bump Go and x/net | #183 (CHE-1426) | 30 | upstream/main server/go.mod has go 1.26.9 (commit 3bacc41f84) and golang.org/x/net v0.62.0 (commit ca593b3103); both above fork fix (go 1.26.9, x/net v0.60.0) | O12 | | FX097 | Media reconciler claim query claims several rows per statement (nested-loop LIMIT 1 rescan) | #437 (CHE-2162, CHE-2171) | 24 | Upstream 16a067f30a 'MUL-8270: fix(db): keep lease claims within query limits (#9563)' rewrote ClaimNextChannelMediaPendingObjectForReconcile to `WITH due AS MATERIALIZED (... LIMIT 1 FOR UPDATE SKIP LOCKED)` (upstream/main channel.sql:1276-1315), same root cause. Fork's scalar-subquery variant came after; fork main already carries the upstream commit. The PR's decision_delivery_*_test.go edits are fork-only flake fixes. | - | @@ -74,7 +74,7 @@ Covers every merged fork PR whose title type is `fix` or `perf` (195 PRs, groupe | FX031 | Codex zero-tool false-negative CLI-access claims | #114 (CHE-775) | 112 | unverified | soft: D04 `codex.go` | Defect is runtime behavior (Codex claims no CLI access with zero tool calls); upstream codex.go has no equivalent detector but reproducing needs a live Codex run | | FX032 | Codex model catalog and multi-agent v2 resume | #115, #119 (CHE-702, CHE-773, CHE-775, CHE-778) | 458 | unverified | hard: D04 `codex_model_catalog.go` | Upstream execenv/codex_multi_agent.go mitigates multi_agent/multi_agent_v2 but has no model-catalog rewrite; effect depends on Codex CLI runtime behavior and fork gpt-5.6/astra catalog | | FX055 | AGY sessions with NOT_FOUND or malformed-call replay not retired | #249, #279 (CHE-1710, CHE-1715, CHE-1730, CHE-1812, CHE-1815) | 57 | unverified | soft: D05 `retirement uses fork poisoned-session store in daemon` | upstream/main server/pkg/agent/antigravity.go:~193 has the AGY backend, but no poisoned-session retirement path; whether upstream reproduces needs a live AGY run (fork fix relies on runtime-recorded executor errors) | -| FX077 | Tests-only: retry-pending gateway failure starts no coordinator run; failed run removes task temp dir | #366 (CHE-1126, CHE-1984) | 0 | n/a (tests-only change) | none | No production change (0 non-test lines), no defect. Behaviour already exists upstream: upstream/main:server/internal/service/delegated_failure_recovery_test.go:1100 TestFailTaskRetryPendingDoesNotWakeCoordinator, and daemon.go:8576-8580 execenv.RemoveTaskTempDir cleanup. Characterization tests, test-first waived by Cheese; at most an optional upstream test-only PR. | +| FX077 | Tests-only: retry-pending gateway failure starts no coordinator run; failed run removes task temp dir | #366 (CHE-1126, CHE-1984) | 0 | n/a (tests-only change) | none | No production change (0 non-test lines), no defect. Behaviour already exists upstream: upstream/main:server/internal/service/delegated_failure_recovery_test.go:1097 TestFailTaskRetryPendingDoesNotWakeCoordinator, and daemon.go:8576-8580 execenv.RemoveTaskTempDir cleanup. Characterization tests, test-first waived by Cheese; at most an optional upstream test-only PR. | | FX113 | Owner/admin can change a custom issue status category (with confirmation) | #511 (CHE-2148, CHE-2267, CHE-2274) | 366 | unverified | none | Not a defect fix but a capability change: upstream/main:server/internal/handler/issue_status.go:86-88 states UpdateIssueStatusRequest deliberately has no Category (immutable by design) and server/pkg/db/queries/issue_status.sql:74 'key and category are absent on purpose'. Reversing a deliberate upstream invariant is a product decision, so no bug state applies. Handler/UI/realtime code it patches exists upstream. | ## Stays in fork diff --git a/docs/fork/UPSTREAM-OVERLAP.md b/docs/fork/UPSTREAM-OVERLAP.md index a08436a31aee..112b0f2b45fd 100644 --- a/docs/fork/UPSTREAM-OVERLAP.md +++ b/docs/fork/UPSTREAM-OVERLAP.md @@ -3,8 +3,8 @@ Companion to [FORK-FEATURES.md](FORK-FEATURES.md) (CHE-2792). Re-check of every ledger row against current upstream `main`. - Fork `main`: `ee8b37834f56f7219f17d2046c8155a731cb80d8` (2026-11-02 16:33 ICT). -- Upstream `main` pin: `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT). Upstream tag `v0.7.0`: `dbdbb299164347586e2650bb67684a490726a798`. -- Evidence was read at `e8b6a97643ccc35efbcf2a4675c8d088a288ed6e` (2026-11-02 17:44 ICT) and re-verified at the pin `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT): 3 later commits change 55 files (agents UI, collection page, skill-import limit errors; `server/internal/cli/errors.go` gains a 413 kind). Of those 55 files only `packages/views/chat/components/chat-session-header.tsx`, `packages/views/layout/index.ts`, `packages/views/search/search-command.test.tsx` and `server/internal/cli/errors.go` are named anywhere in these docs, and none is an upstream line that a status or fix verdict rests on, so no status changed. +- Upstream `main` pin: `73975653323750d04c27047ea9c986ef06bdf6a1` (2026-11-08 13:35 ICT). Upstream tag `v0.7.0`: `dbdbb299164347586e2650bb67684a490726a798`. +- Evidence was read at `e8b6a97643ccc35efbcf2a4675c8d088a288ed6e` (2026-11-02 17:44 ICT) and re-verified at the previous pin `3794359792e1e310d89d0488b46efff66e9d2369` (2026-11-02 19:02 ICT) and at the pin `73975653323750d04c27047ea9c986ef06bdf6a1` (2026-11-08 13:35 ICT). From the previous pin to this pin 134 upstream commits change 1053 files. 48 of the files named in these docs changed. Only those with an upstream line behind a status or fix verdict were re-read: FX120, FX133, FX080, FX106, FX082, FX074, FX058, FX148, FX070, FX036, FX077, W20 and the unknown rows. Result: FX083 is now `fixed upstream` (82492f94d6, #9860); every other status is unchanged; FX131 was re-checked and upstream has no fix. Line numbers moved for FX080, FX082, FX074, FX148, FX070, FX036, FX077 and W20 and are updated. Upstream `e7592c57ed` (#10057, a per-issue `--pr-auto-complete` flag) does not add a CLI link or unlink path, so FX070 stays `present`. - Method: search upstream `main` for the row's code (`git grep`, `git show upstream/main:`, `git log v0.7.0..upstream/main -- `). A title match alone is never `overlaps` or `upstreamed`; the evidence column names the upstream file, symbol or commit. - **fork-only**: no upstream code covers the behavior. **overlaps**: upstream covers part; the recommendation says what the fork still adds. **upstreamed**: upstream covers all of it.