Skip to content

chore: sync to MiaAI-Lab/m3code main with Synur patch queue - #2

Merged
SynurDevelopers merged 1114 commits into
mainfrom
sync/upstream-m3code-t3code
Dec 3, 2026
Merged

SynurDevelopers merged 1114 commits into
mainfrom
sync/upstream-m3code-t3code

Conversation

@SynurDevelopers

@SynurDevelopers SynurDevelopers commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The previous version of this PR merged MiaAI-Lab/m3code main and pingdotgg/t3code main into Synur main at the same time. Review found that the direct T3 merge produced many bad conflict resolutions (MiaAI fork code mixed with T3 code that MiaAI had not adopted yet).

New model

This branch is now MiaAI-Lab/m3code main + Synur's patch queue. There is no direct T3 merge: T3 changes arrive through MiaAI.

  • MiaAI base: b04a1049af (MiaAI-Lab/m3code main tip at rebuild time)
  • Queue branch: synur/patch-queue (MiaAI base + 16 patch commits + 21 CI-fix commits, tip 5da23f438c)
  • PR head ec6b701cfa is a synthetic merge. Its tree is exactly synur/patch-queue, and its parents are the previous PR head bb3d39af75 and synur/patch-queue, so the branch fast-forwarded with no force push. bb3d39af75 (round 4), 5a32a4c0ac (round 3) and 423f2fa4a6 (round 2) are earlier synthetic merges built the same way, and 964a8d5b91 (round 1) is a synthetic merge of this PR's base sync/m3code-upstream (1afb5c7639, which contains main at af73d702c3) and the round-1 queue. Merging it rewrites neither the base nor main.
  • The base is still stacked: chore: sync upstream MiaAI-Lab/m3code main #4 (sync/m3code-upstream into ci/github-hosted-runners) and ci: use GitHub-hosted runners so PR checks execute #3 (ci/github-hosted-runners into main). The queue already includes the GitHub-hosted runner change from ci: use GitHub-hosted runners so PR checks execute #3.

Patch queue

Commit What it carries
dc74d21ab3 fix(security): default to approval-required and add security settings DEFAULT_RUNTIME_MODE = "approval-required" in contracts, used by web and mobile. Three new settings that need access:write: allowAgentAutoEnableScheduledTasks, allowOutOfWorkspaceFileReads, and sanitizeProviderEnvironment. They appear under Security & isolation on web and mobile.
a17a8806f8 fix(security): agent-created scheduled tasks start disabled MCP schedule, update and run-now gates
8e956b8f0f fix(security): restrict workspace and asset reads to known workspaces WorkspaceFileSystem and AssetAccess read policy
b9c0edddbd fix(security): strip ambient host secrets from provider environments Env sanitisation: provider env, terminals, Codex, OpenCode, Claude Bedrock exception
ca41c4cebe fix(security): remove Claude OAuth credential scraper Reset credits no longer read .credentials.json
f4171833d6 fix(security): classify proxied loopback requests by the trusted hop Trusts only the rightmost X-Forwarded-For entry
02d52e1b99 ci: isolate upstream sync jobs and use GitHub-hosted runners 3-job upstream sync (merge, verify with credentials dropped, publish PR), checkout pinned by SHA, upstream is now MiaAI-Lab/m3code. CI runs on GitHub-hosted runners with scripts/typecheck-all.sh.
bb059ba305 ci: remove nightly Claude auto-merge workflow Deletes pr-sweep.yml
4aa8d22f91 fix(plugins): sanitize sidecar env and sandbox plugin frames Sidecars get an allow-listed env. Plugin iframes drop allow-same-origin. The bridge reads the plugin id from the sending iframe. Plugin pages are served with CSP sandbox, nosniff and no-store.
ef997745fa fix(security): sanitize Cursor SDK worker environment The shared Cursor SDK worker starts from sanitizeHostEnvironment unless sanitizeProviderEnvironment is off, instead of the full host env.
95b35ebfb2 fix(plugins): authenticate plugin content with signed capability URLs Management routes still need a maintainer session. Static files, sdk.js and sidecar requests from the sandboxed frame are authorized by a plugin-scoped, expiring capability signed with the asset signer and carried in the iframe URL.
4e508b2bcf ci: verify Synur invariants from a trusted checkout during upstream sync New scripts/check-synur-invariants.sh (+ test). Upstream sync runs it and setup-ci-deps from a sparse checkout of main against the merged tree, and restores caches without saving them.
5a808d0d75 ci: make Synur invariant scan robust to gitattributes and evasions The scan greps with -a -z so .gitattributes and odd file names cannot hide a match, drops only true comment-only lines, requires every settings definition to carry the expected default, also catches env: process.env and Object.assign(…, process.env), and checks the Cursor worker sanitizes its env.
46979fb016 fix(plugins): renew capability URLs and keep them out of request logs The plugin listing returns capabilityRefreshAfterMs; the web host re-lists on that timer and when the tab becomes visible. Plugin content paths skip request logging like other signed URLs. A malformed plugin id segment returns 400, a capability must be exactly two dot-separated parts, and sidecars inherit ALL_PROXY.
6511b2bd48 fix(plugins): keep renewing capability URLs after a failed listing A failed listing retries with capped exponential backoff (30s to 5min) instead of ending renewal; the server's refresh delay is clamped to 1s..2^31-1 ms; a listing that resolves after a newer one is ignored.
f2d947421a ci: scan committed content and fail on git grep errors in Synur invariants The scan and the settings/runtime-mode checks read index content, so working-tree-encoding cannot hide a match; a git grep failure or unreadable blob exits 2.

