Skip to content

chore(sync): merge T3 Code tip 3fac5b2ad2 into m3code - #7

Open
SynurDevelopers wants to merge 2592 commits into
mainfrom
sync/t3-2026-12-03
Open

SynurDevelopers wants to merge 2592 commits into
mainfrom
sync/t3-2026-12-03

Conversation

@SynurDevelopers

@SynurDevelopers SynurDevelopers commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

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)

Area Files How they were resolved
apps/server 89 (22 delete/modify) T3 code. Telemetry, feedback, routineSpan and MCP analytics stripped. Security deltas re-applied. Migrations renumbered (below).
apps/web 90 T3 code (tagged-template i18n) with the fork's sidebar, settings, inference, Vikunja and M3 branding put back.
apps/mobile 73 (4 delete/modify) T3 code. Tech Moca fonts merged into T3's new font picker. M3 identity kept. Clerk, expo-observe and feedback removed.
docs 50 T3's rewrites, then M3 branding (~/.m3). Fork-only sections kept. Telemetry and feedback docs left out.
packages/* 61 T3 code. Contracts keep the fork's settings defaults, inference, and both Vikunja baseUrl and T3's credential fields.
apps/desktop 22 T3 code with M3 home and app-identity isolation. OTel export removed.
i18n catalogs (30) Union of both sides' keys (T3 wins on the same key). Needs i18n:generate, see Verification.
root, lockfile, infra, scripts, evals, marketing 13 Clerk, axiom and expo-observe dropped from the workspace catalog, overrides and patches.

Lockfile. This is T3's pnpm-lock.yaml with 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 local pnpm install would have fetched about 600 new upstream packages and that needs approval. CI's frozen install is the first real check of it. packageExtensions keeps upstream's two inert Clerk entries so that packageExtensionsChecksum matches.

Migrations. Fork id = T3 id + 23. T3's new migrations 116–126 are fork 139–149. T3 121 AgentFeedbackErrorCode alters the removed agent_feedback table, 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

  1. apps/desktop/src/electron/ElectronUpdater.ts (new in T3) passes ...process.env to pkexec/sudo when installing the .deb update. It is added to reviewed_env_spreads in a separate commit.
  2. WorkspaceFileSystem: T3 lets a workspace-relative path follow a symlink out of the root, read-only. The fork's rule stays: that is refused unless allowOutOfWorkspaceFileReads is on.
  3. AssetAccess: T3's out-of-root link grant now also goes through isAllowedByWorkspacePolicy.
  4. Claude OAuth usage and reset-credit tests from T3 are dropped, and the no-scraping test is kept.

Telemetry, feedback, Clerk (removed again where T3 added them)
5. Removed: T3's agent-feedback Labs row, feedback_request cards, Codex /feedback, the MCP ToolFailures analytics, withToolAnalytics/withToolSpans, the WelcomePage TelemetryNotice, the telemetry managed-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 renamed resourceMonitor/* (HostResources, NativeMonitorClient).
7. T3CODE_FEATURE_FLAGS is 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 usage probe, 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→gt migration, which replaces the fork's (c2621b9).
10. Issue trackers: T3's probeCredential(credential) with {token, fields} is merged with Vikunja's separate base URL into probeCredential(credential, baseUrl?). credentials.get returns Option<IssueTrackerCredential> and the optional getBaseUrl is 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 stays 2.3.1 (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_PATH is taken, with the fork's 15 s timeout (T3 uses 5 s).
15. apps/server/src/provider/agentContextBudget.json combines T3's three values with the fork's mcpLeanToolListJsonBytes. It needs regenerating from AgentContextBudget.test.ts.

Branding
16. New T3 strings are rebranded "M3 Code" in agent-facing text, CLI messages, docs and UI. cli/update.ts now names MiaAI-Lab/m3code.
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 HandoffGit commit identity (T3 Code), SSH ~/.t3/runtime on remote hosts (the launcher still uses it), and marketing site copy.

Patch queue

origin/synur/patch-queue holds 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.sh passes, after the reviewed-env commit.
  • CI on the head commit: Build and Typecheck, Test, Test Web 1–2, Test Server 1–8, Release Smoke, Rust, Mobile Native Static Analysis and Native fingerprint diff all pass. The frozen install from the script-edited lockfile succeeded.
  • Two checks still fail and need a person:
    • Lint → Check i18n catalogs: "Translation files are out of date with the source code" in apps/web, apps/mobile and apps/desktop. Fix it by running vp run i18n:generate in each app and committing the result. I could not run it here: it needs a local install, which would fetch about 600 new upstream package versions and needs approval.
    • Agent context budget: the agent context grew by +147, +341 and +701 bytes (claudeSystemAppendBytes, codexAdditionalContextBytes, mcpToolListJsonBytes) because of T3's new tool and instruction text. CI's measured values are committed. Accepting the growth takes the agent-context-increase label from a maintainer.

Follow-up commits after the merge (fixes for CI fallout):

  • Fixes to the merge:
    • client-runtime: gt v12 tagged templates and the M type, plus a duplicate import.
    • server: a missing StandaloneIssueTrackerApi import, the isMcpInvalidParams guard, and the HostResources test the merge left empty.
    • web: the unclosed Vikunja icon <svg>, the Plural fallback, the add-project onClick, and a duplicate sidebar empty state.
    • mobile: SettingsRow navigates with CommonActions, because TypeScript stops resolving a union of more than 25 route names.
  • Tests moved to fork behaviour:
    • Server: the fork's release repo, the m3code.service name, the opt-in for out-of-workspace reads, the fork's text-fallback policy and order, and Claude's new enabled field.
    • Web: M3 copy, local-first provider order, and the removed trace diagnostics.
    • client-runtime: no connection params.
  • Connect troubleshooting: two headings keep the T3 wording, because in-app help links use the upstream guide's anchors.

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/t3code repo "T3 Code" again.

Review fixes

Finding Commit Change
F1 privileged .deb install env 0ae806b pkexec/sudo/dpkg resolved from fixed system dirs, argv spawn without a shell, allowlisted env plus fixed PATH. gksudo/kdesudo/beesu are no longer tried.
F2 + senior-dev #4 out-of-root symlinks 6924d9d, d45315e WorkspaceEntries follows out-of-root links only when allowOutOfWorkspaceFileReads is 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.
F3 MCP ${VAR} expansion 9caed29, b21d623 Expansion withholds host secrets that provider sanitizing strips. Agent t3_mcp_server_update writes containing ${…} ask for approval through the existing MCP approval flow, and are refused when the client cannot ask.
F4 handoff branch names 8e22e18 Branch names are validated against check-ref-format --branch rules in the contract and again in HandoffGit. -- is passed before worktree paths, because --end-of-options isn't supported by worktree add before git 2.44. Worktree folder names are sanitized. The ref-write scope is documented in SECURITY.md instead of using a handoff/ prefix, which would break same-branch moves. Adds a rollback test.
F5 invariants e1737b0, 6a5f732 host_env_handover now catches HostProcess.Environment spreads 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.
F6 supply chain none All minimumReleaseAgeExclude entries match upstream and are pinned in the lockfile, so they are kept. The @clerk/expo packageExtensions are kept, because removing them changes packageExtensionsChecksum and breaks the frozen install. apps/docs configures no Blume analytics, so nothing is injected.
F7 + senior-dev #5 issue trackers 8365c44 Jira and Vikunja URLs require https and refuse private, link-local, loopback and metadata hosts. No docs rely on a local Vikunja, so there is no loopback exception. The Vikunja URL moves to credential.fields.url, with fallback field → legacy secret → T3CODE_VIKUNJA_URL. Removes probeCredential baseUrl, getBaseUrl and requiresBaseUrl.
F8 startup recovery releases link 7fd20f3 Uses the shared CLI_RELEASES_PAGE_URL.
Senior-dev #7 mobile version 41a5295 2.3.1 → 2.4.0
Decision: Vikunja opt-in a3be12c Vikunja is off unless T3CODE_FEATURE_FLAGS includes vikunja (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 with unknown-tracker, and the message names the flag. Issue calls report tracker-unsupported. Saved credentials and bindings stay in storage, unused. The strict URL policy (https only, no private hosts) is unchanged.
Decision: release repo 10eea9a CLI_RELEASE_REPOSITORY in cliRelease.ts is the one exported constant, set to Synur-Tech/m3code. The CLI, t3 update errors, the startup-recovery link and the web desktop-update fallback all use it. install.sh, install.ps1 and the npm launcher can't import it, so they name the same repo. Both invariant scripts require exactly Synur-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.

Left out:

  • i18n catalog regeneration, pending install approval. New strings use the tagged-template form, and the old Vikunja base-URL strings are now unused.
  • Lockfile regeneration, pending install approval. This also covers removing the dead @clerk/expo packageExtensions.
  • Connect branding, pending a product decision.
  • The agent-context-increase label, pending a maintainer.

Decided: private hosts stay blocked for Vikunja, which is now opt-in. Releases come from Synur-Tech/m3code.

Follow-up: install.sh/install.ps1 still unpack into ~/.t3 rather than ~/.m3.

🤖 Generated with Claude Code

juliusmarminge and others added 30 commits December 2, 2026 06:54
…age search matches (pingdotgg#47555)

Co-authored-by: SAPHID <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
only21mil and others added 8 commits December 2, 2026 22:53
… period changes (pingdotgg#48012)

Co-authored-by: SAPHID <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
MiaAI-Lab/m3code is 2571 commits behind pingdotgg/t3code, so this merges
upstream T3 Code directly. 392 files conflicted; T3 wins by default and the
fork's deltas are kept: M3 branding and ~/.m3 home, telemetry/analytics/
Clerk/feedback removal, Synur security hardening, MiaAI's local-inference,
OMP/NoName, Vikunja, plugin host, E2EE and mobile theme work.

T3's new migrations are appended after the fork's ids (T3 n -> fork n+23,
139..149); T3's AgentFeedbackErrorCode (would be 144) is skipped because the
agent feedback table does not exist in the fork. The lockfile is T3's with
Clerk/observability packages removed and the fork-only workspace packages
and fonts added from the fork's lockfile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
T3 Code's Linux updater now runs dpkg through pkexec or sudo with the
session environment, which polkit and sudo need for the password prompt.
It only installs M3 Code's own downloaded update, so it joins the reviewed
list instead of failing the invariant check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

10 of 64 scenario measurements changed or failed.

Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB +16 B (+0.0%) 302.7 KiB ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.5 KiB +16 B (+0.0%) 107.4 KiB ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 78.3 KiB −107.9 KiB (−58.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 75 −75 (−50.0%) 150 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB +18 B (+0.0%) 83.0 KiB ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB +16 B (+0.0%) 302.7 KiB ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB +16 B (+0.0%) 107.4 KiB ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 79.2 KiB −108.9 KiB (−57.9%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 75 −75 (−50.0%) 150 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB +18 B (+0.0%) 83.0 KiB ✅
All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB +16 B (+0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.5 KiB +16 B (+0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 78.3 KiB −107.9 KiB (−58.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 75 −75 (−50.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB +18 B (+0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB +16 B (+0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB +16 B (+0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 79.2 KiB −108.9 KiB (−57.9%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 75 −75 (−50.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB +18 B (+0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 417b1e5 · PR result: f94346c · Source CI: failure

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

SynurDevelopers and others added 16 commits December 3, 2026 18:45
- client-runtime: drop the duplicate isLocalLoopbackHost import, use gt-i18n's
  M type (gt-i18n/types is gone in v12) and move the fork's inference,
  connection-security and E2EE messages to tagged templates.
- server: restore the StandaloneIssueTrackerApi import and the
  isMcpInvalidParams guard, drop a duplicate Predicate import, and restore
  HostResources tests that the merge left empty (T3's tests on the fork's
  resourceMonitor names).
- web: close the Vikunja icon's svg and give LocalEnginesSection's Plural its
  fallback as children, as gt-react 12 requires.
- provider-pi: the rollback test passes the fork's required toolProfile.
- mobile: title the fork's Inference settings page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…overs

- server: pinned-runtime test follows the fork's release repository; the
  realpath-fallback read outside the workspace opts in through
  allowOutOfWorkspaceFileReads instead of loosening the fork's restriction.
- docs: two Connect troubleshooting headings keep T3 wording, since in-app
  help links point at the upstream guide's anchors (as 9048446 did).
- web: add-project buttons no longer pass the click event as dialog options;
  drop the duplicate empty-state block the merge left in the sidebar; test
  fixtures carry otlpLogsEnabled and localModels; tests follow M3 copy, the
  fork's local-first provider order and its removed trace diagnostics.
- client-runtime: authorization tests match the fork's removal of connection
  params; the projectGrouping fixture names the real t3code repository again.
- mobile: SettingsRow navigates through CommonActions because typed
  navigate() rejects a union of more than 25 route names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…gets

- agentContextBudget.json takes CI's measured MCP tool list sizes for the
  merged tool set (full list grows, lean list shrinks).
- ClaudeHome tests pass T3's new required `enabled` setting.
- The uninstall test expects the fork's m3code.service unit name.
- mobileTheme.test mocks react-native, as mobileThemeRuntime.test does,
  now that T3's font families read Platform.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lback

T3's new case expects a retired Grok text-generation selection to fall back
to Codex. The fork's text-generation fallback defaults to local models only,
so the fixture sets textGenerationFallback "any" to exercise that path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ok case

With fallback opened to any provider, the fork tries Pi and OpenCode before
Codex, so the previously used OpenCode instance takes over.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, without a shell, with an allowlisted root env

The privileged .deb install passed the full process env through a shell to
pkexec/sudo. It now resolves pkexec, sudo and dpkg from fixed system
directories, spawns with an argv array, and passes only HOME, USER, LOGNAME,
LANG, LC_ALL, LC_MESSAGES, DISPLAY, WAYLAND_DISPLAY, XAUTHORITY,
XDG_RUNTIME_DIR, DBUS_SESSION_BUS_ADDRESS and a fixed system PATH.
gksudo/kdesudo/beesu are no longer tried.

Review finding F1.

yokoten:
  command: rg "pkexec|sudo|shell: true|\.\.\.process\.env" apps/desktop/src apps/server/src
  outcome: not-found (no other elevated spawn; serviceProtection.ts interactive sudo noted in PR)
  files-touched: [apps/desktop/src/electron/ElectronUpdater.ts, apps/desktop/src/electron/privilegedDebInstall.ts]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Derives the releases and tag URLs from the shared CLI_RELEASES_PAGE_URL
instead of a hard-coded pingdotgg/t3code link.

Review finding F8.

yokoten:
  command: rg "pingdotgg/t3code" apps/desktop/src packages/*/src
  outcome: not-found (environmentHttp.ts docs link left; it is a docs URL, not releases)
  files-touched: [apps/desktop/src/app/DesktopStartupRecovery.ts]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ileReads

