Repository navigation
chore(sync): merge T3 Code tip 3fac5b2ad2 into m3code - #7
Conversation
…cts partway (pingdotgg#47535) Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Codex <codex@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ckticks (pingdotgg#47494) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#47542) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
… stopped (pingdotgg#47519) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#47549) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#47613) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ads slowly (pingdotgg#47609) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ingdotgg#47550) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#47559) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…47553) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…turn ends (pingdotgg#47545) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…age search matches (pingdotgg#47555) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tup details (pingdotgg#47530) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…votes (pingdotgg#47567) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#47336) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…at replies stream (pingdotgg#47579) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#47544) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ms (pingdotgg#47584) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…utoff (pingdotgg#47585) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ollow-up (pingdotgg#47563) Co-authored-by: Julius Marminge <julius0216@outlook.com>
… vertically (pingdotgg#47588) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…pingdotgg#47596) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tgg#47600) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nds prices on unmapped ones (pingdotgg#47605) Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
The opted-in tests reused the layer the shared test setup had already built, so the setting never reached the gate. Follow-up to review finding F2 (CI). yokoten: not-applicable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to review finding F5 (CI). yokoten: not-applicable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…S=vikunja Vikunja is not needed by default. The registry now offers it only when the operator adds `vikunja` to T3CODE_FEATURE_FLAGS (the same flag system that gates TanStack Source). While off it is absent from the standalone tracker list, so web and mobile settings and the MCP issue tools never see it, a connect is refused with an expected unknown-tracker error naming the flag, and issue reads report tracker-unsupported. Saved Vikunja credentials and bindings stay in storage untouched. The https-only, public-address URL policy is unchanged when it is on. yokoten: git grep -i vikunja (registry, connections, IssueService, web/mobile settings, client-runtime issueLinks, MCP toolkit) — every listing and call path reads IssueTrackerRegistry, so gating the registry covers them; no other changes needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…3code CLI updates, service installs, the desktop startup-recovery link, and the web desktop-update fallback pulled from MiaAI-Lab/m3code or pingdotgg/t3code. CLI_RELEASE_REPOSITORY in cliRelease.ts is now the one exported constant (Synur-Tech/m3code) used by the CLI, update errors, startup recovery and the web release links. The standalone installers (install.sh, install.ps1, npm launcher) cannot import it and now name the same repository. Both invariant scripts require exactly Synur-Tech/m3code. yokoten: git grep "MiaAI-Lab/m3code|pingdotgg/t3code" — release/update/download paths fixed; upstream-only workflows, packaging/aur, marketing site, triage prompt, issue templates, docs and test fixtures left as upstream references. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nstaller tests The SSH tunnel test now reads the expected URL from CLI_RELEASES_PAGE_URL, and the install.sh fixture serves the Synur-Tech/m3code release paths. yokoten: git grep "MiaAI-Lab/m3code|pingdotgg/t3code/releases" across tests — only the tunnel and install fixtures exercise the changed repo; desktop updater, marketing and AUR fixtures use their own upstream data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install.sh, install.ps1 and the npm launcher download this fork's CLI from Synur-Tech/m3code but still unpacked it into ~/.t3, upstream T3 Code's home, while the app, service and `t3 update` use ~/.m3. The t3 launcher, runtime launchers list and ownership checks now all derive from ~/.m3; T3CODE_HOME still overrides. An existing ~/.t3 install gets a one-line note and is not moved. check-fork-invariants.sh now also guards the installers and launcher. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SynurDevelopers
left a comment
There was a problem hiding this comment.
[Codex gpt-6.2-sol review]
Changes needed: 4 blocking
This pull request merges upstream T3 Code and restores the fork's security controls and release defaults. Fix the tracker network policy, MCP approval, handoff ref writes, and advertised install sources before merging.
| # | Label | Problem | Why it matters | What to change |
|---|---|---|---|---|
| 1 | issue (blocking) | Check the address each tracker request connects to | The Jira and Vikunja checks inspect the hostname text. A hostname that resolves to a private address still passes and receives the authenticated request if TLS succeeds. The HTTP client also follows redirects by default. | Enforce the public address policy at connection time and reject redirects or reapply the policy at every hop. Cover both tracker probes and requests made with saved credentials. outboundHost.ts:14 |
| 2 | issue (blocking) | Include retained environment references in MCP approval | The approval scan skips { stored: true }, but the settings service restores that value before launching the MCP server. An agent can keep a sensitive header containing an environment reference and change the server URL without approval. |
Scan the effective configuration with retained values resolved, and bind the approval to that configuration. Add a test that changes the destination while retaining a stored reference. handlers.ts:121 |
| 3 | issue (blocking) | Reject symbolic branch refs before applying a handoff | The checkout check looks for the submitted branch name. If that name is a symbolic ref, Git's update-ref follows it and can move the branch checked out in another worktree. |
Reject symbolic refs and use non-dereferencing, conditional ref writes for both the handoff and its rollback. HandoffGit.ts:392 |
| 4 | issue (blocking) | Point M3 install instructions at M3 artifacts | The documented one-line installers still name pingdotgg/t3code and default to ~/.t3 when fetched. The npm registry also identifies t3@latest as upstream T3 Code, so users following the guide miss the fork's release and home defaults. |
Point the guide and the CLI install fallback at Synur's published installers. List an npm command only if it resolves to the fork's launcher. install.md:23 |
Non-blocking suggestions
- Check the resolved per-repository worktree folder before invoking Git. HandoffImport.ts:85
What I checked
- Round 1 at
cb6cc66169f415a51799b845b6237fcfb0c44672, with417b1e56cfd76bb6eab83184f39669b318047d46as the comparison base. Used the remerge diff for6f4b4c15c8and the follow-up diff from that merge to head. - Traced the prioritized paths for F1–F8, including the exact electron-updater version, workspace entry/file/asset checks, MCP expansion and stored values, handoff branch writes, and the tracker registry and credential flow. Compared the release-age exclusions to upstream and checked that all retained entries appear in the lockfile. Checked the recovery links, installer defaults, and public installer and npm sources.
- The Synur invariant script, shell and launcher syntax checks, and focused
git diff --checkpassed. Ran the fork invariant script as well, whose result is affected by the documented dependency deferral. GitHub reported 27 completed checks with zero failures or pending checks. The findings are based on source traces and read-only checks. I did not run the app, install packages, or rerun the test suites. - Coverage is partial. I did not audit upstream-only changes, translation catalogs, lockfile contents beyond the exclusion check, or all merge resolutions outside the prioritized paths. In particular, I did not review the mobile native and font stack, relay and Connect changes, provider adapters outside the environment paths above, database upgrade behavior, or every web, documentation, and telemetry-removal hunk.
|
[Codex gpt-6.2-sol review] Changes needed: 4 blocking This pull request merges upstream T3 Code and restores the fork's security controls and release defaults. Fix the tracker network policy, MCP approval, handoff ref writes, and advertised install sources before merging. |
SynurDevelopers
left a comment
There was a problem hiding this comment.
[Own review — Claude Opus 5.5]
Approved, not auto-approved: an own review cannot approve a PR, and Codex's 4 blocking findings (review 6180555416) are confirmed and still stand.
This PR merges upstream T3 Code into the fork and fixes up the result. It should not merge until Codex's 4 blocking findings are fixed; this review adds no blocking items of its own.
The orchestrator checked each of Codex's 4 blocking findings against the code at cb6cc66169 and confirmed all of them. Two notes below add detail to Codex's threads rather than opening new ones.
Notes on Codex's threads
- Codex #1, outbound host check (
packages/source-control-core/src/shared/outboundHost.ts:14): besides redirects and DNS, these IPv6 literal forms are not treated as private:::7f00:1,::ffff:0:7f00:1,64:ff9b::/96(NAT64),2002::/16(6to4, which can embed a private IPv4 address), andfec0::/10(site-local). For rejecting redirects there is a precedent:FetchHttpClientwithRequestInit {redirect: "error"}inUsageLimitSources.ts:187andtextGeneratorDrivers.ts:87. If DNS results are not checked, SECURITY.md and the PR body should say the check covers literal hosts only. - Codex #2, MCP approval message (
apps/server/src/mcp/toolkits/environment/handlers.ts:164-169): the message shows onlycommand ?? urland the variable names. Name the field that holds each${…}reference (args, env, headers, or oauth) so the user knows where the secret goes.
Non-blocking suggestions
Most items have an inline comment on the code. GitHub cannot attach comments to files past the first 3,000 in this PR, so items marked "details below" are written out in full in the next section. N16 and N18 appear only here.
- N3: workspace check runs on every search keystroke and after a disk read.
- N4: Vikunja token cannot be removed while its flag is off.
- N5: MCP servers dropped for withheld variables are only logged.
- N6:
DO_NOT_TRACKno longer reaches provider CLIs. - N7: knip skips four fork-only workspaces. (details below)
- N8: invariant check F5 misses the two-step
HostProcess.Environmentspread. (details below) - N9: MCP-references check passes if its file is renamed. (details below)
- N10: installer fails after a full download when an upstream launcher exists. (details below)
- N11 (question): AssetAccess and WorkspaceFileSystem disagree on cross-workspace symlinks.
- N12: duplicated add-project logic misses upstream's navigation guards. (details below)
- N13: "M3 Chat" should be "T3 Chat". (details below)
- N14: user docs link to the deleted
telemetry.mdand a missingt3 feedbackcommand. (details below) - N15:
apps/docsstill points at upstream's site and repo. - N17: mobile disk warning still says "T3 Code".
- N16: the PR body is out of date. Item 12 says mobile stays at 2.3.1, but the head is 2.4.0 (
41a529560d). Item 16 sayscli/update.tsnames MiaAI-Lab, but it now names Synur-Tech (10eea9a978). - N18 (low):
pinnedRuntime.test.ts:613andtunnel.test.ts:398build the expected URL from the constant under test, so they cannot catch a wrong constant. The German string forallowAgentAutoEnableScheduledTasksmixes in the formal register ("bis Sie"). Some docs still say "T3" for the product (background-service.md:29,updating.md:51,thread-sidebar.md:16,28,remote-access.md:70,111,terminal.md:7,devices.md:49,62,html-renders.md:15). Three mobile comments still mention DM Sans.
Findings GitHub could not attach to a line
N7 (scripts/knip-check.ts:20) suggestion (non-blocking): EXPORT_WORKSPACES lost the fork-only workspaces in the upstream merge.
Why it matters: Knip (the unused-export checker) no longer scans provider-noname, provider-omp, issue-tracker-vikunja, or apps/m3-server. Dead exports in those packages will go unnoticed.
What to change: Add those four workspaces back to the list.
N8 (scripts/check-synur-invariants.sh:229) suggestion (non-blocking): Check F5 only catches the inline spread of HostProcess.Environment.
Why it matters: It flags ...(yield* HostProcess.Environment) but not const environment = yield* HostProcess.Environment; followed by ...environment. That two-step form exists today, for example LocalDeviceHost.ts:181,734, SimlockDeviceHost.ts:316, DocumentText.ts:81, TaskFolders.ts:531, GitVcsDriverCore.ts:1382, and externalLauncher.ts:901-904. So the check promises more than it enforces.
What to change: Flag the binding itself and keep an allowlist of reviewed files, or narrow the F5 description to the inline form only.
N9 (scripts/check-synur-invariants.sh:115) suggestion (non-blocking): The MCP-references check passes silently if mcpEnvironmentReferences.ts is moved or renamed.
Why it matters: If the file is gone, the grep finds nothing and the check reports success. The guard turns off without anyone noticing.
What to change: Fail when the file does not exist, the same way the cliRelease.ts check does.
N10 (scripts/install.sh:274) suggestion (non-blocking): A user with an old ~/.local/bin/t3 that points into ~/.t3 downloads everything, then hits a hard failure.
Why it matters: The ownership check at scripts/install.sh:334 runs after the download and stops with "another t3 is already at…". The user wastes the download and gets no hint that the old launcher came from upstream T3 Code.
What to change: Check launcher ownership before downloading, or name the upstream launcher in the error and say how to remove or replace it. Add a test that starts with an existing ~/.t3 launcher.
N12 (apps/web/src/hooks/useAddProjectAtPath.ts:98) suggestion (non-blocking): This hook duplicates the add-project logic in CommandPalette.tsx and misses upstream pingdotgg#44930's navigation guards.
Why it matters: Upstream added captureProjectOpen / isCurrent() and only navigates if the pathname has not changed. Without them, this hook can navigate the user away up to 3 seconds after createProject, even if they have moved on. DraftHeroHeadline.tsx:77 uses this unguarded hook. Separately, apps/web/src/components/CommandPalette.tsx:1772 calls openAddProjectDialog() without addProjectDraftId, so the draft is dropped.
What to change: Make the hook the single copy, port the upstream guards into it, and have CommandPalette.tsx (around line 2131) call it. Pass the draft id at line 1772.
N13 (packages/client-runtime/src/relay/errorPresentation.ts:92) suggestion (non-blocking): The message says "link a paid M3 Chat account"; it should say "T3 Chat".
Why it matters: The tunnel limits come from T3CHAT_PLAN_TUNNEL_LIMITS. M3 Chat does not exist, so the user cannot act on the message.
What to change: Change "M3 Chat" back to "T3 Chat" and regenerate the catalogs.
N14 (docs/user/README.md:118) suggestion (non-blocking): The docs index links to telemetry.md, which this PR deletes, and advertises features the fork removed.
Why it matters: This line promises telemetry opt-outs, agent feedback, and OTLP export. docs/user/diagnostics.md:22 has the same dead link, and docs/user/cli.md:52 documents a t3 feedback command that does not exist.
What to change: Remove the line here and the link in diagnostics.md, and drop the t3 feedback row from cli.md.
Not raised on purpose: the "M3 Connect" rename in registry.ts:1085 (Connect branding waits on an owner decision) and the Android APK links to MiaAI-Lab in docs/user/install.md:74,78 (waiting on an owner question).
What I checked
- Seven parallel read-only reviewers (code-review skill) covered:
- P1: post-merge commits
6f4b4c15c8..cb6cc66169inapps/serverandpackages(68 files). - P2: post-merge commits in desktop, web, mobile, client-runtime, scripts, installers, and docs (52 files), plus all 33 regenerated i18n catalogs (key parity checked).
- P3a, P3b, P4a, P4b: every conflict resolution in merge
6f4b4c15c8, viagit show --remerge-diff(449 files, excluding i18n JSON andpnpm-lock.yaml). - P5: invariant sweep of upstream code that merged without conflict, across the head tree.
- P1: post-merge commits
- Upstream T3 code itself was not reviewed line by line.
- Not read in full:
Orchestrator.ts,ClaudeAdapterV2.ts,CodexAdapterV2.ts,terminal/Manager.ts,ScheduledTaskService.ts,AgentSessionScanner.ts,ws.ts,McpHttpServer.ts,server.ts,antigravityUsageLimits.ts, contractsrpc.ts/orchestrationV2.ts/settings.ts(hunks only), the opencode v2 adapter,DesktopBackendManager.ts, Forgejo CLI and provider files, andHostResources.test.ts(skimmed). Docs remerge hunks were checked by script after normalising branding. - Static review plus read-only scripts:
check-synur-invariants.shexits 0;check-fork-invariants.shexits 1 only on the deferred@clerk/expopackageExtensions. - No test suites were run locally (no
node_modules). CI is green on the head.
- Trackers: Jira and Vikunja requests refuse redirects and refuse a host
whose DNS answers include an internal address; embedded-IPv4 and
site-local IPv6 forms count as internal. DNS rebinding between lookup
and connect is documented in SECURITY.md, not claimed closed.
- Vikunja credentials can be removed while its flag is off.
- MCP approval scans the effective config with kept { stored: true }
values resolved, binds the digest to it, re-checks inside the lock,
and names the field that holds each ${VAR}.
- Handoff refuses symbolic branch refs, writes and rolls back with
update-ref --no-deref and old-value conditions, and checks the
resolved worktree folder stays under the worktrees directory.
- Install instructions and CLI fallbacks point at the fork's
installers; npx t3@latest advice removed (one translated desktop
string left for catalog regeneration).
- DO_NOT_TRACK forwarded again; knip covers fork-only workspaces;
invariant check fails closed when its file is missing and F5's
message says it covers the inline spread only; AssetAccess refuses
out-of-root links unless out-of-workspace reads are allowed.
- Docs: drop dead telemetry links and the nonexistent t3 feedback row.
Trade-offs (senior-dev Mode B): the tracker check is a deny-list beside
McpWebhookTransport's allow-list and leaves the shared host classifier
unchanged to keep upstream merges clean; trackers on hosts that resolve
to private addresses (VPN, split DNS) are now refused; AssetAccess now
refuses links into other known workspaces when out-of-workspace reads
are off.
Not run locally (no node_modules): tests, typecheck, lint. CI is the check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
knip now checks provider-omp: stop exporting its internal OMP_PROVIDER and OMP_FLAVOR, and drop the unused OmpAdapterV2Driver. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
knip: drop the provider-pi entry re-export of createPiAdapterV2Driver, unused now that provider-omp no longer builds an adapter V2 driver. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply oxfmt formatting to four changed files, and import node:dns/promises under the namespace name the t3code lint rule expects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
cursor review Fixed this round:
|
SynurDevelopers
left a comment
There was a problem hiding this comment.
[Own review — Claude Opus 5.5, round 2]
Changes needed: 3 blocking
This head fixes most of round 1. The tracker address check, saved MCP secrets and the install docs still need work before merge, so it is not safe to merge yet.
Blocking
| # | Label | Problem | Why it matters | What to change |
|---|---|---|---|---|
| R1 | issue | The tracker address check resolves DNS, then the HTTP client resolves it again on its own. | A name that changes its answer between the two lookups (DNS rebinding) can still reach an internal address, and the request carries the credential. | Do the address check inside the connection's own lookup and keep TLS hostname checks, as apps/server/src/mcp/McpWebhookTransport.ts:102 does. packages/source-control-core/src/server/outboundAddress.ts:36 |
| R2 | issue | Kept ${…} values are checked before the settings write lock, and not at all when there is no thread lock. |
A concurrent write can change what the saved {stored: true} markers keep, so values nobody approved get stored. |
Check approved references inside the same serialized settings write (apps/server/src/serverSettings.ts:1473) for both the project and environment paths. apps/server/src/mcp/toolkits/environment/handlers.ts:479 |
| R3 | issue | The Intel Mac source steps and the desktop Releases link point at pingdotgg/t3code. |
M3 users install upstream T3 Code instead of this fork. | Point them at Synur-Tech/m3code, label upstream package-manager options as T3 Code, and leave the Android APK links for now. docs/user/install.md:39 |
Non-blocking
- R4 suggestion: the worktree-path refusal returns before the uploaded bundle is cleaned up. Run the check inside the cleanup scope.
apps/server/src/peer/handoff/HandoffImport.ts:98 - R5 suggestion:
npx t3 triagepulls the upstream npm package. Uset3 triageand the fork installer. Also checknpx t3@<version>indocs/operations/03_release.md:15.docs/user/triage.md:14 - R6 question:
listreturns only enabled trackers, so a switched-off Vikunja credential has no Disconnect button in Settings.apps/server/src/issue/IssueTrackerConnections.ts:190 - R7 suggestion: the local-use NAT64 prefix
64:ff9b:1::/48(RFC 8215) is not treated as internal.packages/source-control-core/src/shared/outboundHost.ts:40
What I checked
- Re-reviewed
cb6cc66169..6f3697794b: 45 files, and I read every changed line. - Confirmed fixed from round 1: B1, B2, B3, B4, N4, N6, N7, N8, N9, N11, N14.
- Ran 25 address edge cases against scratch copies of
outboundHost.ts. That is how I found R7. - Codex (gpt-6.2-sol) also re-reviewed this head. Its review was not posted to GitHub, so this review carries its findings: R1, R2 (which I also confirmed), R3 and R4.
- Limits: I did not run vitest, because
node_modulesis not installed in this worktree. Tests and typecheck rely on CI.
Findings on files GitHub cannot comment on
This PR changes more than 3,000 files, and GitHub accepts inline comments only on the first 3,000. These findings are here instead, each with a link to the line.
R1: packages/source-control-core/src/server/outboundAddress.ts:36
issue (blocking): The address check and the real connection each look up the hostname separately.
Why it matters: reachesInternalNetwork resolves the name, and then the HTTP client resolves it again when it connects. A server that changes its DNS answer between the two lookups (called DNS rebinding) can pass the check with a public address and then receive the request, credential included, at an internal one such as 127.0.0.1 or a cloud metadata address. The doc comment above says this gap stays open.
What to change: Run the same check inside the connection's own lookup option, so the address that was checked is the address that gets used. Keep the hostname for TLS so certificate checks still work. The repo already does this in apps/server/src/mcp/McpWebhookTransport.ts:102.
R3: docs/user/install.md:39
issue (blocking): The Intel Mac source steps and the desktop "GitHub Releases" link still point at pingdotgg/t3code.
Why it matters: M3 users who follow these steps clone and install the upstream T3 Code app, not this fork. That gives them a different build, and it does not have this fork's fixes.
What to change: Point the runbook link, the git clone URL and the folder name (lines 39–43), and the Releases link (line 49) at Synur-Tech/m3code. Label any upstream package-manager options that stay as T3 Code. Leave the Android APK links as they are until the owner answers that question.
R5: docs/user/triage.md:14
suggestion (non-blocking): npx t3 triage downloads the upstream t3 package from npm, not this fork.
Why it matters: An M3 user who is trying to fix a broken install would run triage from a different product.
What to change: Use t3 triage on lines 14, 16 and 17, and point to the fork's installer. Also check npx t3@<version> in docs/operations/03_release.md:15, if that line describes M3's own release.
R7: packages/source-control-core/src/shared/outboundHost.ts:40
suggestion (non-blocking): The local-use NAT64 prefix 64:ff9b:1::/48 is not treated as internal.
Why it matters: NAT64 is a way to reach IPv4 hosts through IPv6 addresses. RFC 8215 sets aside 64:ff9b:1::/48 for networks to use internally. Today 64:ff9b:1::a00:1, which maps to 10.0.0.1, returns false, so a private address gets through.
What to change: Treat every address in 64:ff9b:1::/48 as internal.
- Tracker connections resolve through a lookup that refuses internal
addresses, closing the DNS rebinding gap after the pre-flight check (R1).
- MCP server writes validate kept ${...} references inside the serialized
settings write, for both project and environment paths (R2).
- Install docs point Intel Mac source builds and desktop releases at the
fork and label upstream package-manager builds (R3).
- Handoff import removes the uploaded bundle on every exit, including the
worktree-path refusal (R4).
- Triage docs use the installed t3 command instead of npx (R5).
- Local-use NAT64 64:ff9b:1::/48 is treated as internal (R7).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gsUpdate) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Replies to the round 2 findings that sit in the review body (review 6181379216), because GitHub cannot take inline comments on those files:
CI is green on d04e11c (one lint fix commit after the round's push). |
|
cursor review Fixed this round:
|
SynurDevelopers
left a comment
There was a problem hiding this comment.
[Codex gpt-6.2-sol review]
Approved
This round fixes all four earlier findings: tracker connections check resolved addresses, MCP writes check retained references under the settings lock, the install links point to M3 Code, and rejected handoff uploads are cleaned up. The reviewed changes are ready to merge, with one optional documentation improvement.
Non-blocking suggestions
- Make the M3 Code download path clear before the package commands. docs/user/install.md:49
suggestion (non-blocking): Make the M3 Code download path clear before the package commands.
Why it matters: The opening line presents package managers as another way to install M3 Code. A reader who copies the first command before reaching the note below the table installs upstream T3 Code.
What to change: Lead with the M3 Code release downloads and label the Homebrew, winget, Scoop, AUR, and Nix commands as upstream T3 Code before readers reach them.
What I checked
- Reviewed all 17 files in
6f3697794bd1fd1bb6998af36fc7f7cb632eb562..d04e11cab287d2c3981fb14c24c6081b87271301. - Traced the Jira, Linear, and Vikunja clients through the issue tracker registry to the Node connection lookup. The checked addresses go to the connection, and TLS still verifies the original hostname.
- Traced environment and project MCP writes through the settings lock. Checked the new tests for a retained reference changing before the save.
- Checked the desktop and Intel Mac links, plus cleanup of pending handoff uploads when path validation fails.
git diff --checkpassed. GitHub showed 27 passing checks on this commit. I reviewed the code and tests without running the local suites because dependencies were absent.
|
[Codex gpt-6.2-sol review] Approved This round fixes all four earlier findings: tracker connections check resolved addresses, MCP writes check retained references under the settings lock, the install links point to M3 Code, and rejected handoff uploads are cleaned up. The reviewed changes are ready to merge, with one optional documentation improvement. |
SynurDevelopers
left a comment
There was a problem hiding this comment.
[Own review — Claude Opus 5.5, round 3]
Approved, not auto-approved: the own review is not an approval source for the merge gate.
The round-3 changes (6f3697794b..d04e11cab2, 17 files) fix all three blocking findings from round 2: tracker DNS rebinding is closed by a checked lookup on the connection itself, MCP approval is re-checked inside the serialized settings write, and the install.md links work. They also fix R4, R5 and R7, so no blocking findings remain, and the two suggestions below can wait for a later PR.
Non-blocking suggestions
- suggestion (non-blocking): The redirect tests check a setting that production no longer uses. The Jira and Vikunja trackers now run on Effect's
node:httpclient. That client ignoresFetchHttpClient.RequestInit { redirect: "error" }. Production is still safe: the node client does not follow redirects, and a 3xx response (a redirect) is refused. But the code comment names the wrong mechanism, and the tests (JiraIssueTracker.test.ts:209-223,VikunjaApi.test.ts:111) would still pass if someone later addedHttpClient.followRedirects. What to change: add a test that a 302 response sends exactly one request and fails, and reword the comment to name the real reason redirects are refused. JiraApi.ts#L346, VikunjaApi.ts#L357 - todo (non-blocking): No test checks how the refusing client is wired in.
IssueTrackerRegistry.ts:109-116depends on the order in which layers are provided, because the drivers readHttpClientwhen their layer is built. A later reorder could silently drop the protection. What to change: add one registry-level test with a stubbed DNS lookup that resolves to127.0.0.1, and assert that no request is sent. IssueTrackerRegistry.ts#L109
What I checked
- Every changed line of the 17 files in the round-3 changes.
- R1 (DNS rebinding): reproduced in Node 24.10. An
https/httpAgent with the custom lookup refuseslocalhost, and the TLS servername is still the original hostname. No new dependency:@effect/platform-nodewas already a dependency. - R2 (MCP approval): no deadlock. The approval prompt is awaited before any lock is taken, and locks are always taken in the same order (thread, then settings). The approval digest is bound to the settings snapshot read under the lock.
- R3–R5, R7: verified against the code.
SECURITY.mdmatches the code.- Not run: typecheck and Vitest (no
node_modulesin this checkout). CI is green on this head. - Coverage carried forward: round 1 covered seven partitions over the post-merge commits, all 449 conflict resolutions, and an invariant sweep of auto-merged upstream code. Rounds 2 and 3 reviewed each delta on top of that.
SynurDevelopers
left a comment
There was a problem hiding this comment.
[Gemini 4 Neon review]
Independent review of d04e11cab287d2c3981fb14c24c6081b87271301 across three areas: security & trust boundaries, fork invariants / migrations / CI, and Round 2 fixes (R1–R7) & client surfaces. No blocking defects found.
Verified
- Security & trust boundaries:
internalAddressRefusingLookupwired for Jira/Linear/Vikunja (closing DNS rebinding while keeping TLS hostname verification);outboundHost.tsblocks internal IPv4/IPv6, embedded IPv4, site-local, and64:ff9b:1::/48; MCP server writes validate retained${VAR}references insidewriteSemaphore.withPermits(1)withEffect.catchTagspreservingOrchestratorMcpFailure;HandoffGitrefuses symbolic branch refs and usesupdate-ref --no-deref;HandoffImportvalidates managed worktree paths and cleans up pending uploads on every exit;WorkspaceFileSystemandAssetAccessenforce known-workspace containment and gate out-of-root symlinks onallowOutOfWorkspaceFileReads;ElectronUpdaterusesPrivilegedDebInstall.privilegedEnv(explicit allowlist) rather than spreadingprocess.env. - Invariants & migrations:
scripts/check-synur-invariants.shexits0; migrations139–149(with clean gap at144for droppedAgentFeedbackErrorCode) have no collisions with fork IDs081,082,125; zero active Clerk/Sentry/PostHog/OTel/expo-observe/axiom dependencies inpackage.jsonorpnpm-lock.yaml;DEFAULT_RUNTIME_MODEstays"approval-required"; Claude OAuth scraper stays disabled;ci.ymluses GitHub-hosted runners and 20/20 CI checks are green. - Round 2 & client surfaces:
docs/user/install.mdanddocs/user/triage.mdupdated toSynur-Tech/m3code/t3 triage;DO_NOT_TRACKandT3CODE_FEATURE_FLAGSforwarded in desktop shell env; Web and Mobile Security & isolation settings remain gated onaccess:write.
Non-blocking suggestions (address in this PR or a follow-up)
scripts/check-fork-invariants.sh:22vspnpm-workspace.yaml:209,212(suggestion, non-blocking): Runningscripts/check-fork-invariants.shlocally exits1becausepnpm-workspace.yamlretains the two inert ClerkpackageExtensionsentries (@clerk/expo@*,@clerk/expo-native-components@*) for upstreampackageExtensionsChecksumparity. Not a runtime or CI blocker (ci.ymlrunscheck-synur-invariants.sh, which exits0, andupstream-sync.ymlis manualworkflow_dispatch), but manualupstream-sync.ymlruns will failverifyuntil either those entries are removed on the nextpnpm installorcheck-fork-invariants.shignores inertpackageExtensions.apps/server/src/serverSettings.ts:1579-1587(suggestion, non-blocking):updateMcpServerEntryrunsbuild(settings)(which can consume a one-timesecretRef) beforepersistSettingsUpdatechecksOption.isSome(parseFailure). Failing immediately after the initialreloadSettingswhenparseFailureisSomeavoids consuming asecretRefon a corruptsettings.json.packages/source-control-core/src/shared/outboundHost.ts:68-71(suggestion, non-blocking): Consider also blocking IPv4 multicast/reserved (224.0.0.0/4,240.0.0.0/4) and IPv6 multicast (ff00::/8) to align withhostClassification.ts.docs/user/install.md:76,80(suggestion, non-blocking): Mobile APK release links still point toMiaAI-Lab/m3code(update toSynur-Tech/m3codeif APKs are published from this fork).
|
[Gemini 4 Neon review] Approved — good to go. Independent three-area review (security & trust boundaries, fork invariants/migrations/CI, and Round 2 delta/client surfaces) on |
MiaAI-Lab/m3code is 2571 commits behind pingdotgg/t3code and has stopped tracking it closely. So this branch merges T3 Code's tip (
3fac5b2ad2, 2026-12-02) straight into Synur main. It is a merge (--no-ff); no history is rewritten. The policy: T3's code wins by default, and the fork's deltas are re-applied on top of it. Those deltas are M3 naming and paths, the telemetry/Clerk/feedback removal, Synur's security hardening, fork CI, and MiaAI's feature work.Conflicts (392 files)
routineSpanand MCP analytics stripped. Security deltas re-applied. Migrations renumbered (below).~/.m3). Fork-only sections kept. Telemetry and feedback docs left out.baseUrland T3's credentialfields.i18n:generatein 3b3d902.Lockfile. This is T3's
pnpm-lock.yamlwith these changes: Clerk, axiom, expo-observe, expo-auth-session, aws4fetch and dm-sans pruned; the fork-only workspace importers added (provider-omp, provider-noname, issue-tracker-vikunja, m3-server); and the Tech Moca fonts added from the fork's lockfile. It was edited by script, not by pnpm, because a localpnpm installwould have fetched about 600 new upstream packages and that needs approval. CI's frozen install is the first real check of it.packageExtensionskeeps upstream's two inert Clerk entries so thatpackageExtensionsChecksummatches.Migrations. Fork id = T3 id + 23. T3's new migrations 116–126 are fork 139–149. T3 121
AgentFeedbackErrorCodealters the removedagent_feedbacktable, so it is not included and 144 is left empty, matching the existing gap at 131. Existing fork ids are unchanged.Judgement calls that need review
Security / Synur invariants
apps/desktop/src/electron/ElectronUpdater.ts(new in T3) passes...process.envto pkexec/sudo when installing the.debupdate. It is added toreviewed_env_spreadsin a separate commit.WorkspaceFileSystem: T3 lets a workspace-relative path follow a symlink out of the root, read-only. The fork's rule stays: that is refused unlessallowOutOfWorkspaceFileReadsis on.AssetAccess: T3's out-of-root link grant now also goes throughisAllowedByWorkspacePolicy.Telemetry, feedback, Clerk (removed again where T3 added them)
5. Removed: T3's agent-feedback Labs row,
feedback_requestcards, Codex/feedback, the MCPToolFailuresanalytics,withToolAnalytics/withToolSpans, the WelcomePageTelemetryNotice, thetelemetrymanaged-policy key, relay account-deletion emails (AccountEmails.ts), mobile connection-traces and crash-report settings, and the desktop OTel export.6. T3's
resourceTelemetry/*imports now point at the fork's renamedresourceMonitor/*(HostResources, NativeMonitorClient).7.
T3CODE_FEATURE_FLAGSis forwarded to the desktop backend again. The fork had dropped it along with telemetry, but feature flags and GitHub App sign-in read it.Fork features rebuilt on T3's code
8. Antigravity: T3 shipped its own
agy usageprobe, so it replaces the fork's (88bcc1c, b1a1fbb). T3's removal of the Zed client impersonation and its managed-update path were also taken.9. Forgejo: T3 did a fuller
tea→gtmigration, which replaces the fork's (c2621b9).10. Issue trackers: T3's
probeCredential(credential)with{token, fields}is merged with Vikunja's separate base URL intoprobeCredential(credential, baseUrl?).credentials.getreturnsOption<IssueTrackerCredential>and the optionalgetBaseUrlis kept. In web settings, Vikunja's server URL is now one field of T3's credential form.11. Mobile fonts: Inter and JetBrains Mono are the defaults on both platforms (T3 defaulted to SF Pro on iOS). T3's Meslo stays as an option, and the fork's monospace switch still applies.
12. Mobile style conflicts went to the fork's Tech Moca classes (ReadOnlyComposerBar, ProposedPlanCard, ComposerAttachmentStrip, environment rows). The mobile app version is 2.4.0 (raised from 2.3.1 in 41a5295; T3 is at 2.4.1).
13. Web: the command palette's add-project uses T3's draft-aware flow, and the fork's Add project dialog also adopts drafts.
14. Startup shell probe: T3's
FNM_MULTISHELL_PATHis taken, with the fork's 15 s timeout (T3 uses 5 s).15.
apps/server/src/provider/agentContextBudget.jsoncombines T3's three values with the fork'smcpLeanToolListJsonBytes. It needs regenerating fromAgentContextBudget.test.ts.Branding
16. New T3 strings are rebranded "M3 Code" in agent-facing text, CLI messages, docs and UI.
cli/update.tsnamesSynur-Tech/m3code(10eea9a).17. Mobile and client-runtime keep the fork's "M3 Connect" copy, while docs use "T3 Connect". This mismatch predates the merge.
18. Left as they were: the
HandoffGitcommit identity (T3 Code), SSH~/.t3/runtimeon remote hosts (the launcher still uses it), and marketing site copy.Patch queue
origin/synur/patch-queueholds one commit, 3175a95. It is a cherry-pick of 5c1c346, which main already contains, so it was empty on top of the merge and was skipped. It is obsolete.Verification
scripts/check-synur-invariants.shpasses, after the reviewed-env commit.agent-context-increaselabel.Follow-up commits after the merge (fixes for CI fallout):
Mtype, plus a duplicate import.StandaloneIssueTrackerApiimport, theisMcpInvalidParamsguard, and the HostResources test the merge left empty.<svg>, thePluralfallback, the add-projectonClick, and a duplicate sidebar empty state.SettingsRownavigates withCommonActions, because TypeScript stops resolving a union of more than 25 route names.m3code.servicename, the opt-in for out-of-workspace reads, the fork's text-fallback policy and order, and Claude's newenabledfield.Extra judgement calls from CI fixes (please review): the sidebar's second "No projects yet" empty state was removed. It was a leftover the merge kept, and it was already duplicated on main. The projectGrouping test fixture names the real
t3tools/t3coderepo "T3 Code" again.Review fixes
WorkspaceEntriesfollows out-of-root links only whenallowOutOfWorkspaceFileReadsis on, and its four entry points check the cwd against known workspaces. One fail-closed helper reads the setting for WorkspaceEntries, WorkspaceFileSystem and AssetAccess. Adds an AssetAccess gate test.${VAR}expansiont3_mcp_server_updatewrites containing${…}ask for approval through the existing MCP approval flow, and are refused when the client cannot ask.check-ref-format --branchrules in the contract and again in HandoffGit.--is passed before worktree paths, because--end-of-optionsisn't supported byworktree addbefore git 2.44. Worktree folder names are sanitized. The ref-write scope is documented in SECURITY.md instead of using ahandoff/prefix, which would break same-branch moves. Adds a rollback test.host_env_handovernow catchesHostProcess.Environmentspreads and?? process.env/?? hostEnvironment. The Codex and Claude fallbacks are narrowed, and the remaining hits are allowlisted with reasons. New checks cover telemetry/Clerk SDKs, the file-read default, the release repo and MCP env expansion. The ElectronUpdater entry is removed.minimumReleaseAgeExcludeentries match upstream and are pinned in the lockfile, so they are kept. The@clerk/expopackageExtensions are kept, because removing them changespackageExtensionsChecksumand breaks the frozen install. apps/docs configures no Blume analytics, so nothing is injected.credential.fields.url, with fallback field → legacy secret →T3CODE_VIKUNJA_URL. RemovesprobeCredentialbaseUrl,getBaseUrlandrequiresBaseUrl.CLI_RELEASES_PAGE_URL.T3CODE_FEATURE_FLAGSincludesvikunja(the flag system that already gates TanStack Source), and connecting still needs its server URL and token. While off, the registry leaves it out, so settings (web and mobile) and the MCP issue tools never list it. A connect is refused withunknown-tracker, and the message names the flag. Issue calls reporttracker-unsupported. Saved credentials and bindings stay in storage, unused. The strict URL policy (https only, no private hosts) is unchanged.CLI_RELEASE_REPOSITORYincliRelease.tsis the one exported constant, set toSynur-Tech/m3code. The CLI,t3 updateerrors, the startup-recovery link and the web desktop-update fallback all use it.install.sh,install.ps1and the npm launcher can't import it, so they name the same repo. Both invariant scripts require exactlySynur-Tech/m3code. Upstream-only references are left as they are: upstream-gated workflows, AUR packaging, marketing site, triage prompt, issue templates, docs links and test fixtures.install.sh,install.ps1and the npm launcher default to~/.m3(matchingDEFAULT_HOME_DIRNAME), so the launcher they write,runtime/versions,runtime/launchersand the<home>/bin/t3ownership check agree with the app, service andt3 update.T3CODE_HOMEstill overrides; thet3command name and~/.local/binare unchanged. An existing~/.t3/runtime/versionsgets a one-line note and is not moved.check-fork-invariants.shnow also guards the installers and launcher. Tests cover the default home with and without~/.t3; user docs and MIA_CHANGELOG updated.Left out:
@clerk/expopackageExtensions.Decided: private hosts stay blocked for Vikunja, which is now opt-in. Releases come from
Synur-Tech/m3code.Review round 1 fixes (0a73ad4)
Codex's four blocking findings (review 6180555416) and most of the own review's suggestions are fixed in one commit. No tests ran locally (no
node_modules); CI is the check. Three follow-up commits fixed CI: knip flagged exports inprovider-ompandprovider-pionce knip covered the fork's workspaces (b1e407b, 7542ea3), and oxfmt formatting plus one lint rename (6f36977). CI is green on 6f36977.::7f00:1,::ffff:0:…,64:ff9b::/96,2002::/16) and site-localfec0::/10now count as internal. The connection still does its own DNS lookup, so a DNS answer that changes in between (DNS rebinding) is not blocked. SECURITY.md says so.{ stored: true }entry keeps, so moving a kept${VAR}header to a new URL asks first. The approval is bound to that full config and re-checked before saving. The prompt names the field that holds each variable, such asheaders.Authorization.update-ref --no-derefwith the expected old value. The worktree folder is checked to stay inside the worktrees directory after symlinks are resolved.Synur-Tech/m3codescripts/install.sh/install.ps1. Advice to runnpx t3@latest(upstream's npm package) is removed. The Android APK links are unchanged.DO_NOT_TRACKT3CODE_TELEMETRY_ENABLEDstays out.apps/m3-server,provider-noname,provider-ompandissue-tracker-vikunjaagain.HostProcess.Environmentspread.allowOutOfWorkspaceFileReadsis on, as in WorkspaceFileSystem. This also refuses links into other known workspaces, which upstream allowed.telemetry.mdand thet3 feedbackrow.Follow-ups. Issues are disabled on this repository, so these are listed here instead of filed:
WorkspaceEntrieschecks known workspaces on every list and search call, after reading the path from disk.const env = yield* HostProcess.Environmentfollowed by...env.install.shdownloads before it checks who owns~/.local/bin/t3, so an upstream launcher fails the install only after the download.useAddProjectAtPathduplicates the command palette's add-project logic and lacks upstream fix(web): keep the current thread open when a folder add finishes pingdotgg/t3code#44930's navigation guards; the palette also dropsaddProjectDraftId.apps/docs/blume.config.tsstill points att3.codesandpingdotgg/t3code.errorPresentation.ts:92says "M3 Chat", should be "T3 Chat"), andDesktopHomeOwner.ts:99(still advisesnpx t3@latest).cli/pair.ts:548buildsnpx t3@<version> pairfor remote hosts, which resolves to upstream's npm package; the fork has no npm package. (docs/user/triage.mdis fixed in round 2.)disabledfield onIssueTrackerConnection,listreturning those trackers, and web and mobile rows that offer only Disconnect for them. That is a contract change plus new UI branches, so it is left out of this sync.docs/operations/03_release.md:15still saysnpx t3@<version>. The whole runbook describes upstream's release pipeline (pingdotgg/t3code,app.t3.codes, the npmnightlytag), so it needs a fork-specific rewrite rather than a one-line change.docs/user/workflows.md:15,docs/user/t3-connect-troubleshooting.md:80(where to open issues), the link text "Install T3 Code" indocs/user/cli.md:5, and the clone URL indocs/operations/00_development.md, which the Intel Mac steps now link to.Review round 2 fixes (34ba318)
The round 2 own review (6181379216) had three blocking findings, and all are fixed in one commit. That review also carried Codex's re-review, which was not posted to GitHub. No tests ran locally (no
node_modules); CI is the check.lookupthat refuses a name when any address it resolves to is internal. So the address the connection uses is the address that was checked. The URL keeps its hostname, so TLS still verifies the certificate. The pre-flight check stays, for its clearer error message. SECURITY.md no longer describes a known rebinding window. Built-in git hosts keep their own client.${…}values checked outside the write lockupdateMcpServer,updateProjectMcpServer). The approved-references check runs inside that write, against the settings it saves over, for both the project path and the environment path. Tests change the saved entry between approval and save, and expect the write to be refused.Synur-Tech/m3code. A note says the Homebrew, winget, Scoop, AUR and Nix packages install upstream T3 Code. The Android APK links are unchanged.npx t3 triagedocs/user/triage.mdusest3 triageand links to the install steps.03_release.mdis follow-up 11.64:ff9b:1::/48(RFC 8215) counts as internal.🤖 Generated with Claude Code