The first six commits carry Synur main's 152db92afc, 665c34f093, 83f1cf3589, 6ea3fb7143 and 8b30eac064. The CI commit also carries e6725b5d0a and the CI part of 63c2221529 from the old PR head.

Notable conflict resolutions:

  • ACP launch env (83f1cf3589): dropped. Upstream's spawnExtendsEnv now does the same thing.
  • mergeProviderInstanceEnvironment: sanitises after upstream's AppImage env scrub, so both run.
  • Scheduled tasks: the agent-enable gate sits alongside upstream's clientRequestId idempotency.

The first commit also wraps 7 untranslated strings that MiaAI already had in SettingsPanels.tsx and settingsSearch.ts, and adds their catalog keys. Without that, the pre-commit lint fails on those files.

Round 2 review fixes

  • Cursor SDK worker env: the one worker path that still inherited the full host environment now honours sanitizeProviderEnvironment.
  • Plugin content auth: dropping allow-same-origin made plugin frames cookieless, so their own static, sdk.js and sidecar requests failed the maintainer-session guard. They now carry a signed, plugin-scoped capability; a capability for one plugin is refused on another plugin's paths.
  • Upstream sync trust: the invariant check and the CI setup action no longer come from the upstream-controlled merged tree.
    • Note: the trusted-checkout step reads scripts/check-synur-invariants.sh and .github/actions/setup-ci-deps from main, so upstream sync only works once this PR (or at least that script and the save-caches input) is on main. Until then the sync job fails at "Synur invariants".

Round 2 checks on 4e508b2bcf: scripts/check-synur-invariants.sh and scripts/check-fork-invariants.sh pass; vp test run passes for CursorAgentSdkProcessRunner, PluginHostManager, m3PluginRoute, M3PluginSlotHost (33 tests) and check-synur-invariants (11); effect-tsgo tsrs --noEmit clean in apps/web and packages/provider-cursor; apps/server still has only the 4 pre-existing errors listed below; i18n:check and knip:check pass; pre-commit fmt/lint/knip passed on each commit.

