The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.
For the release status of each capability, see Capabilities and progress.This page lists every extension diagnostic code in three groups, “Package and validation”, “Preview”, and “Runtime”, with what each means and how to fix it. The last section lists the notices users may see in the UI. For how to read diagnostics and troubleshoot by symptom, see Test and troubleshoot.
Diagnostic shape
A diagnostic from validation is:
{ code, file, line, column, message, fix, level }
Field
Meaning
code
A diagnostic code from the tables below
file, line, column
The source location of the problem. May be absent
message
What’s wrong. It may include specifics, such as the offending import or the esbuild error
fix
The change to make
level
'error' or 'warning'. EXTENSION_PACKAGE_SKIPPED, EXTENSION_SHADOWING, COMMAND_RETIRED, COMMAND_ANSWER_INVALID, and COMMAND_TEXT_TRUNCATED are 'warning'
Runtime diagnostics in inspect.runtime.diagnostics are { at, code, message, fix?, slot?, key? }. They have no source location and no level. slot and key identify the site, and at is the time (Unix ms). In tests, site.diagnostics entries are { code, message, fix?, plugin? }.The fix loop: make the change in fix, then run the same action again (test, preview, and so on).
EXTENSION_PACKAGE_SKIPPED, EXTENSION_SHADOWING, COMMAND_RETIRED, COMMAND_ANSWER_INVALID, and COMMAND_TEXT_TRUNCATED are warnings and don’t block preview or the current action. Every other diagnostic code blocks the current action.
Package and validation
Returned by init, test, and preview, and also shown in inspect.source.diagnostics. Static checks find all of these before any extension code runs.
Diagnostic code
Meaning
How to fix
HOOK_MODULES_INVALID
modules in hooks/hooks.json is missing, lists more than one path, has an invalid suffix, or points to a missing file
Set modules to one relative path with one of the suffixes .js .mjs .cjs .jsx .ts .mts .cts .tsx, and make sure the file exists. An extension package should use { "modules": ["./register.tsx"] }
HOOK_MODULE_EXPORT_INVALID
The module doesn’t export a register function
Export register from the module, for example export const register: Register = (on) => { … }
HOOK_MODULES_UNSUPPORTED_FORMAT
A .codex-plugin package declares modules
Remove modules from the .codex-plugin package, or use the .minimax-plugin format
MODS_NOT_SUPPORTED_YET
Extensions aren’t loaded from compatibility-format plugin packages at this stage
Use the .minimax-plugin format and rewrite the module the extension way
EXTENSION_PACKAGE_INVALID
Package validation failed: the manifest, or a *.mcp.json, Skill, or Agent it declares, is invalid
Fix .minimax-plugin/plugin.json or the files it declares, using the reader error in message. The manifest requires schemaVersion: 1, name, version, description, author, icon, category, exampleQueries, apps, mcpServers, skills
EXTENSION_NAME_MISMATCH
The manifest name doesn’t match pluginId
Set name in .minimax-plugin/plugin.json to pluginId, or call preview with the name in the manifest
EXTENSION_PACKAGE_SKIPPED (warning)
One declaration in the package was skipped. The rest loads normally
Fix the corresponding file using the code in message. If you don’t need it, remove the declaration from the manifest
EXTENSION_EVENT_UNSUPPORTED
The event isn’t ui.render, command.run, or an observe event
Use on('ui.render', { site: 'above-prompt' }, hook) for the status band, on('ui.render', { site: 'pane', id: '<literal>' }, hook) for a panel, on('ui.render', { site: 'backdrop' }, hook) for the backdrop, and on('ui.render', { site: 'above-prompt-list' }, hook)Coming soon to arrange the status band’s rows. Use on('command.run', { command: '<literal>' }, hook) for a slash command. The observe events are session.start, turn.start, turn.complete, tool.call, tool.result, session.measure, and ui.close
EXTENSION_MATCHER_INVALID
The matcher isn’t an object literal whose values are all string literals, it names a site or field that doesn’t exist, or a command.run matcher names a command this module doesn’t register
Make the second argument of on() an object literal with string literal values, such as { site: 'above-prompt' }, { site: 'above-prompt-list' }Coming soon, { site: 'pane', id: 'board' }, or { command: 'todo' }. In a command.run matcher, use the command name this module passes to ctx.command.register
EXTENSION_DUPLICATE_ENTRY
Two ui.render hooks use the same site or the same panel id
Register only one ui.render for the status band (put everything in one Box), only one for above-prompt-listComing soon, and only one per panel id
EXTENSION_REGISTER_SHAPE_INVALID
on() isn’t at the top level of the register body, or the hook passed to on() is neither an inline function nor a function declared at the top level of this module
Move on() to the top level of register: not inside conditions, loops, or callbacks, and not after any await. Write the hook inline in on(), or reference a function declared at module top level
EXTENSION_CALL_SHAPE_INVALID
A ctx call isn’t written in full, the server name in ctx.mcp.call isn’t a literal, or ctx.command.register gets something other than a plain object literal or a name that isn’t a literal
Use the full ctx.<domain>.<method>(…) form. Don’t destructure, alias, or pass ctx to other functions. Make the first argument of ctx.mcp.call a string literal. Pass ctx.command.register an object literal with only name, description, and argumentHint, with name as a string literal, and no spreads, computed keys, getters, setters, or methods
EXTENSION_COMMAND_NAME_INVALID
The command name in ctx.command.register breaks the naming rules, or is the name of a built-in command
Use 1 to 64 letters, digits, _, or -, and avoid built-in command names such as compact and goal (full list in the Extensions reference). Rename the command.run matcher too
EXTENSION_STATE_SHAPE_INVALID
The defineState argument isn’t a literal
Use literals for both the keys and the defaults of defineState, and put it at module top level
EXTENSION_IMPORT_FORBIDDEN
An import points outside the package or to a module that isn’t allowed; a file-header JSX pragma conflicts with the host settings; or there’s a value import from a path that doesn’t count as package contents (.minimax-plugin/types/, the root tsconfig.json, dist/, node_modules/)
Import only @minimax/mcode-plugin-extension, /ui, /jsx-runtime, /jsx-dev-runtime (tests can also import /testing), and relative paths inside the package. Remove bare module names, node:, data:, and absolute paths. Delete file-header @jsx, @jsxImportSource, and @jsxRuntime comments. Use import type for files in the excluded paths, or move the files out of them
EXTENSION_COMPILE_FAILED
esbuild compilation failed
Fix the source using the esbuild error in message
EXTENSION_RENDER_SIDE_EFFECT
ctx.state.set or ctx.state.update is statically visible in the draw function
Move ctx.state.set / ctx.state.update into an interaction callback, a ctx.clock callback, or an observe event
EXTENSION_SHADOWING (warning)
A site hook never references next, so it hides every layer after it on that site
Put await next() in what you draw (or return next() to add nothing) to keep other plugins’ layers. If you really mean to hide them, you can ignore this warning. Coming soon Once the status band is drawn in two steps, above-prompt draws only your plugin’s own row and no longer warns without next; above-prompt-list, pane, and backdrop still need next
Preview
Returned by preview and withdraw.
Diagnostic code
Meaning
How to fix
EXTENSION_PREVIEW_NOT_ACTIVE
This session has no preview of the plugin
Use inspect to confirm the plugin name. If the preview was already withdrawn or never took effect, you don’t need withdraw. Disable or uninstall installed extensions in plugin management
EXTENSION_NAME_RESERVED
The preview plugin name matches an official plugin
Give the preview plugin a different name. A preview can’t replace an official plugin
EXTENSION_CANDIDATE_DRIFTED
Before it took effect, the candidate version no longer matched this session’s record: a newer preview or reload bound another version, withdraw ran, or the file snapshot changed
Run preview again. Don’t start several previews of the same plugin at once
Runtime
Shown in inspect.runtime.diagnostics and in site.diagnostics in tests, or thrown as the error code of a ctx call.
Diagnostic code
Meaning
How to fix
EXTENSION_ENTRY_MISMATCH
The on() calls actually made during loading differ from the validation record
Make the runtime on() event names and matchers match the validation record. Run preview again to refresh the record
EXTENSION_REGISTER_FAILED
register(on) threw during loading
Fix the error at module top level or in register using message, then preview again. The old version keeps running until you fix it
CALL_NOT_DECLARED
A method or server outside calls: was called at runtime
Call only the methods and servers listed in calls:. When you need a new call, change the code and preview again. calls: is regenerated from the code
INVOCATION_SETTLED
ctx was called after the callback finished, or at module top level
Keep the work in the callback’s await chain. Don’t use setTimeout, and don’t leave Promises unawaited
ACTIVATION_RETIRED
A callback from a retired Activation fired, such as a timer left over from before a reload
Run preview again, or wait for the installed version to finish loading
EXTENSION_DISABLED
The circuit breaker disabled the plugin or hook (3 failures in a row, or the plugin hung, crashed, or failed to load)
Fix the hook that tripped the breaker and preview again, or ask the user to click “Retry” on the pause notice
PERMISSION_REQUIRED
The permission decision couldn’t be completed
The permission check itself failed. Retry, or ask the user to add an allow rule for this server tool
PERMISSION_DENIED
A permission rule denied the call, or the user denied or closed the permission card, or stopped the turn
Don’t retry automatically. Tell the user what the call needs and let them decide again
CANCELLED
The call was cancelled: the caller aborted its signal, or the preview was withdrawn or reloaded while waiting for permission
Nothing to change in the extension. The next call can try again
AGENT_CONCURRENCY_LIMIT
Too many sub-agents from this plugin are running in this session
Wait for a turn.complete with one of your own agentIds before starting another
AGENT_UNKNOWN_TYPE
agentType isn’t an Agent available in this session
Leave out agentType (defaults to worker), use explore for read-only investigation, or use a built-in or plugin-provided Agent name
AGENT_START_FAILED
The sub-agent couldn’t start
Handle it using the reason in message. Check that model is a provider/model this session can use, then start it again from a new Invocation
ARGUMENT_INVALID
A ctx call got invalid arguments
Follow the argument shapes and value limits in Extension API
PROMPT_READ_UNAVAILABLE
The message box didn’t respond in time (within 2 seconds)
The current session has no visible message box. Read it again from a later user action
MCP_SERVER_AMBIGUOUS
This plugin has no server with that name, and the name matches more than one server (user-configured or from other plugins)
Use the full name for another plugin’s server: '<plugin-name>/<declared-name>'
MCP_CALL_RATE_LIMITED
ctx.mcp.call exceeded 60 calls per plugin per minute
Call less often: combine requests, or cache results in ctx.state
GESTURE_QUEUE_FULL
This plugin’s button action queue in this session is full (10), so the new action was rejected; or its observe event queue is full (32), so the new observe event was dropped
Cut down rapid repeated actions, and don’t keep hooks running for long. When a button action is rejected, the UI has already asked the user to try again later
STATE_WRITE_IN_RENDER
ctx.state was written during a draw
Move ctx.state.set into an interaction callback, a ctx.clock callback, or an observe event
EXTENSION_CORE_PROPS_INVALID
The props passed to next(e') don’t match this site’s definition
Change only the fields the site allows, and keep their types. Usually just call next() with no arguments
VIEW_LEASE_HELD
This site is already open in another view
Close the other view, then reopen this one
EXTENSION_NEXT_TWICE
next was called a second time in one hook invocation
Call next only once per hook. Combine multiple pieces of content into one element tree
EXTENSION_ROWS_INVALIDComing soon
An above-prompt-list layer passed next(e) rows other than the ones it received: it changed a row’s content, made up a row, or passed the same row twice. That list layer is skipped
Only filter or reorder e.props.rows, and pass the row objects unchanged to next({ ...e, props: { ...e.props, rows } }). To change what a row shows, change the above-prompt of the plugin that draws it. See status band row arrangement
COMMAND_NAME_RESERVED
ctx.command.register used the name of a built-in command, or a name that belongs to a Skill at the start of the Activation: the Skill’s runtime name, or the name shown in the / menu. The error doesn’t say which Skill
Pick another command name and rename the command.run matcher too. If the plugin works without this command, catch the error in session.start
COMMAND_NAME_TAKEN
Another plugin in this session already registered the name passed to ctx.command.register. message names that plugin
Pick another command name, or catch the error in session.start and go without this command. The plugin that registered first holds the name until it leaves the session
COMMAND_LIMIT_REACHED
ctx.command.register hit a limit: 32 commands per session, or 64 register calls that change commands per Activation
Register each command once in session.start with a literal name. Don’t register in a loop or on every event
COMMAND_PAUSED
The circuit breaker has paused the command.run hook for the command the user ran. The UI has already told the user the plugin is paused
Fix the error that caused the pause (the thrown, timeout, or EXTENSION_HOOK_EXPIRED diagnostic before it), then preview again
COMMAND_RETIRED (warning)
The user ran a command while the plugin was leaving the session or being replaced by a new version. The UI has already told the user the command is unavailable for now
If this was a reload, nothing to change: the new version registers its commands again in session.start
COMMAND_ANSWER_INVALID (warning)
The command.run hook returned something other than { text } or nothing, such as an object with keys besides text, or a text that isn’t a string. The UI shows nothing
Return { text } with a string text and nothing else from the command.run hook, or return nothing
COMMAND_TIMEOUT
The command got no answer within 15 seconds: it was queued behind earlier button actions and commands from this plugin, or the hook was too slow. The UI has already told the user it timed out
A timeout only ends the wait. A hook that is already running runs to the end (including any permission card it is waiting on) and keeps its place in the queue until then. The hook may already have run, so a retry isn’t always safe. Keep button callbacks and command.run hooks short, and move slow ctx.model.complete and ctx.mcp.call calls out. If the work can finish in a ctx.clock.after callback, answer first and do it there
COMMAND_UNHANDLED
No command.run hook answered the plugin command the user ran: no hook’s matcher names this command
Register a handler with on('command.run', { command: '<name>' }, (ctx, e) => ({ text })), using the same literal name you pass to ctx.command.register. Don’t register a command you can’t answer
COMMAND_FAILED
When the user ran the command, its command.run hook threw, timed out, or the process restarted. The UI has already told the user it failed
Fix the error using the hook’s own diagnostic just before it (thrown, timeout, EXTENSION_HOOK_EXPIRED, or EXTENSION_WORKER_CRASHED). Catch recoverable errors in the hook and answer with { text }
COMMAND_TEXT_TRUNCATED (warning)
The command.run hook’s answer was longer than 500 characters, so the user sees only the first 500
Answer in one short sentence. The answer shows as a toast, up to 500 characters. Put longer content in ctx.state, or in a panel the command opens
THEME_PALETTE_REJECTED
The theme colors as written aren’t readable: before any host correction, a text anchor has a contrast ratio below 3:1 against a surface anchor in the same set. message names the two colors and the ratio, and, when colors are split by light and dark mode, the mode
Raise the contrast between text-primary and surface-0 (or the other text and surface anchors message names). The correction needed is too large: after it, the palette would no longer be the one you designed, so the host doesn’t fix it for you. Change the anchors yourself
EXTENSION_SVG_REFUSED
The source of an <Svg> on the backdrop failed the SVG check, so this layer’s output was rejected. An <Svg> in the status band or a panel has only its props checked, not this. message reads Svg refused: <category> (<content>), for example Svg refused: external-reference (@import) or Svg refused: element (a). Other layers draw as usual. A refusal isn’t a failure and doesn’t pause the hook
Remove what message names from source. Reference only #id and url(#id) in the same image, don’t embed bitmaps, HTML, or fonts, and write plain, well-formed markup with no escapes, no character references beyond the five named XML entities, no DOCTYPE, and no CDATA. The categories element, attribute, and value mean content outside standard drawing SVG. too-many-nodes means an image or a marker exceeds its node limit, or a marker is nested in a marker. nested-use means a <use> references another <use>. See Backdrop for how to write it
EXTENSION_HANDLE_STALE
When a press, input, selection, or similar action arrived, the screen had already redrawn and no single matching control exists on the new screen, so the action was dropped. The host looks for the same control on the latest screen by element type, callback, and key chain (the key of the control and of each ancestor, or an ancestor’s position in its parent when it has no key), and delivers the action only if it finds exactly one. It happens when neither the control nor its ancestors have a key, the control is gone, more than one control matches, or the plugin has reloaded. These drops don’t count toward a pause, show no notice in the UI, and aren’t recorded in inspect. In tests, press fails with this code
Add a key to each list row and to controls whose callback triggers a redraw (Button, Input, Select, Switch), with no duplicate key among siblings. Or find the element again on the latest screen and act on it. See Key rules
thrown
The hook threw. message has the error
Fix the error using message, then run test or preview again
timeout
Synchronous code ran longer than 2 seconds
Remove busy loops and long synchronous computation from the hook
EXTENSION_HOOK_EXPIRED
The hook’s own time exceeded 10 seconds
Fetch less data per draw, cache results in ctx.state, or move slow work into a callback
EXTENSION_WORKER_CRASHED
The extension process restarted (an infinite loop or memory that keeps growing)
Look for infinite loops or growing memory in the hooks
toast.dropped
More than 6 toasts a minute. Extra ones are dropped until the one-minute window rolls over. Each run of consecutive drops is recorded once
Show fewer toasts. Put state that keeps changing on the status band
console.<level>
One line of the extension’s console output, in inspect.runtime.console
Not an error. Use it for debugging
Other codes you may see
These codes aren’t in the diagnostic code list in the type declarations. The host or the test utilities report them. Every code that appears in a diagnostic carries a fix. COMMAND_BUSY, COMMAND_UNKNOWN, and COMMAND_ARGS_TOO_LONG never appear in diagnostics. They show up only as error codes from runCommand in tests and as UI notices. In diagnostics, COMMAND_BUSY is recorded as GESTURE_QUEUE_FULL.
Code
Meaning
How to fix
EXTENSION_RENDER_DEADLINE
A draw hadn’t finished after 30 seconds
Don’t wait for slow MCP calls in the draw. Draw a placeholder first, then refresh with ctx.ui.invalidate() once the data arrives
EXTENSION_HOOK_FAILED
A callback threw or timed out
Fix the error using message, then run the tests again
aborted
The hook was aborted
await every ctx call inside the hook. Don’t let them run detached from the hook
EXTENSION_HANDLE_FORGED
A callback not created by this module was returned
Return only callbacks created by this module, or what next() returned
EXTENSION_REQUEST_INVALID
The request was invalid, for example session info was unavailable, or the site, slot, key, or matcher fields didn’t line up
Check the fields named in message
EXTENSION_SERVICE_FAILED
A host service rejected a ctx call. Storage over quota (a single ctx.store.set value over 256 KB, or the plugin’s total storage over 8 MB), a write to an undeclared ctx.state key, an invalid store key, an MCP server that can’t be found, and a failed MCP call all surface as this code, with the reason in message. If you don’t catch it, inspect records it as thrown
Check the arguments of the ctx call named in message
TREE_INVALID
The element tree has an element or property this site doesn’t accept (reported only in tests)
Return only elements from the catalog, with the allowed property values. The real UI replaces invalid parts with a placeholder notice
console.dropped
console output exceeded 200 lines per plugin per minute, and the extra lines were dropped
Log less
EXTENSION_OBSERVE_FAILED
The host couldn’t read the contents of an observe event, so the event wasn’t delivered
Nothing to do
EXTENSION_BREAKER_RESET
The user clicked “Retry” on the pause notice, and the pause in this session was cleared
Nothing to do
THEME_PALETTE_ADJUSTED
The theme colors took effect, with corrections: an anchor used the host default, or a text color was darkened or lightened to get as close to 4.5:1 as possible. inspect keeps this record
To keep your own colors, set each text color in colors so it reaches 4.5:1 against the surface color it sits on, then preview. A line saying an anchor used the host default means you didn’t set that anchor
COMMAND_BUSY
The queue shared by button actions and commands is full (10), so this command didn’t run and no hook was called. runtime.diagnostics records it as GESTURE_QUEUE_FULL
Make button callbacks and command.run hooks finish quickly. The UI has already asked the user to try again later
COMMAND_UNKNOWN
No plugin in this session registered this command name. runCommand in tests also reports this code for a name that isn’t registered
Check that ctx.command.register ran successfully in session.start and that the name matches the one you run
COMMAND_ARGS_TOO_LONG
The command arguments are longer than 4096 characters after trimming leading and trailing whitespace. runCommand in tests checks this too
Shorten the arguments
Notices in the UI
Users may see the text below in the UI. These aren’t diagnostic codes, but they help you tell what happened.
Pause notice
When an extension is paused, the status band or panel shows a notice:
Text
When it appears
Paused · this session
The title. The extension is paused in the current session (EXTENSION_DISABLED). Other sessions aren’t affected
Failed or timed out 3 times in a row; paused in this session
A hook failed 3 times in a row
The plugin hung, crashed or failed to load; paused in this session
The whole plugin has a problem
Last error: …
The error message from the last failure
Retry
A button. Clicking it tries to recover
Retry didn’t go through. Try again later
It still failed after clicking “Retry”
When a site has several plugins, the notice shows only when every layer is paused.
Other notices
Text
When it appears
Related diagnostic code
Too many actions. Try again later
10 button actions are already queued, so new presses are rejected
GESTURE_QUEUE_FULL
The action didn’t go through. Try again
A press or similar action was rejected for another reason
Check inspect.runtime.diagnostics
Part of an extension can’t be displayed
The screen has an element or property this site doesn’t accept, or exceeds the element tree limits, so that part is replaced with a placeholder notice
TREE_INVALID in tests. After a preview, recorded in inspect.runtime.sites; see SVG the window rejects
Already open in another view
This site is already open in another view
VIEW_LEASE_HELD
<plugin-name> has nothing to show here yet
The panel is open, but no layer drew anything
None
Command notices
After the user runs a plugin command, the UI shows the result in a toast. Replace todo below with the actual command name:
Text
When it appears
Related diagnostic code
Plugin commands
The heading of the plugin command group in the / menu
None
Running
Shown next to the item in the menu while the command is still running
None
/todo didn’t respond
No command.run hook answered the command
COMMAND_UNHANDLED
/todo failed
The command.run hook threw, timed out, or the process restarted
COMMAND_FAILED
/todo timed out and may have run already
No answer within 15 seconds
COMMAND_TIMEOUT
/todo is unavailable: the plugin is paused
The circuit breaker paused the hook
COMMAND_PAUSED
/todo is unavailable: the plugin is reloading or disabled
The plugin is leaving the session or being replaced
COMMAND_RETIRED
/todo did not run: the plugin is busy, try again
The queue for button actions and commands is full
COMMAND_BUSY
The arguments of /todo are too long
The arguments are longer than 4096 characters
COMMAND_ARGS_TOO_LONG
/todo no longer exists
No plugin in this session registered this command
COMMAND_UNKNOWN
/todo didn’t run: this conversation no longer exists
The runtime session is gone
SESSION_NOT_FOUND
/todo didn’t run. Try again
The command didn’t run for another reason
Check inspect.runtime.diagnostics
When the command answers normally, the toast shows the text that command.run returned.
SVG the window rejects
After a screen reaches the window, the window checks it again and replaces any part it can’t draw with a placeholder. The reason goes in reason in inspect.runtime.sites (see runtime.sites). Two of these relate to <Svg>: invalid-svg is checked on every site, and unsafe-svg only on the backdrop.
reason
Meaning
How to fix
invalid-svg
The <Svg> props break the rules: an unknown prop, children, a source that is blank or longer than 131 072 characters, or a width / height out of range. The whole element tree is replaced, not just this image. Tests report TREE_INVALID and name the prop
Use only source, alt, width, and height. width and height are numbers greater than 0 and no more than 4096
unsafe-svg
The source of an <Svg> on the backdrop failed the SVG check. Only this image is replaced. An <Svg> in the status band or a panel doesn’t get this check. The runtime checks with the same rules first, so EXTENSION_SVG_REFUSED has usually been reported already
Fix source as described for EXTENSION_SVG_REFUSED
detail names the exact prop or content.
Next steps
Test and troubleshoot
Find the cause by symptom.
Extensions reference
Quick reference for events, ctx methods, elements, and limits.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MiniMax Code Docs","colors":{"primary":"#181E25","dark":"#181E25"},"logo":{"light":"https://mintcdn.com/agent-en/AWwAA_JD3rUWnMtN/logo/light.svg?fit=max\u0026auto=format\u0026n=AWwAA_JD3rUWnMtN\u0026q=85\u0026s=dd070cb1a0cc203f11cd45f588926f57","dark":"https://mintcdn.com/agent-en/AWwAA_JD3rUWnMtN/logo/dark.svg?fit=max\u0026auto=format\u0026n=AWwAA_JD3rUWnMtN\u0026q=85\u0026s=8796874562c21bdce4110337c42efc73","href":"https://code.minimax.io/about"},"favicon":"https://mintcdn.com/agent-en/P5MzPaVjsb-042G7/favicon.ico?fit=max\u0026auto=format\u0026n=P5MzPaVjsb-042G7\u0026q=85\u0026s=fa22cbc6858a880da7c77691939715bf","appearance":{"default":"light","strict":false},"navbar":{"links":[{"href":"https://agent.minimax.io","label":"Get Started","type":"button"}]},"footer":{"socials":{"discord":"https://discord.com/invite/hvvt8hAye6","x":"https://x.com/MiniMax_AI","linkedin":"https://www.linkedin.com/company/minimax-ai","github":"https://github.com/MiniMax-AI"}},"seo":{"metatags":{"canonical":"https://code.minimax.io/docs","og:image":"https://file.cdn.minimax.io/public/58eca777-e31f-448a-9823-e2220e49b426.png","og:type":"website","og:site_name":"MiniMax Code","og:locale":"en_US","title":"MiniMax Code – AI Agent for Complex Tasks | Changelog \u0026 Docs","description":"MiniMax Code is a general-purpose AI agent that builds full-stack web apps, presentations, deep research reports, and more. View the latest product updates, features, and research.","keywords":"MiniMax Code, AI agent, AI coding assistant, full-stack AI, PPT generator, deep research AI, MCP integration, Supabase AI, AI web app builder, MiniMax changelog","charset":"UTF-8","viewport":"width=device-width, initial-scale=1.0","twitter:card":"summary_large_image","twitter:site":"@MiniMax_AI","twitter:title":"MiniMax Code – AI Agent for Complex Tasks","twitter:description":"Build full-stack apps, presentations, and research reports with MiniMax Code. Powered by multi-agent AI.","twitter:image":"https://file.cdn.minimax.io/public/58eca777-e31f-448a-9823-e2220e49b426.png","robots":"index, follow"},"indexing":"all"},"fonts":{"family":"DM Sans"},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agent-en","hasAudioNarration":false,"actualSubdomain":"agent-en","customDomains":["agent.minimax.io"],"gitSource":{"type":"github","owner":"minimax-ai-dev","repo":"agent-docs","deployBranch":"main","contentDirectory":"packages/docs-en","isPrivate":true,"mountPath":"","label":"","_id":"6b10db109ffae5051c40f1ee"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1192b0bc251608b368d7c2","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"MiniMax Code","count":48},{"language":"default","tag":"Mini App Development","count":21},{"language":"default","tag":"CLI","count":12},{"language":"default","tag":"Agent Capabilities","count":10},{"language":"default","tag":"Desktop Features","count":9},{"language":"default","tag":"Extension Development","count":9},{"language":"default","tag":"Develop","count":8},{"language":"default","tag":"Core Workflows","count":6},{"language":"default","tag":"Get Started","count":5},{"language":"default","tag":"Learn","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"[class*=\"ask-ai\"],[id*=\"ask-ai\"],[class*=\"AskAI\"],button[aria-label*=\"Ask AI\"]{display:none!important}article h2{display:inline-block;padding:2px 14px;border-radius:16px;background-color:#EBF5FF;color:#0969DA;font-size:14px;font-weight:500;border:1px solid #B6D4FE;margin-top:2rem}article .techblog-list h2,.techblog-list h2{display:block!important;background-color:transparent!important;border:none!important;border-top:1px solid #E5E7EB!important;border-radius:0!important;padding:2rem 0 0 0!important;color:#374151!important;font-size:16px!important;font-weight:500!important;margin-top:2.5rem!important;margin-bottom:0.5rem!important}.techblog-list h2:first-of-type{margin-top:2.5rem!important}.dark .techblog-list h2{color:#E5E7EB!important;border-top-color:#374151!important}.techblog-list h2,.techblog-list h3{scroll-margin-top:80px}#footer a[href*=\"mintlify\"],[class*=\"attribution\"],footer a[href*=\"mintlify\"]{display:none!important}img{max-width:100%;height:auto;object-fit:contain}@media (min-width: 1024px){#sidebar{top:max(\n calc(var(--mintlify-slot-header-height, 7rem) + var(--banner-height, 0px)),\n 5rem\n )!important}}@media (max-width: 1023px){#sidebar>div:first-child,#sidebar-content>div:first-child{padding-top:16px!important}}.code-docs h2,.code-docs h3{display:block!important;padding:0!important;border-radius:0!important;background-color:transparent!important;color:inherit!important;border:none!important}.code-image-placeholder{border:1px dashed #CBD5E1;border-radius:8px;padding:16px;background:#F8FAFC;color:#475569;font-size:14px;line-height:22px;margin:16px 0 24px}.dark .code-image-placeholder{border-color:#475569;background:#111827;color:#CBD5E1}.code-screenshot{display:block;width:100%;margin:16px 0 24px;border:1px solid #E2E8F0;border-radius:8px;background:#FFFFFF}.dark .code-screenshot{border-color:#334155;background:#0F172A}.code-community-panel{display:grid;grid-template-columns:minmax(0, 1fr) 180px;gap:24px;align-items:center;border:1px solid #E2E8F0;border-radius:8px;padding:20px;margin:16px 0 8px;background:#FFFFFF}.code-community-panel p{margin-bottom:0}.code-qr-placeholder{display:flex;min-height:180px;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #CBD5E1;border-radius:8px;background:#F8FAFC;color:#334155;text-align:center}.code-qr-placeholder small{max-width:140px;color:#64748B;font-size:12px;line-height:18px}.code-community-qr{display:block;width:180px;max-width:100%;border:1px solid #E2E8F0;border-radius:8px;background:#FFFFFF}.dark .code-community-panel{border-color:#334155;background:#0F172A}.dark .code-qr-placeholder{border-color:#475569;background:#111827;color:#CBD5E1}.dark .code-qr-placeholder small{color:#94A3B8}@media (max-width: 640px){.code-community-panel{grid-template-columns:1fr}.code-qr-placeholder{min-height:220px}}body:has(.question-standalone-marker) header,body:has(.question-standalone-marker) #navbar,body:has(.question-standalone-marker) #sidebar,body:has(.question-standalone-marker) #sidebar-content,body:has(.question-standalone-marker) footer,body:has(.question-standalone-marker) [class*=\"navbar\"],body:has(.question-standalone-marker) [class*=\"Navbar\"],body:has(.question-standalone-marker) [class*=\"sidebar\"],body:has(.question-standalone-marker) [class*=\"Sidebar\"],body:has(.question-standalone-marker) [class*=\"search\"],body:has(.question-standalone-marker) [class*=\"Search\"],body:has(.question-standalone-marker) button[aria-label*=\"Search\"],body:has(.question-standalone-marker) button[aria-label*=\"搜索\"],body:has(.question-standalone-marker) [role=\"search\"]{display:none!important}body:has(.question-standalone-marker) #table-of-contents-layout,body:has(.question-standalone-marker) [aria-label=\"目录\"],body:has(.question-standalone-marker) [aria-label=\"Contents\"]{display:none!important}body:has(.question-standalone-marker) main,body:has(.question-standalone-marker) article{padding-top:0!important}body:has(.question-standalone-marker) article{max-width:900px!important;margin-left:auto!important;margin-right:auto!important}"}]}
{"page":{"pagePath":"extension/errors","slug":"/extension/errors","pageMetadata":{"title":"Diagnostic codes","sidebarTitle":"Diagnostic codes","description":"The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.","href":"/extension/errors"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Badge,Card,CardGroup,CodeBlock,Heading,Note,Table}=_components;if(!Badge)_missingMdxReference(`Badge`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(`div`,{className:`code-docs`,children:[_jsxs(_components.p,{children:[`For the release status of each capability, see `,_jsx(_components.a,{href:`/extension/progress`,children:`Capabilities and progress`}),`.`]}),_jsxs(_components.p,{children:[`This page lists every extension diagnostic code in three groups, “Package and validation”, “Preview”, and “Runtime”, with what each means and how to fix it. The last section lists the notices users may see in the UI. For how to read diagnostics and troubleshoot by symptom, see `,_jsx(_components.a,{href:`/extension/testing#inspect`,children:`Test and troubleshoot`}),`.`]}),_jsx(Heading,{level:`2`,id:`shape`,children:`Diagnostic shape`}),_jsx(_components.p,{children:`A diagnostic from validation is:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`file`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`line`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`column`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fix`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`level`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`A diagnostic code from the tables below`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`file`}),`, `,_jsx(_components.code,{children:`line`}),`, `,_jsx(_components.code,{children:`column`})]}),_jsx(_components.td,{children:`The source location of the problem. May be absent`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:`What’s wrong. It may include specifics, such as the offending import or the esbuild error`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fix`})}),_jsx(_components.td,{children:`The change to make`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`level`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`'error'`}),` or `,_jsx(_components.code,{children:`'warning'`}),`. `,_jsx(_components.code,{children:`EXTENSION_PACKAGE_SKIPPED`}),`, `,_jsx(_components.code,{children:`EXTENSION_SHADOWING`}),`, `,_jsx(_components.code,{children:`COMMAND_RETIRED`}),`, `,_jsx(_components.code,{children:`COMMAND_ANSWER_INVALID`}),`, and `,_jsx(_components.code,{children:`COMMAND_TEXT_TRUNCATED`}),` are `,_jsx(_components.code,{children:`'warning'`})]})]})]})]}),_jsxs(_components.p,{children:[`Runtime diagnostics in `,_jsx(_components.code,{children:`inspect.runtime.diagnostics`}),` are `,_jsx(_components.code,{children:`{ at, code, message, fix?, slot?, key? }`}),`. They have no source location and no `,_jsx(_components.code,{children:`level`}),`. `,_jsx(_components.code,{children:`slot`}),` and `,_jsx(_components.code,{children:`key`}),` identify the site, and `,_jsx(_components.code,{children:`at`}),` is the time (Unix ms). In tests, `,_jsx(_components.code,{children:`site.diagnostics`}),` entries are `,_jsx(_components.code,{children:`{ code, message, fix?, plugin? }`}),`.`]}),_jsxs(_components.p,{children:[`The fix loop: `,_jsxs(_components.strong,{children:[`make the change in `,_jsx(_components.code,{children:`fix`}),`, then run the same action again`]}),` (`,_jsx(_components.code,{children:`test`}),`, `,_jsx(_components.code,{children:`preview`}),`, and so on).`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`EXTENSION_PACKAGE_SKIPPED`}),`, `,_jsx(_components.code,{children:`EXTENSION_SHADOWING`}),`, `,_jsx(_components.code,{children:`COMMAND_RETIRED`}),`, `,_jsx(_components.code,{children:`COMMAND_ANSWER_INVALID`}),`, and `,_jsx(_components.code,{children:`COMMAND_TEXT_TRUNCATED`}),` are warnings and don’t block preview or the current action. Every other diagnostic code blocks the current action.`]})}),_jsx(Heading,{level:`2`,id:`package`,children:`Package and validation`}),_jsxs(_components.p,{children:[`Returned by `,_jsx(_components.code,{children:`init`}),`, `,_jsx(_components.code,{children:`test`}),`, and `,_jsx(_components.code,{children:`preview`}),`, and also shown in `,_jsx(_components.code,{children:`inspect.source.diagnostics`}),`. Static checks find all of these before any extension code runs.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Diagnostic code`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`How to fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`HOOK_MODULES_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`modules`}),` in `,_jsx(_components.code,{children:`hooks/hooks.json`}),` is missing, lists more than one path, has an invalid suffix, or points to a missing file`]}),_jsxs(_components.td,{children:[`Set `,_jsx(_components.code,{children:`modules`}),` to one relative path with one of the suffixes `,_jsx(_components.code,{children:`.js .mjs .cjs .jsx .ts .mts .cts .tsx`}),`, and make sure the file exists. An extension package should use `,_jsx(_components.code,{children:`{ \"modules\": [\"./register.tsx\"] }`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`HOOK_MODULE_EXPORT_INVALID`})}),_jsxs(_components.td,{children:[`The module doesn’t export a `,_jsx(_components.code,{children:`register`}),` function`]}),_jsxs(_components.td,{children:[`Export `,_jsx(_components.code,{children:`register`}),` from the module, for example `,_jsx(_components.code,{children:`export const register: Register = (on) => { … }`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`HOOK_MODULES_UNSUPPORTED_FORMAT`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`.codex-plugin`}),` package declares `,_jsx(_components.code,{children:`modules`})]}),_jsxs(_components.td,{children:[`Remove `,_jsx(_components.code,{children:`modules`}),` from the `,_jsx(_components.code,{children:`.codex-plugin`}),` package, or use the `,_jsx(_components.code,{children:`.minimax-plugin`}),` format`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`MODS_NOT_SUPPORTED_YET`})}),_jsx(_components.td,{children:`Extensions aren’t loaded from compatibility-format plugin packages at this stage`}),_jsxs(_components.td,{children:[`Use the `,_jsx(_components.code,{children:`.minimax-plugin`}),` format and rewrite the module the extension way`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_PACKAGE_INVALID`})}),_jsxs(_components.td,{children:[`Package validation failed: the manifest, or a `,_jsx(_components.code,{children:`*.mcp.json`}),`, Skill, or Agent it declares, is invalid`]}),_jsxs(_components.td,{children:[`Fix `,_jsx(_components.code,{children:`.minimax-plugin/plugin.json`}),` or the files it declares, using the reader error in `,_jsx(_components.code,{children:`message`}),`. The manifest requires `,_jsx(_components.code,{children:`schemaVersion: 1`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`version`}),`, `,_jsx(_components.code,{children:`description`}),`, `,_jsx(_components.code,{children:`author`}),`, `,_jsx(_components.code,{children:`icon`}),`, `,_jsx(_components.code,{children:`category`}),`, `,_jsx(_components.code,{children:`exampleQueries`}),`, `,_jsx(_components.code,{children:`apps`}),`, `,_jsx(_components.code,{children:`mcpServers`}),`, `,_jsx(_components.code,{children:`skills`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_NAME_MISMATCH`})}),_jsxs(_components.td,{children:[`The manifest `,_jsx(_components.code,{children:`name`}),` doesn’t match `,_jsx(_components.code,{children:`pluginId`})]}),_jsxs(_components.td,{children:[`Set `,_jsx(_components.code,{children:`name`}),` in `,_jsx(_components.code,{children:`.minimax-plugin/plugin.json`}),` to `,_jsx(_components.code,{children:`pluginId`}),`, or call `,_jsx(_components.code,{children:`preview`}),` with the name in the manifest`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`EXTENSION_PACKAGE_SKIPPED`}),` (warning)`]}),_jsx(_components.td,{children:`One declaration in the package was skipped. The rest loads normally`}),_jsxs(_components.td,{children:[`Fix the corresponding file using the code in `,_jsx(_components.code,{children:`message`}),`. If you don’t need it, remove the declaration from the manifest`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_EVENT_UNSUPPORTED`})}),_jsxs(_components.td,{children:[`The event isn’t `,_jsx(_components.code,{children:`ui.render`}),`, `,_jsx(_components.code,{children:`command.run`}),`, or an observe event`]}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`on('ui.render', { site: 'above-prompt' }, hook)`}),` for the status band, `,_jsx(_components.code,{children:`on('ui.render', { site: 'pane', id: '\u003cliteral>' }, hook)`}),` for a panel, `,_jsx(_components.code,{children:`on('ui.render', { site: 'backdrop' }, hook)`}),` for the backdrop, and `,_jsx(_components.code,{children:`on('ui.render', { site: 'above-prompt-list' }, hook)`}),` `,_jsx(Badge,{color:`blue`,size:`sm`,children:`Coming soon`}),` to arrange the status band’s rows. Use `,_jsx(_components.code,{children:`on('command.run', { command: '\u003cliteral>' }, hook)`}),` for a slash command. The observe events are `,_jsx(_components.code,{children:`session.start`}),`, `,_jsx(_components.code,{children:`turn.start`}),`, `,_jsx(_components.code,{children:`turn.complete`}),`, `,_jsx(_components.code,{children:`tool.call`}),`, `,_jsx(_components.code,{children:`tool.result`}),`, `,_jsx(_components.code,{children:`session.measure`}),`, and `,_jsx(_components.code,{children:`ui.close`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_MATCHER_INVALID`})}),_jsxs(_components.td,{children:[`The matcher isn’t an object literal whose values are all string literals, it names a site or field that doesn’t exist, or a `,_jsx(_components.code,{children:`command.run`}),` matcher names a command this module doesn’t register`]}),_jsxs(_components.td,{children:[`Make the second argument of `,_jsx(_components.code,{children:`on()`}),` an object literal with string literal values, such as `,_jsx(_components.code,{children:`{ site: 'above-prompt' }`}),`, `,_jsx(_components.code,{children:`{ site: 'above-prompt-list' }`}),` `,_jsx(Badge,{color:`blue`,size:`sm`,children:`Coming soon`}),`, `,_jsx(_components.code,{children:`{ site: 'pane', id: 'board' }`}),`, or `,_jsx(_components.code,{children:`{ command: 'todo' }`}),`. In a `,_jsx(_components.code,{children:`command.run`}),` matcher, use the command name this module passes to `,_jsx(_components.code,{children:`ctx.command.register`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_DUPLICATE_ENTRY`})}),_jsxs(_components.td,{children:[`Two `,_jsx(_components.code,{children:`ui.render`}),` hooks use the same site or the same panel `,_jsx(_components.code,{children:`id`})]}),_jsxs(_components.td,{children:[`Register only one `,_jsx(_components.code,{children:`ui.render`}),` for the status band (put everything in one `,_jsx(_components.code,{children:`Box`}),`), only one for `,_jsx(_components.code,{children:`above-prompt-list`}),` `,_jsx(Badge,{color:`blue`,size:`sm`,children:`Coming soon`}),`, and only one per panel `,_jsx(_components.code,{children:`id`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_REGISTER_SHAPE_INVALID`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`on()`}),` isn’t at the top level of the `,_jsx(_components.code,{children:`register`}),` body, or the hook passed to `,_jsx(_components.code,{children:`on()`}),` is neither an inline function nor a function declared at the top level of this module`]}),_jsxs(_components.td,{children:[`Move `,_jsx(_components.code,{children:`on()`}),` to the top level of `,_jsx(_components.code,{children:`register`}),`: not inside conditions, loops, or callbacks, and not after any `,_jsx(_components.code,{children:`await`}),`. Write the hook inline in `,_jsx(_components.code,{children:`on()`}),`, or reference a function declared at module top level`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_CALL_SHAPE_INVALID`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`ctx`}),` call isn’t written in full, the server name in `,_jsx(_components.code,{children:`ctx.mcp.call`}),` isn’t a literal, or `,_jsx(_components.code,{children:`ctx.command.register`}),` gets something other than a plain object literal or a `,_jsx(_components.code,{children:`name`}),` that isn’t a literal`]}),_jsxs(_components.td,{children:[`Use the full `,_jsx(_components.code,{children:`ctx.\u003cdomain>.\u003cmethod>(…)`}),` form. Don’t destructure, alias, or pass `,_jsx(_components.code,{children:`ctx`}),` to other functions. Make the first argument of `,_jsx(_components.code,{children:`ctx.mcp.call`}),` a string literal. Pass `,_jsx(_components.code,{children:`ctx.command.register`}),` an object literal with only `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`description`}),`, and `,_jsx(_components.code,{children:`argumentHint`}),`, with `,_jsx(_components.code,{children:`name`}),` as a string literal, and no spreads, computed keys, getters, setters, or methods`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_COMMAND_NAME_INVALID`})}),_jsxs(_components.td,{children:[`The command name in `,_jsx(_components.code,{children:`ctx.command.register`}),` breaks the naming rules, or is the name of a built-in command`]}),_jsxs(_components.td,{children:[`Use 1 to 64 letters, digits, `,_jsx(_components.code,{children:`_`}),`, or `,_jsx(_components.code,{children:`-`}),`, and avoid built-in command names such as `,_jsx(_components.code,{children:`compact`}),` and `,_jsx(_components.code,{children:`goal`}),` (full list in the `,_jsx(_components.a,{href:`/extension/reference#limits`,children:`Extensions reference`}),`). Rename the `,_jsx(_components.code,{children:`command.run`}),` matcher too`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_STATE_SHAPE_INVALID`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`defineState`}),` argument isn’t a literal`]}),_jsxs(_components.td,{children:[`Use literals for both the keys and the defaults of `,_jsx(_components.code,{children:`defineState`}),`, and put it at module top level`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_IMPORT_FORBIDDEN`})}),_jsxs(_components.td,{children:[`An import points outside the package or to a module that isn’t allowed; a file-header JSX pragma conflicts with the host settings; or there’s a value import from a path that doesn’t count as package contents (`,_jsx(_components.code,{children:`.minimax-plugin/types/`}),`, the root `,_jsx(_components.code,{children:`tsconfig.json`}),`, `,_jsx(_components.code,{children:`dist/`}),`, `,_jsx(_components.code,{children:`node_modules/`}),`)`]}),_jsxs(_components.td,{children:[`Import only `,_jsx(_components.code,{children:`@minimax/mcode-plugin-extension`}),`, `,_jsx(_components.code,{children:`/ui`}),`, `,_jsx(_components.code,{children:`/jsx-runtime`}),`, `,_jsx(_components.code,{children:`/jsx-dev-runtime`}),` (tests can also import `,_jsx(_components.code,{children:`/testing`}),`), and relative paths inside the package. Remove bare module names, `,_jsx(_components.code,{children:`node:`}),`, `,_jsx(_components.code,{children:`data:`}),`, and absolute paths. Delete file-header `,_jsx(_components.code,{children:`@jsx`}),`, `,_jsx(_components.code,{children:`@jsxImportSource`}),`, and `,_jsx(_components.code,{children:`@jsxRuntime`}),` comments. Use `,_jsx(_components.code,{children:`import type`}),` for files in the excluded paths, or move the files out of them`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_COMPILE_FAILED`})}),_jsx(_components.td,{children:`esbuild compilation failed`}),_jsxs(_components.td,{children:[`Fix the source using the esbuild error in `,_jsx(_components.code,{children:`message`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_RENDER_SIDE_EFFECT`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ctx.state.set`}),` or `,_jsx(_components.code,{children:`ctx.state.update`}),` is statically visible in the draw function`]}),_jsxs(_components.td,{children:[`Move `,_jsx(_components.code,{children:`ctx.state.set`}),` / `,_jsx(_components.code,{children:`ctx.state.update`}),` into an interaction callback, a `,_jsx(_components.code,{children:`ctx.clock`}),` callback, or an observe event`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`EXTENSION_SHADOWING`}),` (warning)`]}),_jsxs(_components.td,{children:[`A site hook never references `,_jsx(_components.code,{children:`next`}),`, so it hides every layer after it on that site`]}),_jsxs(_components.td,{children:[`Put `,_jsx(_components.code,{children:`await next()`}),` in what you draw (or `,_jsx(_components.code,{children:`return next()`}),` to add nothing) to keep other plugins’ layers. If you really mean to hide them, you can ignore this warning. `,_jsx(Badge,{color:`blue`,size:`sm`,children:`Coming soon`}),` Once the status band is drawn in two steps, `,_jsx(_components.code,{children:`above-prompt`}),` draws only your plugin’s own row and no longer warns without `,_jsx(_components.code,{children:`next`}),`; `,_jsx(_components.code,{children:`above-prompt-list`}),`, `,_jsx(_components.code,{children:`pane`}),`, and `,_jsx(_components.code,{children:`backdrop`}),` still need `,_jsx(_components.code,{children:`next`})]})]})]})]}),_jsx(Heading,{level:`2`,id:`preview`,children:`Preview`}),_jsxs(_components.p,{children:[`Returned by `,_jsx(_components.code,{children:`preview`}),` and `,_jsx(_components.code,{children:`withdraw`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Diagnostic code`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`How to fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_PREVIEW_NOT_ACTIVE`})}),_jsx(_components.td,{children:`This session has no preview of the plugin`}),_jsxs(_components.td,{children:[`Use `,_jsx(_components.code,{children:`inspect`}),` to confirm the plugin name. If the preview was already withdrawn or never took effect, you don’t need `,_jsx(_components.code,{children:`withdraw`}),`. Disable or uninstall installed extensions in plugin management`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_NAME_RESERVED`})}),_jsx(_components.td,{children:`The preview plugin name matches an official plugin`}),_jsx(_components.td,{children:`Give the preview plugin a different name. A preview can’t replace an official plugin`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_CANDIDATE_DRIFTED`})}),_jsxs(_components.td,{children:[`Before it took effect, the candidate version no longer matched this session’s record: a newer preview or reload bound another version, `,_jsx(_components.code,{children:`withdraw`}),` ran, or the file snapshot changed`]}),_jsxs(_components.td,{children:[`Run `,_jsx(_components.code,{children:`preview`}),` again. Don’t start several previews of the same plugin at once`]})]})]})]}),_jsx(Heading,{level:`2`,id:`runtime`,children:`Runtime`}),_jsxs(_components.p,{children:[`Shown in `,_jsx(_components.code,{children:`inspect.runtime.diagnostics`}),` and in `,_jsx(_components.code,{children:`site.diagnostics`}),` in tests, or thrown as the error code of a `,_jsx(_components.code,{children:`ctx`}),` call.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Diagnostic code`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`How to fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_ENTRY_MISMATCH`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`on()`}),` calls actually made during loading differ from the validation record`]}),_jsxs(_components.td,{children:[`Make the runtime `,_jsx(_components.code,{children:`on()`}),` event names and matchers match the validation record. Run `,_jsx(_components.code,{children:`preview`}),` again to refresh the record`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_REGISTER_FAILED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`register(on)`}),` threw during loading`]}),_jsxs(_components.td,{children:[`Fix the error at module top level or in `,_jsx(_components.code,{children:`register`}),` using `,_jsx(_components.code,{children:`message`}),`, then `,_jsx(_components.code,{children:`preview`}),` again. The old version keeps running until you fix it`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CALL_NOT_DECLARED`})}),_jsxs(_components.td,{children:[`A method or server outside `,_jsx(_components.code,{children:`calls:`}),` was called at runtime`]}),_jsxs(_components.td,{children:[`Call only the methods and servers listed in `,_jsx(_components.code,{children:`calls:`}),`. When you need a new call, change the code and `,_jsx(_components.code,{children:`preview`}),` again. `,_jsx(_components.code,{children:`calls:`}),` is regenerated from the code`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INVOCATION_SETTLED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ctx`}),` was called after the callback finished, or at module top level`]}),_jsxs(_components.td,{children:[`Keep the work in the callback’s `,_jsx(_components.code,{children:`await`}),` chain. Don’t use `,_jsx(_components.code,{children:`setTimeout`}),`, and don’t leave Promises unawaited`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ACTIVATION_RETIRED`})}),_jsx(_components.td,{children:`A callback from a retired Activation fired, such as a timer left over from before a reload`}),_jsxs(_components.td,{children:[`Run `,_jsx(_components.code,{children:`preview`}),` again, or wait for the installed version to finish loading`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_DISABLED`})}),_jsx(_components.td,{children:`The circuit breaker disabled the plugin or hook (3 failures in a row, or the plugin hung, crashed, or failed to load)`}),_jsxs(_components.td,{children:[`Fix the hook that tripped the breaker and `,_jsx(_components.code,{children:`preview`}),` again, or ask the user to click “Retry” on the pause notice`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PERMISSION_REQUIRED`})}),_jsx(_components.td,{children:`The permission decision couldn’t be completed`}),_jsx(_components.td,{children:`The permission check itself failed. Retry, or ask the user to add an allow rule for this server tool`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PERMISSION_DENIED`})}),_jsx(_components.td,{children:`A permission rule denied the call, or the user denied or closed the permission card, or stopped the turn`}),_jsx(_components.td,{children:`Don’t retry automatically. Tell the user what the call needs and let them decide again`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CANCELLED`})}),_jsxs(_components.td,{children:[`The call was cancelled: the caller aborted its `,_jsx(_components.code,{children:`signal`}),`, or the preview was withdrawn or reloaded while waiting for permission`]}),_jsx(_components.td,{children:`Nothing to change in the extension. The next call can try again`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_CONCURRENCY_LIMIT`})}),_jsx(_components.td,{children:`Too many sub-agents from this plugin are running in this session`}),_jsxs(_components.td,{children:[`Wait for a `,_jsx(_components.code,{children:`turn.complete`}),` with one of your own `,_jsx(_components.code,{children:`agentId`}),`s before starting another`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_UNKNOWN_TYPE`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`agentType`}),` isn’t an Agent available in this session`]}),_jsxs(_components.td,{children:[`Leave out `,_jsx(_components.code,{children:`agentType`}),` (defaults to `,_jsx(_components.code,{children:`worker`}),`), use `,_jsx(_components.code,{children:`explore`}),` for read-only investigation, or use a built-in or plugin-provided Agent name`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AGENT_START_FAILED`})}),_jsx(_components.td,{children:`The sub-agent couldn’t start`}),_jsxs(_components.td,{children:[`Handle it using the reason in `,_jsx(_components.code,{children:`message`}),`. Check that `,_jsx(_components.code,{children:`model`}),` is a `,_jsx(_components.code,{children:`provider/model`}),` this session can use, then start it again from a new Invocation`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ARGUMENT_INVALID`})}),_jsxs(_components.td,{children:[`A `,_jsx(_components.code,{children:`ctx`}),` call got invalid arguments`]}),_jsxs(_components.td,{children:[`Follow the argument shapes and value limits in `,_jsx(_components.a,{href:`/extension/api`,children:`Extension API`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROMPT_READ_UNAVAILABLE`})}),_jsx(_components.td,{children:`The message box didn’t respond in time (within 2 seconds)`}),_jsx(_components.td,{children:`The current session has no visible message box. Read it again from a later user action`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`MCP_SERVER_AMBIGUOUS`})}),_jsx(_components.td,{children:`This plugin has no server with that name, and the name matches more than one server (user-configured or from other plugins)`}),_jsxs(_components.td,{children:[`Use the full name for another plugin’s server: `,_jsx(_components.code,{children:`'\u003cplugin-name>/\u003cdeclared-name>'`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`MCP_CALL_RATE_LIMITED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ctx.mcp.call`}),` exceeded 60 calls per plugin per minute`]}),_jsxs(_components.td,{children:[`Call less often: combine requests, or cache results in `,_jsx(_components.code,{children:`ctx.state`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GESTURE_QUEUE_FULL`})}),_jsx(_components.td,{children:`This plugin’s button action queue in this session is full (10), so the new action was rejected; or its observe event queue is full (32), so the new observe event was dropped`}),_jsx(_components.td,{children:`Cut down rapid repeated actions, and don’t keep hooks running for long. When a button action is rejected, the UI has already asked the user to try again later`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`STATE_WRITE_IN_RENDER`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ctx.state`}),` was written during a draw`]}),_jsxs(_components.td,{children:[`Move `,_jsx(_components.code,{children:`ctx.state.set`}),` into an interaction callback, a `,_jsx(_components.code,{children:`ctx.clock`}),` callback, or an observe event`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_CORE_PROPS_INVALID`})}),_jsxs(_components.td,{children:[`The props passed to `,_jsx(_components.code,{children:`next(e')`}),` don’t match this site’s definition`]}),_jsxs(_components.td,{children:[`Change only the fields the site allows, and keep their types. Usually just call `,_jsx(_components.code,{children:`next()`}),` with no arguments`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VIEW_LEASE_HELD`})}),_jsx(_components.td,{children:`This site is already open in another view`}),_jsx(_components.td,{children:`Close the other view, then reopen this one`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_NEXT_TWICE`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`next`}),` was called a second time in one hook invocation`]}),_jsxs(_components.td,{children:[`Call `,_jsx(_components.code,{children:`next`}),` only once per hook. Combine multiple pieces of content into one element tree`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`EXTENSION_ROWS_INVALID`}),` `,_jsx(Badge,{color:`blue`,size:`sm`,children:`Coming soon`})]}),_jsxs(_components.td,{children:[`An `,_jsx(_components.code,{children:`above-prompt-list`}),` layer passed `,_jsx(_components.code,{children:`next(e)`}),` rows other than the ones it received: it changed a row’s content, made up a row, or passed the same row twice. That list layer is skipped`]}),_jsxs(_components.td,{children:[`Only filter or reorder `,_jsx(_components.code,{children:`e.props.rows`}),`, and pass the row objects unchanged to `,_jsx(_components.code,{children:`next({ ...e, props: { ...e.props, rows } })`}),`. To change what a row shows, change the `,_jsx(_components.code,{children:`above-prompt`}),` of the plugin that draws it. See `,_jsx(_components.a,{href:`/extension/interface#above-prompt-list`,children:`status band row arrangement`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_NAME_RESERVED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ctx.command.register`}),` used the name of a built-in command, or a name that belongs to a Skill at the start of the Activation: the Skill’s runtime name, or the name shown in the `,_jsx(_components.code,{children:`/`}),` menu. The error doesn’t say which Skill`]}),_jsxs(_components.td,{children:[`Pick another command name and rename the `,_jsx(_components.code,{children:`command.run`}),` matcher too. If the plugin works without this command, catch the error in `,_jsx(_components.code,{children:`session.start`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_NAME_TAKEN`})}),_jsxs(_components.td,{children:[`Another plugin in this session already registered the name passed to `,_jsx(_components.code,{children:`ctx.command.register`}),`. `,_jsx(_components.code,{children:`message`}),` names that plugin`]}),_jsxs(_components.td,{children:[`Pick another command name, or catch the error in `,_jsx(_components.code,{children:`session.start`}),` and go without this command. The plugin that registered first holds the name until it leaves the session`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_LIMIT_REACHED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ctx.command.register`}),` hit a limit: 32 commands per session, or 64 `,_jsx(_components.code,{children:`register`}),` calls that change commands per Activation`]}),_jsxs(_components.td,{children:[`Register each command once in `,_jsx(_components.code,{children:`session.start`}),` with a literal name. Don’t register in a loop or on every event`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_PAUSED`})}),_jsxs(_components.td,{children:[`The circuit breaker has paused the `,_jsx(_components.code,{children:`command.run`}),` hook for the command the user ran. The UI has already told the user the plugin is paused`]}),_jsxs(_components.td,{children:[`Fix the error that caused the pause (the `,_jsx(_components.code,{children:`thrown`}),`, `,_jsx(_components.code,{children:`timeout`}),`, or `,_jsx(_components.code,{children:`EXTENSION_HOOK_EXPIRED`}),` diagnostic before it), then `,_jsx(_components.code,{children:`preview`}),` again`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`COMMAND_RETIRED`}),` (warning)`]}),_jsx(_components.td,{children:`The user ran a command while the plugin was leaving the session or being replaced by a new version. The UI has already told the user the command is unavailable for now`}),_jsxs(_components.td,{children:[`If this was a reload, nothing to change: the new version registers its commands again in `,_jsx(_components.code,{children:`session.start`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`COMMAND_ANSWER_INVALID`}),` (warning)`]}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`command.run`}),` hook returned something other than `,_jsx(_components.code,{children:`{ text }`}),` or nothing, such as an object with keys besides `,_jsx(_components.code,{children:`text`}),`, or a `,_jsx(_components.code,{children:`text`}),` that isn’t a string. The UI shows nothing`]}),_jsxs(_components.td,{children:[`Return `,_jsx(_components.code,{children:`{ text }`}),` with a string `,_jsx(_components.code,{children:`text`}),` and nothing else from the `,_jsx(_components.code,{children:`command.run`}),` hook, or return nothing`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_TIMEOUT`})}),_jsx(_components.td,{children:`The command got no answer within 15 seconds: it was queued behind earlier button actions and commands from this plugin, or the hook was too slow. The UI has already told the user it timed out`}),_jsxs(_components.td,{children:[`A timeout only ends the wait. A hook that is already running runs to the end (including any permission card it is waiting on) and keeps its place in the queue until then. The hook may already have run, so a retry isn’t always safe. Keep button callbacks and `,_jsx(_components.code,{children:`command.run`}),` hooks short, and move slow `,_jsx(_components.code,{children:`ctx.model.complete`}),` and `,_jsx(_components.code,{children:`ctx.mcp.call`}),` calls out. If the work can finish in a `,_jsx(_components.code,{children:`ctx.clock.after`}),` callback, answer first and do it there`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_UNHANDLED`})}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`command.run`}),` hook answered the plugin command the user ran: no hook’s matcher names this command`]}),_jsxs(_components.td,{children:[`Register a handler with `,_jsx(_components.code,{children:`on('command.run', { command: '\u003cname>' }, (ctx, e) => ({ text }))`}),`, using the same literal name you pass to `,_jsx(_components.code,{children:`ctx.command.register`}),`. Don’t register a command you can’t answer`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_FAILED`})}),_jsxs(_components.td,{children:[`When the user ran the command, its `,_jsx(_components.code,{children:`command.run`}),` hook threw, timed out, or the process restarted. The UI has already told the user it failed`]}),_jsxs(_components.td,{children:[`Fix the error using the hook’s own diagnostic just before it (`,_jsx(_components.code,{children:`thrown`}),`, `,_jsx(_components.code,{children:`timeout`}),`, `,_jsx(_components.code,{children:`EXTENSION_HOOK_EXPIRED`}),`, or `,_jsx(_components.code,{children:`EXTENSION_WORKER_CRASHED`}),`). Catch recoverable errors in the hook and answer with `,_jsx(_components.code,{children:`{ text }`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`COMMAND_TEXT_TRUNCATED`}),` (warning)`]}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`command.run`}),` hook’s answer was longer than 500 characters, so the user sees only the first 500`]}),_jsxs(_components.td,{children:[`Answer in one short sentence. The answer shows as a toast, up to 500 characters. Put longer content in `,_jsx(_components.code,{children:`ctx.state`}),`, or in a panel the command opens`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`THEME_PALETTE_REJECTED`})}),_jsxs(_components.td,{children:[`The theme colors as written aren’t readable: before any host correction, a text anchor has a contrast ratio below 3:1 against a surface anchor in the same set. `,_jsx(_components.code,{children:`message`}),` names the two colors and the ratio, and, when colors are split by light and dark mode, the mode`]}),_jsxs(_components.td,{children:[`Raise the contrast between `,_jsx(_components.code,{children:`text-primary`}),` and `,_jsx(_components.code,{children:`surface-0`}),` (or the other text and surface anchors `,_jsx(_components.code,{children:`message`}),` names). The correction needed is too large: after it, the palette would no longer be the one you designed, so the host doesn’t fix it for you. Change the anchors yourself`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_SVG_REFUSED`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`source`}),` of an `,_jsx(_components.code,{children:`\u003cSvg>`}),` on the backdrop failed the SVG check, so this layer’s output was rejected. An `,_jsx(_components.code,{children:`\u003cSvg>`}),` in the status band or a panel has only its props checked, not this. `,_jsx(_components.code,{children:`message`}),` reads `,_jsx(_components.code,{children:`Svg refused: \u003ccategory> (\u003ccontent>)`}),`, for example `,_jsx(_components.code,{children:`Svg refused: external-reference (@import)`}),` or `,_jsx(_components.code,{children:`Svg refused: element (a)`}),`. Other layers draw as usual. A refusal isn’t a failure and doesn’t pause the hook`]}),_jsxs(_components.td,{children:[`Remove what `,_jsx(_components.code,{children:`message`}),` names from `,_jsx(_components.code,{children:`source`}),`. Reference only `,_jsx(_components.code,{children:`#id`}),` and `,_jsx(_components.code,{children:`url(#id)`}),` in the same image, don’t embed bitmaps, HTML, or fonts, and write plain, well-formed markup with no escapes, no character references beyond the five named XML entities, no DOCTYPE, and no CDATA. The categories `,_jsx(_components.code,{children:`element`}),`, `,_jsx(_components.code,{children:`attribute`}),`, and `,_jsx(_components.code,{children:`value`}),` mean content outside standard drawing SVG. `,_jsx(_components.code,{children:`too-many-nodes`}),` means an image or a `,_jsx(_components.code,{children:`marker`}),` exceeds its node limit, or a `,_jsx(_components.code,{children:`marker`}),` is nested in a `,_jsx(_components.code,{children:`marker`}),`. `,_jsx(_components.code,{children:`nested-use`}),` means a `,_jsx(_components.code,{children:`\u003cuse>`}),` references another `,_jsx(_components.code,{children:`\u003cuse>`}),`. See `,_jsx(_components.a,{href:`/extension/interface#backdrop`,children:`Backdrop`}),` for how to write it`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_HANDLE_STALE`})}),_jsxs(_components.td,{children:[`When a press, input, selection, or similar action arrived, the screen had already redrawn and no single matching control exists on the new screen, so the action was dropped. The host looks for the same control on the latest screen by element type, callback, and `,_jsx(_components.code,{children:`key`}),` chain (the `,_jsx(_components.code,{children:`key`}),` of the control and of each ancestor, or an ancestor’s position in its parent when it has no `,_jsx(_components.code,{children:`key`}),`), and delivers the action only if it finds exactly one. It happens when neither the control nor its ancestors have a `,_jsx(_components.code,{children:`key`}),`, the control is gone, more than one control matches, or the plugin has reloaded. These drops don’t count toward a pause, show no notice in the UI, and aren’t recorded in `,_jsx(_components.code,{children:`inspect`}),`. In tests, `,_jsx(_components.code,{children:`press`}),` fails with this code`]}),_jsxs(_components.td,{children:[`Add a `,_jsx(_components.code,{children:`key`}),` to each list row and to controls whose callback triggers a redraw (`,_jsx(_components.code,{children:`Button`}),`, `,_jsx(_components.code,{children:`Input`}),`, `,_jsx(_components.code,{children:`Select`}),`, `,_jsx(_components.code,{children:`Switch`}),`), with no duplicate `,_jsx(_components.code,{children:`key`}),` among siblings. Or find the element again on the latest screen and act on it. See `,_jsx(_components.a,{href:`/extension/interface#keys`,children:`Key rules`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`thrown`})}),_jsxs(_components.td,{children:[`The hook threw. `,_jsx(_components.code,{children:`message`}),` has the error`]}),_jsxs(_components.td,{children:[`Fix the error using `,_jsx(_components.code,{children:`message`}),`, then run `,_jsx(_components.code,{children:`test`}),` or `,_jsx(_components.code,{children:`preview`}),` again`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timeout`})}),_jsx(_components.td,{children:`Synchronous code ran longer than 2 seconds`}),_jsx(_components.td,{children:`Remove busy loops and long synchronous computation from the hook`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_HOOK_EXPIRED`})}),_jsx(_components.td,{children:`The hook’s own time exceeded 10 seconds`}),_jsxs(_components.td,{children:[`Fetch less data per draw, cache results in `,_jsx(_components.code,{children:`ctx.state`}),`, or move slow work into a callback`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_WORKER_CRASHED`})}),_jsx(_components.td,{children:`The extension process restarted (an infinite loop or memory that keeps growing)`}),_jsx(_components.td,{children:`Look for infinite loops or growing memory in the hooks`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`toast.dropped`})}),_jsx(_components.td,{children:`More than 6 toasts a minute. Extra ones are dropped until the one-minute window rolls over. Each run of consecutive drops is recorded once`}),_jsx(_components.td,{children:`Show fewer toasts. Put state that keeps changing on the status band`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`console.\u003clevel>`})}),_jsxs(_components.td,{children:[`One line of the extension’s `,_jsx(_components.code,{children:`console`}),` output, in `,_jsx(_components.code,{children:`inspect.runtime.console`})]}),_jsx(_components.td,{children:`Not an error. Use it for debugging`})]})]})]}),_jsx(Heading,{level:`3`,id:`other-codes`,children:`Other codes you may see`}),_jsxs(_components.p,{children:[`These codes aren’t in the diagnostic code list in the type declarations. The host or the test utilities report them. Every code that appears in a diagnostic carries a `,_jsx(_components.code,{children:`fix`}),`. `,_jsx(_components.code,{children:`COMMAND_BUSY`}),`, `,_jsx(_components.code,{children:`COMMAND_UNKNOWN`}),`, and `,_jsx(_components.code,{children:`COMMAND_ARGS_TOO_LONG`}),` never appear in diagnostics. They show up only as error codes from `,_jsx(_components.code,{children:`runCommand`}),` in tests and as UI notices. In diagnostics, `,_jsx(_components.code,{children:`COMMAND_BUSY`}),` is recorded as `,_jsx(_components.code,{children:`GESTURE_QUEUE_FULL`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`How to fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_RENDER_DEADLINE`})}),_jsx(_components.td,{children:`A draw hadn’t finished after 30 seconds`}),_jsxs(_components.td,{children:[`Don’t wait for slow MCP calls in the draw. Draw a placeholder first, then refresh with `,_jsx(_components.code,{children:`ctx.ui.invalidate()`}),` once the data arrives`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_HOOK_FAILED`})}),_jsx(_components.td,{children:`A callback threw or timed out`}),_jsxs(_components.td,{children:[`Fix the error using `,_jsx(_components.code,{children:`message`}),`, then run the tests again`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aborted`})}),_jsx(_components.td,{children:`The hook was aborted`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`await`}),` every `,_jsx(_components.code,{children:`ctx`}),` call inside the hook. Don’t let them run detached from the hook`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_HANDLE_FORGED`})}),_jsx(_components.td,{children:`A callback not created by this module was returned`}),_jsxs(_components.td,{children:[`Return only callbacks created by this module, or what `,_jsx(_components.code,{children:`next()`}),` returned`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_REQUEST_INVALID`})}),_jsx(_components.td,{children:`The request was invalid, for example session info was unavailable, or the site, slot, key, or matcher fields didn’t line up`}),_jsxs(_components.td,{children:[`Check the fields named in `,_jsx(_components.code,{children:`message`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_SERVICE_FAILED`})}),_jsxs(_components.td,{children:[`A host service rejected a `,_jsx(_components.code,{children:`ctx`}),` call. Storage over quota (a single `,_jsx(_components.code,{children:`ctx.store.set`}),` value over 256 KB, or the plugin’s total storage over 8 MB), a write to an undeclared `,_jsx(_components.code,{children:`ctx.state`}),` key, an invalid store key, an MCP server that can’t be found, and a failed MCP call all surface as this code, with the reason in `,_jsx(_components.code,{children:`message`}),`. If you don’t catch it, `,_jsx(_components.code,{children:`inspect`}),` records it as `,_jsx(_components.code,{children:`thrown`})]}),_jsxs(_components.td,{children:[`Check the arguments of the `,_jsx(_components.code,{children:`ctx`}),` call named in `,_jsx(_components.code,{children:`message`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TREE_INVALID`})}),_jsx(_components.td,{children:`The element tree has an element or property this site doesn’t accept (reported only in tests)`}),_jsx(_components.td,{children:`Return only elements from the catalog, with the allowed property values. The real UI replaces invalid parts with a placeholder notice`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`console.dropped`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`console`}),` output exceeded 200 lines per plugin per minute, and the extra lines were dropped`]}),_jsx(_components.td,{children:`Log less`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_OBSERVE_FAILED`})}),_jsx(_components.td,{children:`The host couldn’t read the contents of an observe event, so the event wasn’t delivered`}),_jsx(_components.td,{children:`Nothing to do`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXTENSION_BREAKER_RESET`})}),_jsx(_components.td,{children:`The user clicked “Retry” on the pause notice, and the pause in this session was cleared`}),_jsx(_components.td,{children:`Nothing to do`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`THEME_PALETTE_ADJUSTED`})}),_jsxs(_components.td,{children:[`The theme colors took effect, with corrections: an anchor used the host default, or a text color was darkened or lightened to get as close to 4.5:1 as possible. `,_jsx(_components.code,{children:`inspect`}),` keeps this record`]}),_jsxs(_components.td,{children:[`To keep your own colors, set each text color in `,_jsx(_components.code,{children:`colors`}),` so it reaches 4.5:1 against the surface color it sits on, then `,_jsx(_components.code,{children:`preview`}),`. A line saying an anchor used the host default means you didn’t set that anchor`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_BUSY`})}),_jsxs(_components.td,{children:[`The queue shared by button actions and commands is full (10), so this command didn’t run and no hook was called. `,_jsx(_components.code,{children:`runtime.diagnostics`}),` records it as `,_jsx(_components.code,{children:`GESTURE_QUEUE_FULL`})]}),_jsxs(_components.td,{children:[`Make button callbacks and `,_jsx(_components.code,{children:`command.run`}),` hooks finish quickly. The UI has already asked the user to try again later`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_UNKNOWN`})}),_jsxs(_components.td,{children:[`No plugin in this session registered this command name. `,_jsx(_components.code,{children:`runCommand`}),` in tests also reports this code for a name that isn’t registered`]}),_jsxs(_components.td,{children:[`Check that `,_jsx(_components.code,{children:`ctx.command.register`}),` ran successfully in `,_jsx(_components.code,{children:`session.start`}),` and that the name matches the one you run`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_ARGS_TOO_LONG`})}),_jsxs(_components.td,{children:[`The command arguments are longer than 4096 characters after trimming leading and trailing whitespace. `,_jsx(_components.code,{children:`runCommand`}),` in tests checks this too`]}),_jsx(_components.td,{children:`Shorten the arguments`})]})]})]}),_jsx(Heading,{level:`2`,id:`ui-text`,children:`Notices in the UI`}),_jsx(_components.p,{children:`Users may see the text below in the UI. These aren’t diagnostic codes, but they help you tell what happened.`}),_jsx(Heading,{level:`3`,id:`paused-text`,children:`Pause notice`}),_jsx(_components.p,{children:`When an extension is paused, the status band or panel shows a notice:`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Text`}),_jsx(_components.th,{children:`When it appears`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Paused · this session`}),_jsxs(_components.td,{children:[`The title. The extension is paused in the current session (`,_jsx(_components.code,{children:`EXTENSION_DISABLED`}),`). Other sessions aren’t affected`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Failed or timed out 3 times in a row; paused in this session`}),_jsx(_components.td,{children:`A hook failed 3 times in a row`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The plugin hung, crashed or failed to load; paused in this session`}),_jsx(_components.td,{children:`The whole plugin has a problem`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Last error: …`}),_jsx(_components.td,{children:`The error message from the last failure`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retry`}),_jsx(_components.td,{children:`A button. Clicking it tries to recover`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Retry didn’t go through. Try again later`}),_jsx(_components.td,{children:`It still failed after clicking “Retry”`})]})]})]}),_jsx(_components.p,{children:`When a site has several plugins, the notice shows only when every layer is paused.`}),_jsx(Heading,{level:`3`,id:`other-text`,children:`Other notices`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Text`}),_jsx(_components.th,{children:`When it appears`}),_jsx(_components.th,{children:`Related diagnostic code`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Too many actions. Try again later`}),_jsx(_components.td,{children:`10 button actions are already queued, so new presses are rejected`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GESTURE_QUEUE_FULL`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The action didn’t go through. Try again`}),_jsx(_components.td,{children:`A press or similar action was rejected for another reason`}),_jsxs(_components.td,{children:[`Check `,_jsx(_components.code,{children:`inspect.runtime.diagnostics`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Part of an extension can’t be displayed`}),_jsx(_components.td,{children:`The screen has an element or property this site doesn’t accept, or exceeds the element tree limits, so that part is replaced with a placeholder notice`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`TREE_INVALID`}),` in tests. After a preview, recorded in `,_jsx(_components.code,{children:`inspect.runtime.sites`}),`; see `,_jsx(_components.a,{href:`#svg-fallback`,children:`SVG the window rejects`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Already open in another view`}),_jsx(_components.td,{children:`This site is already open in another view`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VIEW_LEASE_HELD`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`\u003cplugin-name>`}),` has nothing to show here yet`]}),_jsx(_components.td,{children:`The panel is open, but no layer drew anything`}),_jsx(_components.td,{children:`None`})]})]})]}),_jsx(Heading,{level:`3`,id:`command-text`,children:`Command notices`}),_jsxs(_components.p,{children:[`After the user runs a plugin command, the UI shows the result in a toast. Replace `,_jsx(_components.code,{children:`todo`}),` below with the actual command name:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Text`}),_jsx(_components.th,{children:`When it appears`}),_jsx(_components.th,{children:`Related diagnostic code`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Plugin commands`}),_jsxs(_components.td,{children:[`The heading of the plugin command group in the `,_jsx(_components.code,{children:`/`}),` menu`]}),_jsx(_components.td,{children:`None`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Running`}),_jsx(_components.td,{children:`Shown next to the item in the menu while the command is still running`}),_jsx(_components.td,{children:`None`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo didn’t respond`}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`command.run`}),` hook answered the command`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_UNHANDLED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo failed`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`command.run`}),` hook threw, timed out, or the process restarted`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_FAILED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo timed out and may have run already`}),_jsx(_components.td,{children:`No answer within 15 seconds`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_TIMEOUT`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo is unavailable: the plugin is paused`}),_jsx(_components.td,{children:`The circuit breaker paused the hook`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_PAUSED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo is unavailable: the plugin is reloading or disabled`}),_jsx(_components.td,{children:`The plugin is leaving the session or being replaced`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_RETIRED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo did not run: the plugin is busy, try again`}),_jsx(_components.td,{children:`The queue for button actions and commands is full`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_BUSY`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The arguments of /todo are too long`}),_jsx(_components.td,{children:`The arguments are longer than 4096 characters`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_ARGS_TOO_LONG`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo no longer exists`}),_jsx(_components.td,{children:`No plugin in this session registered this command`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`COMMAND_UNKNOWN`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo didn’t run: this conversation no longer exists`}),_jsx(_components.td,{children:`The runtime session is gone`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SESSION_NOT_FOUND`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`/todo didn’t run. Try again`}),_jsx(_components.td,{children:`The command didn’t run for another reason`}),_jsxs(_components.td,{children:[`Check `,_jsx(_components.code,{children:`inspect.runtime.diagnostics`})]})]})]})]}),_jsxs(_components.p,{children:[`When the command answers normally, the toast shows the `,_jsx(_components.code,{children:`text`}),` that `,_jsx(_components.code,{children:`command.run`}),` returned.`]}),_jsx(Heading,{level:`3`,id:`svg-fallback`,children:`SVG the window rejects`}),_jsxs(_components.p,{children:[`After a screen reaches the window, the window checks it again and replaces any part it can’t draw with a placeholder. The reason goes in `,_jsx(_components.code,{children:`reason`}),` in `,_jsx(_components.code,{children:`inspect.runtime.sites`}),` (see `,_jsx(_components.a,{href:`/extension/testing#runtime-sites`,children:_jsx(_components.code,{children:`runtime.sites`})}),`). Two of these relate to `,_jsx(_components.code,{children:`\u003cSvg>`}),`: `,_jsx(_components.code,{children:`invalid-svg`}),` is checked on every site, and `,_jsx(_components.code,{children:`unsafe-svg`}),` only on the backdrop.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`How to fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid-svg`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`\u003cSvg>`}),` props break the rules: an unknown prop, children, a `,_jsx(_components.code,{children:`source`}),` that is blank or longer than 131 072 characters, or a `,_jsx(_components.code,{children:`width`}),` / `,_jsx(_components.code,{children:`height`}),` out of range. The `,_jsx(_components.strong,{children:`whole element tree`}),` is replaced, not just this image. Tests report `,_jsx(_components.code,{children:`TREE_INVALID`}),` and name the prop`]}),_jsxs(_components.td,{children:[`Use only `,_jsx(_components.code,{children:`source`}),`, `,_jsx(_components.code,{children:`alt`}),`, `,_jsx(_components.code,{children:`width`}),`, and `,_jsx(_components.code,{children:`height`}),`. `,_jsx(_components.code,{children:`width`}),` and `,_jsx(_components.code,{children:`height`}),` are numbers greater than 0 and no more than 4096`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unsafe-svg`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`source`}),` of an `,_jsx(_components.code,{children:`\u003cSvg>`}),` on the backdrop failed the SVG check. Only this image is replaced. An `,_jsx(_components.code,{children:`\u003cSvg>`}),` in the status band or a panel doesn’t get this check. The runtime checks with the same rules first, so `,_jsx(_components.code,{children:`EXTENSION_SVG_REFUSED`}),` has usually been reported already`]}),_jsxs(_components.td,{children:[`Fix `,_jsx(_components.code,{children:`source`}),` as described for `,_jsx(_components.code,{children:`EXTENSION_SVG_REFUSED`})]})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`detail`}),` names the exact prop or content.`]}),_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Test and troubleshoot`,icon:`bug`,href:`/extension/testing#troubleshoot`,children:_jsx(_components.p,{children:`Find the cause by symptom.`})}),_jsx(Card,{title:`Extensions reference`,icon:`book`,href:`/extension/reference`,children:_jsx(_components.p,{children:`Quick reference for events, ctx methods, elements, and limits.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Diagnostic codes","sidebarTitle":"Diagnostic codes","description":"The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.","href":"/extension/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Diagnostic shape","slug":"shape","depth":2,"children":[]},{"title":"Package and validation","slug":"package","depth":2,"children":[]},{"title":"Preview","slug":"preview","depth":2,"children":[]},{"title":"Runtime","slug":"runtime","depth":2,"children":[{"title":"Other codes you may see","slug":"other-codes","depth":3,"children":[]}]},{"title":"Notices in the UI","slug":"ui-text","depth":2,"children":[{"title":"Pause notice","slug":"paused-text","depth":3,"children":[]},{"title":"Other notices","slug":"other-text","depth":3,"children":[]},{"title":"Command notices","slug":"command-text","depth":3,"children":[]},{"title":"SVG the window rejects","slug":"svg-fallback","depth":3,"children":[]}]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/agent-en/771da42817f2844d/scripts/seo-schema.js"],"subdomain":"agent-en","siteName":"MiniMax Code Docs","title":"Diagnostic codes - MiniMax Code Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T08:27:26.213Z","originalFileLocation":"extension/errors.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.\">\u003cmeta data-mint-head name=\"keywords\" content=\"MiniMax Code, AI agent, AI coding assistant, full-stack AI, PPT generator, deep research AI, MCP integration, Supabase AI, AI web app builder, MiniMax changelog\">\u003cmeta data-mint-head name=\"application-name\" content=\"MiniMax Code Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Diagnostic codes - MiniMax Code Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MiniMax Code\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://code.minimax.io/docs/extension/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://file.cdn.minimax.io/public/58eca777-e31f-448a-9823-e2220e49b426.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"MiniMax Code – AI Agent for Complex Tasks\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build full-stack apps, presentations, and research reports with MiniMax Code. Powered by multi-agent AI.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://file.cdn.minimax.io/public/58eca777-e31f-448a-9823-e2220e49b426.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/agent-en/RrLMm1BmnhcYtr3S/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MiniMax Code Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#181E25\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"charset\" content=\"UTF-8\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://code.minimax.io/docs/extension/errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/extension/errors.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://code.minimax.io/#organization\",\"name\":\"MiniMax Code Docs\",\"url\":\"https://code.minimax.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agent-en/AWwAA_JD3rUWnMtN/logo/light.svg?fit=max\u0026auto=format\u0026n=AWwAA_JD3rUWnMtN\u0026q=85\u0026s=dd070cb1a0cc203f11cd45f588926f57\"}},{\"@type\":\"WebSite\",\"@id\":\"https://code.minimax.io/docs#website\",\"name\":\"MiniMax Code Docs\",\"url\":\"https://code.minimax.io/docs\",\"publisher\":{\"@id\":\"https://code.minimax.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://code.minimax.io/docs/extension/errors#webpage\",\"url\":\"https://code.minimax.io/docs/extension/errors\",\"name\":\"Diagnostic codes\",\"description\":\"The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.\",\"dateModified\":\"2026-11-30T08:27:26.213Z\",\"isPartOf\":{\"@id\":\"https://code.minimax.io/docs#website\"},\"breadcrumb\":{\"@id\":\"https://code.minimax.io/docs/extension/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://code.minimax.io/docs/extension/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Extension Development\",\"item\":\"https://code.minimax.io/docs/extension/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Diagnostic codes\",\"item\":\"https://code.minimax.io/docs/extension/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://code.minimax.io/docs/extension/errors#article\",\"headline\":\"Diagnostic codes\",\"name\":\"Diagnostic codes\",\"description\":\"The diagnostic codes extensions report during validation, preview, and runtime, what each one means and how to fix it, and the notices users may see in the UI.\",\"url\":\"https://code.minimax.io/docs/extension/errors\",\"mainEntityOfPage\":{\"@id\":\"https://code.minimax.io/docs/extension/errors#webpage\"},\"image\":\"https://file.cdn.minimax.io/public/58eca777-e31f-448a-9823-e2220e49b426.png\",\"dateModified\":\"2026-11-30T08:27:26.213Z\",\"publisher\":{\"@id\":\"https://code.minimax.io/#organization\"},\"isPartOf\":{\"@id\":\"https://code.minimax.io/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/extension/errors.md","siteName":"MiniMax Code Docs","nav":{"global":null,"tabs":[{"tab":"MiniMax Code","groups":[{"group":"Get Started","pages":[{"title":"Welcome to MiniMax Code","sidebarTitle":"Welcome","href":"/code/welcome"},{"title":"Download and Install","sidebarTitle":"Download and Install","href":"/code/get-started/download"},{"title":"Create Your First Task","sidebarTitle":"Create Your First Task","href":"/code/get-started/first-task"},{"title":"Tips","sidebarTitle":"Tips","href":"/code/get-started/tips"},{"title":"Model Pairing","sidebarTitle":"Model Pairing","href":"/code/get-started/model-pairing"}]},{"group":"Core Workflows","pages":[{"title":"Coding and Work Modes","sidebarTitle":"Coding and Work Modes","href":"/code/workflows/modes"},{"title":"Workspace and Project Context","sidebarTitle":"Workspace and Project Context","href":"/code/workflows/workspace"},{"title":"Tasks and History","sidebarTitle":"Tasks and History","href":"/code/workflows/tasks"},{"title":"Conversation Collaboration","sidebarTitle":"Conversation Collaboration","href":"/code/workflows/conversation-collaboration"},{"title":"Code Review","sidebarTitle":"Code Review","href":"/code/workflows/code-review"},{"title":"Permissions and Safety","sidebarTitle":"Permissions and Safety","href":"/code/workflows/permissions"}]},{"group":"Desktop Features","pages":[{"title":"Infinite Canvas","sidebarTitle":"Infinite Canvas","href":"/code/desktop/infinite-canvas"},{"title":"Goal","sidebarTitle":"Goal","href":"/code/desktop/goal"},{"title":"Built-in Browser","sidebarTitle":"Built-in Browser","href":"/code/desktop/browser"},{"title":"Chrome Browser Extension","sidebarTitle":"Chrome Browser Extension","href":"/code/desktop/chrome-extension"},{"title":"Computer Use","sidebarTitle":"Computer Use","href":"/code/desktop/computer-use"},{"title":"Files / Changes / Terminal Panels","sidebarTitle":"Developer Panels","href":"/code/desktop/panels"},{"title":"Appearance","sidebarTitle":"Appearance","href":"/code/desktop/appearance"},{"title":"Shortcuts and Mini Window","sidebarTitle":"Shortcuts and Mini Window","href":"/code/desktop/shortcuts"},{"title":"Updates and Feedback","sidebarTitle":"Updates and Feedback","href":"/code/desktop/updates-feedback"}]},{"group":"Agent Capabilities","pages":[{"title":"Agent Team","sidebarTitle":"Agent Team","href":"/code/agents/team"},{"title":"Advisor","sidebarTitle":"Advisor","href":"/code/agents/advisor"},{"title":"Custom Agents","sidebarTitle":"Custom Agents","href":"/code/agents/custom-agents"},{"title":"Mini Apps","sidebarTitle":"Mini Apps","href":"/code/agents/mini-apps"},{"title":"H3 Max Video Generation","sidebarTitle":"H3 Max Video Generation","href":"/code/agents/h3-max"},{"title":"Plugin Marketplace","sidebarTitle":"Plugin Marketplace","href":"/code/agents/plugins"},{"title":"Plugin Extensions","sidebarTitle":"Plugin Extensions","href":"/code/agents/extensions"},{"title":"Plugin Development and Submission Guide","sidebarTitle":"Plugin Submission","href":"/code/agents/plugin-submission"},{"title":"MCP Servers","sidebarTitle":"MCP Servers","href":"/code/agents/mcp"},{"title":"Memory","sidebarTitle":"Memory","href":"/code/agents/memory"}]},{"group":"Extension Development","pages":[{"title":"Extensions overview","sidebarTitle":"Overview","href":"/extension/overview"},{"title":"Capabilities and progress","sidebarTitle":"Capabilities and progress","href":"/extension/progress"},{"title":"Write your first extension","sidebarTitle":"Write one","href":"/extension/quickstart"},{"title":"Interface: sites and elements","sidebarTitle":"Interface","href":"/extension/interface"},{"title":"Events (hooks)","sidebarTitle":"Events","href":"/extension/events"},{"title":"Extension API","sidebarTitle":"API","href":"/extension/api"},{"title":"Test and troubleshoot","sidebarTitle":"Test and troubleshoot","href":"/extension/testing"},{"title":"Extensions reference","sidebarTitle":"Reference","description":"Quick reference for the extension package layout, the extension tool, events, ctx methods, sites, elements, and limits.","href":"/extension/reference"},{"title":"Diagnostic codes","sidebarTitle":"Diagnostic codes","href":"/extension/errors"}]},{"group":"Automation \u0026 Remote","pages":[{"title":"Scheduled Tasks","sidebarTitle":"Scheduled Tasks","description":"Let Agents run recurring work on a schedule.","href":"/code/automation/schedules"},{"title":"Remote Control","sidebarTitle":"Remote Control","href":"/code/automation/remote-control"},{"title":"Messaging Integrations","sidebarTitle":"Messaging Integrations","href":"/code/automation/im"}]},{"group":"Models \u0026 Account","pages":[{"title":"M Plan and Credits","sidebarTitle":"M Plan and Credits","href":"/code/account/usage"},{"title":"MiniMax API Key","sidebarTitle":"MiniMax API Key","href":"/code/account/minimax-api"},{"title":"Custom Models / BYOK","sidebarTitle":"Custom Models / BYOK","href":"/code/account/byok"},{"title":"Configure BYOK Models with an Agent","sidebarTitle":"Agent Setup Guide","href":"/code/account/byok-agent-setup"}]},{"group":"Help","pages":[{"title":"FAQ","sidebarTitle":"FAQ","href":"/code/help/faq"},{"title":"Feedback","sidebarTitle":"Feedback","href":"/code/help/feedback"}]}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/quick-start"}]},{"tab":"Mini App Development","pages":[{"title":"Mini App Development","href":"/miniapp/overview"}]},{"tab":"Community Picks","pages":[{"title":"Community Picks","href":"/community/webui"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Research","pages":[{"title":"Research","href":"/techblog"}]}]},"basePath":"","title":"Diagnostic codes - MiniMax Code Docs","deploymentId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","buildId":"dpl_hSqyvJ4yQMj8zFViHgqnZFPm1xMv","dynamics":[],"chunks":[]}