WorkspaceEntries followed symlinks out of the workspace root regardless of
the setting, and its entry points accepted any cwd. Out-of-root links are now
listed only when allowOutOfWorkspaceFileReads is on, and list, search,
searchContents and listIgnoredFiles check the cwd against known workspaces.
The setting read is extracted into one fail-closed helper used by
WorkspaceEntries, WorkspaceFileSystem and AssetAccess. Restores the fork's
test that drops out-of-root links and adds an AssetAccess gate test.

Review findings F2 and senior-dev #4.

yokoten:
  command: rg "realpath|isListable|allowOutOfWorkspaceFileReads" apps/server/src
  outcome: found-elsewhere-fixed (WorkspaceFileSystem, AssetAccess); others already gated or not file reads
  files-touched: [apps/server/src/workspace/WorkspaceEntries.ts, apps/server/src/workspace/WorkspaceFileSystem.ts, apps/server/src/assets/AssetAccess.ts]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…gent writes need approval

MCP server config expansion read the raw host env and login shell. It now
withholds host secrets that sanitizeProviderEnvironment strips from
providers. Agent writes through t3_mcp_server_update that contain ${...}
ask the user through the existing MCP approval flow and are refused when the
client cannot ask.

Review finding F3.

yokoten:
  command: rg "readLoginShellVariables|HostProcess.Environment|\$\{" apps/server/src/mcp
  outcome: not-found (mcpEnvironmentReferences.ts is the only expander)
  files-touched: [apps/server/src/mcp/mcpEnvironmentReferences.ts, apps/server/src/orchestration-v2/ProviderSessionManager.ts, apps/server/src/mcp/toolkits/environment/handlers.ts]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…paths inside the worktrees folder