Round 3 review fixes

  • Capability expiry: open plugin frames held a capability that expired after two time buckets. The listing now says when to renew, and the web host re-lists then and whenever the tab becomes visible. Entry URLs only change at renewal, so re-listing between renewals does not reload open frames.
  • Capabilities in logs: plugin content paths are now treated as signed URLs, so the capability segment is not written to request traces.
  • Invariant scan evasions: check-synur-invariants.sh no longer misses matches hidden by .gitattributes (binary, -diff), decoy settings keys, or env:/Object.assign env handovers.
  • Smaller: malformed plugin content path → 400 instead of a thrown decode error; exact two-part capability; ALL_PROXY passed to sidecars.

Round 3 checks on 46979fb016: check-synur-invariants.sh (under bash and /bin/bash 3.2) and check-fork-invariants.sh pass; vp test run passes for check-synur-invariants (38), m3PluginRoute + http (48), PluginHostManager (5), M3PluginSlotHost (2) and the new M3PluginSlotHost.browser test in Chromium (2); effect-tsgo tsrs --noEmit clean in apps/web; i18n:check and knip:check pass; pre-commit fmt/lint/knip passed on both commits.

Round 4 review fixes

  • Renewal stopped after one failed listing: a network error, non-OK response or restarting server ended capability renewal, so plugin frames would 401 after 12–24h; the first listing also never retried. Failed listings now retry with capped backoff, and success resumes the normal renewal timer. The server's capabilityRefreshAfterMs is clamped so 0, negative or huge values cannot spin or overflow the timer.
  • Out-of-order listings: an older listing resolving after a newer one no longer overwrites it.
  • Invariant scan read the checkout: a merged-tree .gitattributes with working-tree-encoding=UTF-16 re-encoded files on checkout and hid matches. All checks now read committed content (git grep --cached, git cat-file blob :path).
  • Silent git grep failures: a git grep error passed as "no matches". Exit status above 1, or any error output (git skips a blob it cannot read and still exits 0/1), now exits 2.

Round 4 checks on f2d947421a: check-synur-invariants.sh (under bash and /bin/bash) and check-fork-invariants.sh pass; vp test run passes for check-synur-invariants (44, new fixtures fail on the round-3 script), m3PluginRoute + http (48), M3PluginSlotHost + M3PluginSlotHost.logic (7) and M3PluginSlotHost.browser in Chromium (5, now on fake timers instead of expect.poll); effect-tsgo tsrs --noEmit clean in apps/web; vp lint, vp fmt --check and knip:check pass; pre-commit fmt/lint/knip passed on both commits.

CI fixes

Triage of CI run 46582427206. One commit per root cause, each droppable on its own. Commits marked Ci-Compat fix MiaAI's own tree (b04a1049af), not our patches, and carry the trailer Ci-Compat: fixes MiaAI-Lab/m3code b04a1049af; drop when upstream fixes it.

Caused by the Synur queue

Commit Fix
3f7295b42a style(server): restore terminal manager formatting The queue was formatted with vite-plus 1.8.0, which re-indents the fallback spawn error in terminal/Manager.ts; CI's pinned 1.4.0 disagrees. Binding the fallback to a local makes both formatter versions agree, so the pre-commit hook and CI stop fighting over it.
39abef937f test(server): pin full-access default in mode-inheritance tests Our DEFAULT_RUNTIME_MODE = "approval-required" broke three tests about mode inheritance (RemoteDelegation, PeerForwarding, project handlers). The peer testkit's environment settings and the launch harness now pin defaultRuntimeMode: "full-access". Product defaults are unchanged.

