Repository navigation
chore: sync to MiaAI-Lab/m3code main with Synur patch queue - #2
Conversation
…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>
…e is not named origin (pingdotgg#42176)
…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>
…ngdotgg#42187) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…switch right-panel tabs (pingdotgg#42179)
…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>
…e its work is done (pingdotgg#42210)
…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>
…stion menu to render (pingdotgg#42183)
…gg#42201) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…des the composer (pingdotgg#42132) 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>
…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>
|
cursor review |
|
bugbot run |
|
[Codex gpt-6.2-sol review] Approved I reviewed the Bugbot fix at
|
|
[Grok 4.6 review] Approved I statically inspected commit |
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.
b04a1049af(MiaAI-Lab/m3codemaintip at rebuild time)synur/patch-queue(MiaAI base + 16 patch commits + 21 CI-fix commits, tip5da23f438c)ec6b701cfais a synthetic merge. Its tree is exactlysynur/patch-queue, and its parents are the previous PR headbb3d39af75andsynur/patch-queue, so the branch fast-forwarded with no force push.bb3d39af75(round 4),5a32a4c0ac(round 3) and423f2fa4a6(round 2) are earlier synthetic merges built the same way, and964a8d5b91(round 1) is a synthetic merge of this PR's basesync/m3code-upstream(1afb5c7639, which containsmainataf73d702c3) and the round-1 queue. Merging it rewrites neither the base normain.sync/m3code-upstreamintoci/github-hosted-runners) and ci: use GitHub-hosted runners so PR checks execute #3 (ci/github-hosted-runnersintomain). The queue already includes the GitHub-hosted runner change from ci: use GitHub-hosted runners so PR checks execute #3.Patch queue
dc74d21ab3fix(security): default to approval-required and add security settingsDEFAULT_RUNTIME_MODE = "approval-required"in contracts, used by web and mobile. Three new settings that needaccess:write:allowAgentAutoEnableScheduledTasks,allowOutOfWorkspaceFileReads, andsanitizeProviderEnvironment. They appear under Security & isolation on web and mobile.a17a8806f8fix(security): agent-created scheduled tasks start disabled8e956b8f0ffix(security): restrict workspace and asset reads to known workspacesb9c0edddbdfix(security): strip ambient host secrets from provider environmentsca41c4cebefix(security): remove Claude OAuth credential scraper.credentials.jsonf4171833d6fix(security): classify proxied loopback requests by the trusted hop02d52e1b99ci: isolate upstream sync jobs and use GitHub-hosted runnersscripts/typecheck-all.sh.bb059ba305ci: remove nightly Claude auto-merge workflowpr-sweep.yml4aa8d22f91fix(plugins): sanitize sidecar env and sandbox plugin framesallow-same-origin. The bridge reads the plugin id from the sending iframe. Plugin pages are served with CSP sandbox, nosniff and no-store.ef997745fafix(security): sanitize Cursor SDK worker environmentsanitizeHostEnvironmentunlesssanitizeProviderEnvironmentis off, instead of the full host env.95b35ebfb2fix(plugins): authenticate plugin content with signed capability URLssdk.jsand 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.4e508b2bcfci: verify Synur invariants from a trusted checkout during upstream syncscripts/check-synur-invariants.sh(+ test). Upstream sync runs it andsetup-ci-depsfrom a sparse checkout ofmainagainst the merged tree, and restores caches without saving them.5a808d0d75ci: make Synur invariant scan robust to gitattributes and evasions-a -zso.gitattributesand odd file names cannot hide a match, drops only true comment-only lines, requires every settings definition to carry the expected default, also catchesenv: process.envandObject.assign(…, process.env), and checks the Cursor worker sanitizes its env.46979fb016fix(plugins): renew capability URLs and keep them out of request logscapabilityRefreshAfterMs; 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 inheritALL_PROXY.6511b2bd48fix(plugins): keep renewing capability URLs after a failed listingf2d947421aci: scan committed content and fail on git grep errors in Synur invariantsworking-tree-encodingcannot hide a match; agit grepfailure or unreadable blob exits 2.The first six commits carry Synur main's
152db92afc,665c34f093,83f1cf3589,6ea3fb7143and8b30eac064. The CI commit also carriese6725b5d0aand the CI part of63c2221529from the old PR head.Notable conflict resolutions:
83f1cf3589): dropped. Upstream'sspawnExtendsEnvnow does the same thing.mergeProviderInstanceEnvironment: sanitises after upstream's AppImage env scrub, so both run.clientRequestIdidempotency.The first commit also wraps 7 untranslated strings that MiaAI already had in
SettingsPanels.tsxandsettingsSearch.ts, and adds their catalog keys. Without that, the pre-commit lint fails on those files.Round 2 review fixes
sanitizeProviderEnvironment.allow-same-originmade plugin frames cookieless, so their own static,sdk.jsand 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.scripts/check-synur-invariants.shand.github/actions/setup-ci-depsfrommain, so upstream sync only works once this PR (or at least that script and thesave-cachesinput) is onmain. Until then the sync job fails at "Synur invariants".Round 2 checks on
4e508b2bcf:scripts/check-synur-invariants.shandscripts/check-fork-invariants.shpass;vp test runpasses forCursorAgentSdkProcessRunner,PluginHostManager,m3PluginRoute,M3PluginSlotHost(33 tests) andcheck-synur-invariants(11);effect-tsgo tsrs --noEmitclean inapps/webandpackages/provider-cursor;apps/serverstill has only the 4 pre-existing errors listed below;i18n:checkandknip:checkpass; pre-commit fmt/lint/knip passed on each commit.Round 3 review fixes
check-synur-invariants.shno longer misses matches hidden by.gitattributes(binary,-diff), decoy settings keys, orenv:/Object.assignenv handovers.ALL_PROXYpassed to sidecars.Round 3 checks on
46979fb016:check-synur-invariants.sh(underbashand/bin/bash3.2) andcheck-fork-invariants.shpass;vp test runpasses forcheck-synur-invariants(38),m3PluginRoute+http(48),PluginHostManager(5),M3PluginSlotHost(2) and the newM3PluginSlotHost.browsertest in Chromium (2);effect-tsgo tsrs --noEmitclean inapps/web;i18n:checkandknip:checkpass; pre-commit fmt/lint/knip passed on both commits.Round 4 review fixes
capabilityRefreshAfterMsis clamped so 0, negative or huge values cannot spin or overflow the timer..gitattributeswithworking-tree-encoding=UTF-16re-encoded files on checkout and hid matches. All checks now read committed content (git grep --cached,git cat-file blob :path).git grepfailures: agit greperror 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(underbashand/bin/bash) andcheck-fork-invariants.shpass;vp test runpasses forcheck-synur-invariants(44, new fixtures fail on the round-3 script),m3PluginRoute+http(48),M3PluginSlotHost+M3PluginSlotHost.logic(7) andM3PluginSlotHost.browserin Chromium (5, now on fake timers instead ofexpect.poll);effect-tsgo tsrs --noEmitclean inapps/web;vp lint,vp fmt --checkandknip:checkpass; 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 trailerCi-Compat: fixes MiaAI-Lab/m3code b04a1049af; drop when upstream fixes it.Caused by the Synur queue
3f7295b42astyle(server): restore terminal manager formattingterminal/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.39abef937ftest(server): pin full-access default in mode-inheritance testsDEFAULT_RUNTIME_MODE = "approval-required"broke three tests about mode inheritance (RemoteDelegation,PeerForwarding, projecthandlers). The peer testkit's environment settings and the launch harness now pindefaultRuntimeMode: "full-access". Product defaults are unchanged.Ci-Compat (MiaAI's tree)
b574eb7da4fix(desktop)0b376e0176fix(release)packages/provider-omp/package.json(apps/server depends on it)d2faadc9b1fix(provider-omp)--passWithNoTestson a package with no tests21b949494ftest(server)9048446a93docs.github/triage/PLAYBOOK.mdgets 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.26b0a65ae4test(web)PROVIDER_ORDER363c7c6e36test(web)observabilityfielde0f227f15etest(web)f41b114b63test(web)hasCloudPublicConfigis always off in the forkf271d44e82test(server)IssueService.test.tsTS18048 (optionalscopes)5704d2d5b1refactor(server)ProviderSessionManager.tseffectFnOpportunity error: release step is a namedEffect.fnb1a1fbbdc2fix(server)unrefstub type (TS2375)5a3b3526b2fix(evals)133_Workflows/138_WorkflowRunTagsd51b1cd98cstyle095c3d2aeastylesocketE2ee, a hoistedSchema.is,text-2xs515ffb3888test(server)McpHttpServer,OrchestratorMcpService.activity)b91a8d0623fix(server)bcacad1648test(codex)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.5da23f438ctest(server)delegated_task_statusrecordings use the M3 wording MiaAI now sends agentsCI-fix checks (local):
check-synur-invariants.shandcheck-fork-invariants.shpass.effect-tsgo tsrs --noEmitis clean inapps/server,apps/web,apps/desktop,evals,packages/sharedandpackages/effect-codex-app-server. oxfmt 0.74 (the pinned vite-plus 1.4.0 formatter) reports no unformatted tracked files.i18n:checkandknip:checkpass.vp test runpasses 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:
vp check): once formatting passes, oxlint 1.89 still reports 278 errors in MiaAI's tree across 66 files: 221no-untranslated-copy(inference/local-model UI), 44 unused vars, 7no-hookless-use-functionand a few others. Fixing them needs catalog work in every locale, which is outside this round.SecretRequests.test.tsstill asserts the removedt3_secret_refs_consumed_totalcounter. The secrets directory is denied to the agent, so it was not edited.vi.mocktarget is missing./privaterealpath (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); onlyapps/mobilefailed. Both fixes are Ci-Compat: the tests and the code they cover match MiaAI'sb04a1049af.d310ad1513test(mobile)MiaAI-Lab/m3code, butenvironment-maintenance.test.tsstill stubbed thepingdotgg/t3codefeed and API URLs (403 / "Unexpected release request"). The stubs now come fromCLI_RELEASES_PAGE_URLandcliReleaseIndexPageUrl. Product behaviour is unchanged.2f7a076258test(mobile)SettingsServerControlsRouteScreenreads environments fromuseRemoteConnectionStatus, which the test did not mock. The real module loadsexpo-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/mobilesuite passes apart fromremoteRegistration.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 --noEmitinapps/mobileshows 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:checkandknip:checkpass. 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 onSecretRequests.test.ts(listed under "Still open"). Check fails because it aggregates Test Server 2.Verified (on
synur/patch-queue)scripts/check-fork-invariants.sh: passscripts/check-fork-protected.sh b04a1049af: fails, as intended, onapps/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 inpackages/contracts,provider-core,provider-acp,provider-opencode,apps/webandapps/desktop.vp test run, all passing:m3PluginRoute(3)instanceEnvironment(10), provider-opencodeOpenCode2Service(1), provider-acpAcpSessionRuntime(35), m3PluginHostManager(4)settingsSearchandCommandPalette.logic(60)vp fmt --checkandvp linton every file the queue changed: cleanvp run i18n:check: catalogs match the sourcevp run knip:check: passNot verified
apps/servertypecheck: 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/mobiletypecheck: 19 errors in native navigation files andscripts/measure-renders.mts(none in queue files), from the same stale dependencies.vp checklint: 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.sdk.jsand sidecarfetchload from inside the sandboxed (opaque-origin) frame.Backup
backup/pr2-dual-merge(d6e876faa8): the previous PR head, including the laterfix(ci)commitsbackup/pr2-round1-fixes-stash(298e39d0e7): the uncommitted round-1 review fixesMade 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-depsgains asave-cachesinput (restore-only for jobs that execute untrusted trees). Main CI jobs get longer timeouts; build typecheck callsscripts/typecheck-all.sh. The nightlypr-sweepworkflow is removed. Upstream sync is scheduled, points at MiaAI-Lab/m3code, and the verify job checks out trustedscriptsand.github/actionsfrommain, runs Synur invariants, then installs withsave-caches: falsebefore 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-accessfor 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.