Handoff branch names starting with - could be read as git options. The
contract now validates them with git check-ref-format --branch rules,
HandoffGit re-checks before any git call and passes -- before paths, and the
worktree folder name is sanitized. The ref-write scope of a handoff import is
documented in SECURITY.md (a handoff/ prefix would break same-branch moves).

Review finding F4.

yokoten:
  command: rg "worktree add|branch -f|update-ref|checkout" apps/server/src
  outcome: not-found (GitVcsDriverCore and worktreeRemoval already guard with --)
  files-touched: [apps/server/src/peer/handoff/HandoffGit.ts, apps/server/src/peer/handoff/HandoffImport.ts]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…osts; store Vikunja URL as a credential field

Jira site and Vikunja base URLs now require https and refuse private,
link-local, loopback and cloud-metadata hosts (literal host check). Vikunja's
server URL moves into the credential fields model (credential.fields.url)
like Jira's site, with fallback field -> legacy base-URL secret ->
T3CODE_VIKUNJA_URL, so saved accounts keep working. Removes baseUrl from
probeCredential, getBaseUrl from IssueTrackerHost and requiresBaseUrl from
contracts.

Review findings F7 and senior-dev #5.

yokoten:
  command: rg "requiresBaseUrl|baseUrlPlaceholder|getBaseUrl|siteOrigin" apps packages
  outcome: found-elsewhere-fixed (web, mobile, client-runtime fixture)
  files-touched: [packages/issue-tracker-jira/src/server/JiraApi.ts, packages/issue-tracker-vikunja/src/shared/issueUrl.ts, apps/server/src/issue/IssueTrackerConnections.ts]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nv to provider CLIs; extend Synur invariants