Ci-Compat (MiaAI's tree)

Commit Fix
b574eb7da4 fix(desktop) Preload bundle verifier no longer requires the removed Clerk passkeys global
0b376e0176 fix(release) Release smoke copies packages/provider-omp/package.json (apps/server depends on it)
d2faadc9b1 fix(provider-omp) --passWithNoTests on a package with no tests
21b949494f test(server) Five migration tests follow MiaAI's +22 renumbering (103, 108, 116, 117, 118)
9048446a93 docs .github/triage/PLAYBOOK.md gets the M3 wording the embedded playbook already has. Two Connect guide headings go back to "T3 Code", because in-app help links point at the upstream guide on pingdotgg/t3code with T3 anchors.
26b0a65ae4 test(web) Usage chart band order follows MiaAI's PROVIDER_ORDER
363c7c6e36 test(web) Decoded server config fixtures include the required observability field
e0f227f15e test(web) Local model setup expects the OMP agent
f41b114b63 test(web) hasCloudPublicConfig is always off in the fork
f271d44e82 test(server) IssueService.test.ts TS18048 (optional scopes)
5704d2d5b1 refactor(server) ProviderSessionManager.ts effectFnOpportunity error: release step is a named Effect.fn
b1a1fbbdc2 fix(server) Antigravity usage probe: infallible resolver (TS377030) and test unref stub type (TS2375)
5a3b3526b2 fix(evals) Workflow grader imports the renumbered 133_Workflows / 138_WorkflowRunTags
d51b1cd98c style 10 MiaAI files formatted with pinned vite-plus 1.4.0 (oxfmt 0.74)
095c3d2aea style The other 6 flagged files also failed lint, so the pre-commit hook would not take formatting alone: node namespace imports in m3-server, a useless spread, dead code and over-long comments in socketE2ee, a hoisted Schema.is, text-2xs
515ffb3888 test(server) MiaAI removed the per-tool MCP spans and the secret request counter; drop those assertions (McpHttpServer, OrchestratorMcpService.activity)
b91a8d0623 fix(server) Text generation: with the Any provider policy and no fallback, run the requested model (upstream behaviour) instead of failing every non-review operation with "No local model is ready". The review guide test opts into Any.
bcacad1648 test(codex) Codex replay hang: MiaAI renamed the Codex client to "M3 Code" but the recordings say "T3 Code". The replay never answered initialize, so CodexReplayFixtures, OrchestratorReplayRecovery, ThreadFork and ThreadMergeBack hung until the 30s timeout. Replay now ignores clientInfo name/title. None of our queue commits cause this.
5da23f438c test(server) Muse, Kiro and delegated_task_status recordings use the M3 wording MiaAI now sends agents

CI-fix checks (local): check-synur-invariants.sh and check-fork-invariants.sh pass. effect-tsgo tsrs --noEmit is clean in apps/server, apps/web, apps/desktop, evals, packages/shared and packages/effect-codex-app-server. oxfmt 0.74 (the pinned vite-plus 1.4.0 formatter) reports no unformatted tracked files. i18n:check and knip:check pass. vp test run passes for every changed test file, the full orchestration-v2 replay testkit and the web unit project. The one web failure left, FilePreviewPanel, is a local ICU difference and passes in CI. Pre-commit fmt/lint/knip passed on every commit.

Still open after these fixes:

  • Repo-wide lint (CI vp check): once formatting passes, oxlint 1.89 still reports 278 errors in MiaAI's tree across 66 files: 221 no-untranslated-copy (inference/local-model UI), 44 unused vars, 7 no-hookless-use-function and a few others. Fixing them needs catalog work in every locale, which is outside this round.
  • SecretRequests.test.ts still asserts the removed t3_secret_refs_consumed_total counter. The secrets directory is denied to the agent, so it was not edited.
  • Web browser tests: the "[vitest] There was an error when mocking a module" unhandled rejection (Test Web 1 & 2) was not identified. No local Chromium for the pinned Playwright (rev 1248), and no vi.mock target is missing.
  • Local-only failures, left as they are: macOS /private realpath (pinnedRuntime, cli/invocation, cli/triage), statement.stat (Orchestrator.control-reads, ProjectionStore), and ICU (FilePreviewPanel).

Run 46612453326 (mobile)

The Test job ran every package (vp run: 41/42 successful); only apps/mobile failed. Both fixes are Ci-Compat: the tests and the code they cover match MiaAI's b04a1049af.

Commit Fix
d310ad1513 test(mobile) MiaAI moved the CLI release repository to MiaAI-Lab/m3code, but environment-maintenance.test.ts still stubbed the pingdotgg/t3code feed and API URLs (403 / "Unexpected release request"). The stubs now come from CLI_RELEASES_PAGE_URL and cliReleaseIndexPageUrl. Product behaviour is unchanged.
2f7a076258 test(mobile) SettingsServerControlsRouteScreen reads environments from useRemoteConnectionStatus, which the test did not mock. The real module loads expo-constants, and the suite failed at import with __DEV__ is not defined. The test now mocks the registry hook, as the connection and new-task screen tests do.

Checks: both test files pass; the full apps/mobile suite passes apart from remoteRegistration.test.ts (2 DPoP cases), which fails the same way without these commits on local Node 24.10 and passes in CI. effect-tsgo tsrs --noEmit in apps/mobile shows no errors in the touched files. Pinned oxlint 1.89 and oxfmt 0.74 pass on both files. check-synur-invariants.sh, check-fork-invariants.sh, i18n:check and knip:check pass. Pre-commit fmt/lint/knip passed on both commits.

CI run 46614934733 on head 0b74c3e6f4: every job passes, including Test and Lint, except Test Server 2, which fails only on SecretRequests.test.ts (listed under "Still open"). Check fails because it aggregates Test Server 2.

Verified (on synur/patch-queue)

  • scripts/check-fork-invariants.sh: pass
  • scripts/check-fork-protected.sh b04a1049af: fails, as intended, on apps/server/src/auth/transportSecurity{,.test}.ts. These are MiaAI-protected files that Synur's forwarded-for fix changes on purpose, as on Synur main today.
  • effect-tsgo tsrs --noEmit: clean in packages/contracts, provider-core, provider-acp, provider-opencode, apps/web and apps/desktop.
  • vp test run, all passing:
    • Server (418 passed, 2 skipped): AssetAccess, transportSecurity, OrchestratorMcpService, toolkits/core, ClaudeHome, CodexDriver, ProviderInstanceRegistry, ProviderInstanceRegistryHydration, claudeResetCredits, terminal Manager, WorkspaceFileSystem, AgentContextBudget
    • m3PluginRoute (3)
    • Packages: provider-core instanceEnvironment (10), provider-opencode OpenCode2Service (1), provider-acp AcpSessionRuntime (35), m3 PluginHostManager (4)
    • Web: settingsSearch and CommandPalette.logic (60)
    • Mobile: scheduled-task editor and draft (29)
  • vp fmt --check and vp lint on every file the queue changed: clean
  • vp run i18n:check: catalogs match the source
  • vp run knip:check: pass

Not verified

  • apps/server typecheck: fixed by the CI-fix commits; clean locally with effect 4.1.6 (MiaAI pins 4.1.5, and CI showed the same four errors).
  • apps/mobile typecheck: 19 errors in native navigation files and scripts/measure-renders.mts (none in queue files), from the same stale dependencies.
  • Repo-wide vp check lint: fails on MiaAI's own code (about 200 untranslated strings in the inference UI, plus unused imports). The CI Lint job will be red until MiaAI fixes these or we do.
  • Manual testing: none in a real client (web, desktop or mobile).
  • Browser checks still needed for the plugin capability change:
    • Plugin static assets, sdk.js and sidecar fetch load from inside the sandboxed (opaque-origin) frame.
    • The same plugin mounted in two slots at once: both frames load and the bridge routes messages to the right one.
    • Remote and tunnel connections (T3 Connect, Tailscale, LAN): capability URLs resolve against the remote origin and plugin content loads.
    • Plugin panel re-list on renewal and on tab visibility, in a real client: open plugin frames keep working and do not reload.

Backup

  • backup/pr2-dual-merge (d6e876faa8): the previous PR head, including the later fix(ci) commits
  • backup/pr2-round1-fixes-stash (298e39d0e7): the uncommitted round-1 review fixes

Made with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code


Note

High Risk
Changes upstream-sync trust boundaries, plugin content authorization, and CI behavior when running merged third-party code; mistakes could weaken auth or cache poisoning across branches.

Overview
Rebases the fork onto MiaAI-Lab/m3code and layers the Synur patch queue: CI, upstream sync hardening, plugin hosting, mobile i18n, and test fixes for the fork.

CI & upstream sync: setup-ci-deps gains a save-caches input (restore-only for jobs that execute untrusted trees). Main CI jobs get longer timeouts; build typecheck calls scripts/typecheck-all.sh. The nightly pr-sweep workflow is removed. Upstream sync is scheduled, points at MiaAI-Lab/m3code, and the verify job checks out trusted scripts and .github/actions from main, runs Synur invariants, then installs with save-caches: false before typecheck/tests on the merged tree.

Plugin HTTP surface: Server plugin routing issues signed, time-bucketed capability tokens for static/sidecar content while management routes still require a maintainer session. Plugin content paths are treated like other signed URLs (no credential logging). Tests cover listing renewal, CORS, cross-plugin rejection, and sidecar proxying.

Product / fork alignment: Desktop preload verification drops the removed Clerk passkeys global; mobile adds gt-react-native strings and catalog keys for inference/usage settings, plus oxlint exceptions for the M3 Code product name. Release/update tests use shared CLI release URL helpers instead of hard-coded upstream repos.

Smaller edits include unused import cleanup, migration test IDs renumbered with MiaAI, peer testkit pinning full-access for inheritance tests, and formatting-only churn in a few server/desktop paths.

Reviewed by Cursor Bugbot for commit 5c1c346. Bugbot is set up for automated code reviews on this repo. Configure here.

only21mil and others added 30 commits November 24, 2026 05:47
…ovider (pingdotgg#42158)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#42165)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…er it (pingdotgg#42162)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#38317)

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
…how in Servers (pingdotgg#42151)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ing slashes (pingdotgg#42193)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…n inside a function (pingdotgg#42145)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…dary (pingdotgg#42208)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…s a merge hides (pingdotgg#42202)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…te submenu (pingdotgg#42205)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#42201)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…des the composer (pingdotgg#42132)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nges the diff (pingdotgg#42215)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ncher (pingdotgg#42221)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… Usage or Settings (pingdotgg#42224)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…roken character (pingdotgg#42228)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#42234)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ts as text (pingdotgg#42230)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…by imports (pingdotgg#42233)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…n as [not set] (pingdotgg#42242)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#42240)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
SynurDevelopers and others added 17 commits December 1, 2026 18:52
…ialize frames

MiaAI renamed the Codex client to "M3 Code", but the recorded Codex transcripts expect "T3 Code" in initialize's clientInfo. The replay never answered initialize, so every Codex replay test (CodexReplayFixtures, OrchestratorReplayRecovery, ThreadFork, ThreadMergeBack, the orchestrator MCP toolkit) hung until its 30s initialize timeout. Normalize clientInfo name and title like the version already is, so recordings stay valid across branding.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lay fixtures

MiaAI rebranded the text the server sends agents (the Muse client title, the runtime_info note, and the prefix on agent-sent messages) from T3 Code to M3 Code. The recorded Muse and Kiro transcripts and the delegated_task_status Codex transcript still expect the T3 wording, so the Muse replays, the Kiro model switch replay (which hangs to its timeout) and the orchestrator MCP toolkit integration tests fail on the first mismatched frame. Update those recordings to the M3 wording.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 3f7295b style(server): restore terminal manager formatting
- 39abef9 test(server): pin full-access default in mode-inheritance tests
- b574eb7 fix(desktop): stop requiring the removed Clerk passkeys preload global
- 0b376e0 fix(release): copy provider-omp into the release smoke workspace
- d2faadc fix(provider-omp): pass the test script when the package has no tests
- 21b9494 test(server): follow MiaAI's migration renumbering in migration tests
- 9048446 docs: align rebranded triage playbook and Connect guide headings with their checks
- 26b0a65 test(web): follow MiaAI's usage provider order in the chart test
- 363c7c6 test(web): include observability in decoded server config fixtures
- e0f227f test(web): expect the OMP agent in local model setup choices
- f41b114 test(web): expect cloud public config to stay off in the fork
- f271d44 test(server): read optional issue scopes safely in the Vikunja account test
- 5704d2d refactor(server): name the provider session release step as an Effect.fn
- b1a1fbb fix(server): type the Antigravity usage probe's executable resolver
- 5a3b352 fix(evals): import the renumbered workflow migrations in the grader
- d51b1cd style: format MiaAI files with the pinned vite-plus
- 095c3d2 style: clear lint errors in unformatted MiaAI files and format them
- 515ffb3 test(server): drop assertions on MCP spans and metrics MiaAI removed
- b91a8d0 fix(server): keep the requested text model when Any provider finds no fallback
- bcacad1 test(codex): ignore the client name when matching recorded Codex initialize frames
- 5da23f4 test(server): record M3 branding in Muse, Kiro and delegated-task replay fixtures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI's lint step (vp check) fails on MiaAI's tree: unused imports and variables left after it stripped telemetry, analytics, Clerk and remote fetching; signed-out Clerk stub hooks that call no hooks; node: imports in apps/m3-server that are not namespaced; a useless spread; an extra effect dependency in ChatView; and a stale oxlint-disable directive. Remove the dead bindings (keeping every effect that did work, such as the run-current event write), namespace the node: imports, and mark the deliberate stub hooks with a reasoned suppression instead of renaming every call site. Behaviour is unchanged.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reens

MiaAI's inference server, local model, add project and usage screens ship unwrapped English, so t3code/no-untranslated-copy fails CI's lint step with 221 errors. Wrap that copy in <T>, gt(), msg() and m() per docs/internals/14_i18n.md: whole sentences instead of joined fragments, client-runtime helpers taking a resolve parameter, and a reasoned suppression where the text is the M3 Code product name. Regenerate the web and mobile catalogs (keeping the existing key order) and translate the new keys for every locale.

Also in the touched files: drop CommandPalette's unused ensureBrowseDirectoryPath import, read the clock through a module-level helper there so its two react/purity suppressions (needed by CI's oxlint 1.89, unused under 1.94) can go, and use the RefreshControl wrapper the mobile lint rule requires on the inference settings screen. Rendered English is unchanged.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… socket URLs

MiaAI's telemetry removal (b669527) dropped the clientSurface, clientDeviceType and connectionMethod URL parameters and updated remote.test.ts, but layer.test.ts still expected connectionMethod=relay on a reused relay token and resolver.test.ts still expected the fingerprint params on a primary environment URL. Assert the URLs the code now builds; the layer test guards that connectionMethod stays out.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…terCommand

The full T3 Pi extension registers the service tier command through pi.registerCommand (upstream pingdotgg#33177). MiaAI's gateway registration test runs that extension against a fake Pi without registerCommand, so it throws before registering the provider. Add a no-op registerCommand like the file's other fake Pi objects.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…test

MiaAI's rebrand replaced T3 Code (Dev) with M3 Code (Dev) in DesktopAppIdentity.test.ts, but DesktopUserData deliberately keeps the legacy development profile name so existing profiles are found. The test's mocked filesystem and expected path now disagree with the source on every platform. Restore the legacy name in the test.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 9a792c3 test(desktop): keep the legacy T3 Code (Dev) profile in the identity test
- c66633e test(provider-pi): give the gateway registration test's fake Pi registerCommand
- 5b93ff2 test(client-runtime): stop expecting connection fingerprint params in socket URLs
- 54a179f fix(i18n): translate the copy MiaAI added to inference and project screens
- 5cf42c5 fix: clear the lint errors MiaAI left outside UI copy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ructions

MiaAI's rebrand (783275f) renamed the orchestration instructions' devices heading to "## M3 Code devices" and updated the product tests, but the mcp-tool-use evals still look for "## T3 Code devices": run.test.ts fails, and devices.test.ts's notInclude check passed without testing anything. Use the M3 heading in both.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 967a1f5 test(evals): expect the M3 Code devices heading in orchestration instructions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MiaAI's rebrand (783275f) renamed the AppImage fixtures in aur-release.test.ts to M3-Code, but the code under test (packaging/aur release.sh and PKGBUILDs) deliberately repackages upstream pingdotgg/t3code releases and looks for T3-Code assets; AUR publishing only runs on the upstream repository. The Linux-only suite fails on every case. Restore the upstream fixture names.

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- abcf55b test(scripts): keep upstream T3 Code asset names in the AUR release test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…repository

MiaAI moved the CLI release repository to MiaAI-Lab/m3code in packages/shared/src/cliRelease.ts, but environment-maintenance.test.ts still stubbed fetch for the pingdotgg/t3code feed and API URLs. The nightly/preview test got a 403 and the paging test threw on the unexpected feed URL. Build the stubbed URLs from CLI_RELEASES_PAGE_URL and cliReleaseIndexPageUrl so the fixtures follow whatever repository the product checks.

red-confirmed: Error: Unexpected release request: https://github.com/MiaAI-Lab/m3code/releases.atom
yokoten: rg pingdotgg/t3code apps/mobile/src -> no other release fixtures; not-applicable
pre-pr-check: not-applicable (CI fix on sync branch)
backend-test: not-applicable

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ols screen test

SettingsServerControlsRouteScreen now reads connected environments from useRemoteConnectionStatus in state/use-remote-environment-registry, which the test did not mock. Loading the real module pulls in features/cloud/publicConfig and expo-constants, whose expo-modules-core logger references the React Native __DEV__ global, so the whole suite failed at import in the node test environment. Mock the registry hook the way the connection and new-task screen tests already do.

red-confirmed: ReferenceError: __DEV__ is not defined (expo-modules-core setUpJsLogger.fx.ts via expo-constants)
yokoten: traced every unmocked import of the screen to expo modules; the registry was the only gap. not-applicable elsewhere
pre-pr-check: not-applicable (CI fix on sync branch)
backend-test: not-applicable

Ci-Compat: fixes MiaAI-Lab/m3code b04a104; drop when upstream fixes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- d310ad1 test(mobile): point release-check fixtures at the configured release repository
- 2f7a076 test(mobile): mock the remote connection registry in the server controls screen test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SynurDevelopers
SynurDevelopers changed the base branch from sync/m3code-upstream to main December 1, 2026 20:13
@SynurDevelopers
SynurDevelopers marked this pull request as draft December 1, 2026 20:16
@SynurDevelopers
SynurDevelopers marked this pull request as ready for review December 1, 2026 20:16
@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

cursor review

@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
@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

bugbot run

@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

[Codex gpt-6.2-sol review] Approved

I reviewed the Bugbot fix at 1bf7fb5a against its parent and traced the plugin listing’s refresh, retry, and unmount paths. The fix cancels the pending timer before fetching, so it cannot supersede the active request, and the new browser test checks that race and the resulting iframe update by inspection.

  • Non-blocking. The regression test dispatches visibilitychange without setting document.visibilityState, so it can fail if the test tab is hidden. Stub the getter to return "visible", as the earlier lifecycle test does. M3PluginSlotHost.browser.test.tsx

@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

[Grok 4.6 review] Approved

I statically inspected commit 1bf7fb5a34, useRenewingPluginList in M3PluginSlotHost.tsx (lines 115–185), and the new overlapping-refresh case in M3PluginSlotHost.browser.test.tsx. Clearing the pending timer at the start of refreshPlugins cancels the prior renewal before a visibility (or other) refresh fetches, and the test advances past the original delay while the second listing is in flight, so a third fetch cannot start.

@SynurDevelopers
SynurDevelopers merged commit cf72dc7 into main Dec 3, 2026
27 checks passed
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. size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.