Skip to content

feat: sync and release MiniMax Code 0.8.0 - #631

Merged
hetaoBackend merged 4 commits into
mainfrom
feat/sync-minimax-code-0-8-0
Nov 28, 2026
Merged

hetaoBackend merged 4 commits into
mainfrom
feat/sync-minimax-code-0-8-0

Conversation

@hetaoBackend

@hetaoBackend hetaoBackend commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Change

Synchronize and prepare the standalone MiniMax Code 0.8.0 source release across the interactive TUI, headless mcode exec, mcode acp / @minimax-ai/code-acp, and the embedded Local Runtime V2 packages while preserving all standalone distribution boundaries and default-off telemetry privacy guarantees.

Highlights

  • Advisor (/advisor and --advisor): pair the active session model with a second advisor model that the agent can consult on architectural trade-offs and complex decisions (beta.advisor: false in config.yaml disables it).

  • Remote MCP OAuth: authorize OAuth-protected remote MCP servers from /mcp or mcode mcp login <name> / mcode mcp logout <name> across user-configured servers, project .mcp.json servers (--project), and local Plugin servers (--plugin), including manual redirect-URL completion over SSH or --no-browser.

  • Custom Provider & Multimodal Improvements:

    • Native Google Gemini protocol support (/model onboarding and mcode provider add --api-format google-generative-ai), inline audio and PDF inputs for models declaring them, and video support over OpenAI Chat Completions and Responses (input_video), with automatic audio-track stripping via mediabunny when sending video to models without audio input.
    • Multi-key rotation and cooldown via options.apiKeys in config.yaml, surfaced in /provider and mcode provider list.
    • Automatic weakest-to-strongest ordering for recognized thinking.effortOptions keywords (off, minimal, low, medium, high, xhigh, max, ultra), and ← / → effort switching in /model while a search query is active.
  • PTC & Browser Use:

    • PTC enabled by default for new sessions, removing the 64 KiB run_code source-length limit and adding opt-in session-local store / load (beta.ptcStore: true) and reusable scripts via save_run_code_script / import() (beta.ptcScripts: true).
    • Controlled-tab Browser Use model with mark_tab (page.keep()) one-turn carryover, isolated subagent profiles, and a dedicated browser-program-worker QuickJS runtime (browser.page(), browser.tabs(), browser.panel()).
  • ACP & CLI Startup:

    • @minimax-ai/code-acp upgraded to a zero-dependency self-bootstrapping launcher; mcode acp binds stdio immediately to answer initialize while loading the Runtime in the background, reserves session/new IDs lazily until first use, exposes region-aware terminal and MCODE_PROVIDER_API_KEY auth methods, supports per-member delegation messaging/transcript/stop, and includes token/turn metadata under _meta["minimax-code/turn"].
    • Cold-start smartCleanup retention sweeps are skipped on mcode acp and mcode exec, and auth lease projection runs in parallel with built-in tool setup.
  • Safety, Resilience & UX:

    • write refuses to overwrite unread or externally modified files; writes to MCode's own state directories and nested MCode launches inside delete_guard sandboxes are blocked before creating lock or ownership state.
    • Isolated <dataDir>/run/mt-<id>/ (0700) auth lease broker runtime directories with concurrent refresh fencing.
    • Pasting 5,000+ characters creates a pasted-text.txt attachment with single-keystroke Backspace removal and undo; per-message attachment cap raised from 10 to 20 (100 MiB total).
    • Unified LLM call retry budget (up to 10 retries within 300s) with offline waiting, empty-reply retries, and streaming repetition-loop detection.
    • Stable Homebrew/Linuxbrew opt/<formula> Node toolchain path resolution across upgrades; per-section config.yaml fallback with user-facing notices; hard-link filesystem preflight check; Vela [V] status line updated to emit raw Runtime session and turn IDs while keeping request as a 6-character opaque ref.
  • PR labels: enhancement, cli, tui, dependencies, perf:full