host_env_handover now also catches HostProcess.Environment spreads and
?? process.env / ?? hostEnvironment fallbacks. CodexProvider and
ClaudeAdapterV2 fallbacks are narrowed with sanitizeHostEnvironment; the
remaining hits are allowlisted with reasons. New checks: no telemetry or
Clerk SDKs/endpoints in shipped source, allowOutOfWorkspaceFileReads
defaults to false, the CLI release repo is not upstream, and MCP env
expansion never reads the raw host env. Drops the ElectronUpdater
reviewed_env_spreads entry.

Review finding F5.

yokoten:
  command: bash scripts/check-synur-invariants.sh
  outcome: found-elsewhere-fixed (CodexProvider, ClaudeAdapterV2); others allowlisted with reason
  files-touched: [apps/server/src/provider/CodexProvider.ts, apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts]

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Native changes ship in this PR.

Senior-dev #7.

yokoten: not-applicable

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he context budget

Replaces node:crypto and JSON.stringify in the t3_mcp_server_update approval
path with Effect Digest and Schema.fromJsonString, which the effect
diagnostics require. The tool description grew 29 bytes, so the budget is updated.

Follow-up to review finding F3 (CI).

yokoten: not-applicable

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 <[email protected]>
Follow-up to review finding F5 (CI).

yokoten: not-applicable

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@SynurDevelopers SynurDevelopers added the agent-context-increase Accept agent context budget increase from upstream or approved MCP changes label Dec 3, 2026
SynurDevelopers and others added 3 commits December 4, 2026 06:58
…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 <[email protected]>
…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 <[email protected]>
…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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Accept agent context budget increase from upstream or approved MCP changes 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships.

Projects

None yet

Development

Successfully merging this pull request may close these issues.