Validation

  • Checks run and results (revision b6acc331947b59ae605b0c5b4e0cfefe61fafd0f, darwin/arm64, Node v26.4.0, profile full via MCODE_VERIFY_REPORT_DIR=/tmp/mcode-verify-0.8.0 pnpm verify — 17/17 applicable gates PASS in 174.4s, plus all 3 Gitleaks scans PASS with 0 findings):
    • check:source: PASS (4,897 reviewed source files, workspace exports, plugin contract, and native helper integrity verified)
    • check:tsconfig: PASS (168 standalone package paths)
    • export source preview: PASS
    • test:release-tools: PASS (56 passed, 1 platform-skipped)
    • lint:tui: PASS (0 errors)
    • typecheck: PASS (0 errors)
    • build: PASS (standalone CLI, mcode-tools, image-preview-worker, quickjs-worker, and browser-program-worker)
    • check:standalone: PASS
    • test:artifact: PASS (6/6 passed, including browser-program-worker.js execution)
    • test:capabilities: PASS (305 test files passed)
    • typecheck:code-sdk & test:code-sdk: PASS (81/81 passed)
    • test:status-contract: PASS (9/9 passed)
    • test:smoke: PASS (21/21 passed)
    • test:byok: PASS (4/4 end-to-end CLI/SQLite/hook/cancellation suites passed)
    • test:policy: PASS (214/214 passed)
    • test:sandbox: PASS (48/48 passed)
    • gitleaks (git, exported source archive, and dist/): PASS (0 findings)
  • Performance: perf:full applied (touches session history/compaction, streaming retry/loop guards, and the tool execution loop; CI performance full suite will run on this PR head).
  • NOT RUN, platform limitations and live-service boundaries:
    • Native Windows host execution (pnpm verify --profile windows on NTFS/PowerShell) and Linux Node 24 matrix jobs were not run locally on macOS and rely on GitHub Actions CI.
    • test:release-package (profile: package) requires a tagged release tarball and was skipped in source verification.
    • Provider protocol, OAuth, MCP OAuth, and BYOK multi-key tests ran against deterministic local loopback fixtures rather than live external commercial endpoints.

Publication and contribution checks

  • I have permission to contribute these changes under the existing licenses applicable to the changed files/packages; imported material and its provenance are identified and existing notices are preserved.
  • No credentials, account data, real user content, internal source history or private review material is included.
  • Added/removed source files were reviewed before regenerating release/public-source.json; new tests are declared in test/vitest-suites.json where applicable.
  • Shared English/Chinese documentation and capability/verification records are updated where applicable. Mock/offline results are not described as live-service acceptance.

Maintainer handoff

Publication scope or license changes (if any):

  • Added es-module-lexer@1.7.0 (MIT) to pnpm-lock.yaml and refreshed release/dependency-licenses.json.
  • Updated THIRD_PARTY_NOTICES.md, packages/tui/THIRD_PARTY_NOTICES.md, packages/agent-core/THIRD_PARTY_NOTICES.md, and packages/local-runtime-v2/THIRD_PARTY_NOTICES.md with complete English notices for QuickJS / quickjs-emscripten (MIT), mediabunny (MPL-2.0), and MIT-licensed stream loop / BYOK key-rotation safeguards.
  • release/extraction.json retains its 32 package roots and selective baseline (sourceRevision unchanged because desktop-only / internal-only modules remain outside this selective standalone sync).

Shared-source port: complete.

Synchronize the reviewed 0.8.0 standalone CLI, TUI, ACP, and embedded local runtime changes while preserving standalone distribution boundaries, default-off telemetry privacy guarantees, and third-party license notices.
@hetaoBackend hetaoBackend added enhancement New feature or request dependencies Pull requests that update a dependency file tui Interactive terminal UI (TUI) cli Standalone mcode: TUI, headless, ACP and source builds/tooling perf:full Run the full performance suite; required for performance-sensitive changes labels Nov 28, 2026
): string {
const read =
kind === 'text'
? `(element) => ${pageTextExpression(readV2)}`
const argJson = JSON.stringify(args.arg ?? null);
const call = args.isFunction === true ? `(${source})(${argJson})` : `(() => (${source}))()`;
const make =
args.isFunction === true ? `() => (${source}\n)(${argJson})` : `() => (${source}\n)`;
Comment thread packages/code-acp/acp.js
const isNodeBinShim = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/iu.test(command);
const commandLine = [
escapeWindowsCmdCommand(command),
...cmdArgs.map((arg) => quoteWindowsCmdArg(arg, isNodeBinShim)),
expect(big.error?.code).toBe('EVALUATE_RESULT_TOO_LARGE');
const long = (await run(
new ScriptPageTransport(),
`return await page.evaluate(() => ${JSON.stringify('y'.repeat(70 * 1024))}.length);`,
@hetaoBackend
hetaoBackend merged commit 009354d into main Nov 28, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Standalone mcode: TUI, headless, ACP and source builds/tooling dependencies Pull requests that update a dependency file enhancement New feature or request perf:full Run the full performance suite; required for performance-sensitive changes tui Interactive terminal UI (TUI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants