{"record":{"id":"426b9f311bd3025b","repo":"langchain-ai/deepagents","slug":"interpreter-enable-interpreter-is-missing-from-the-426b9f","errorCode":null,"errorMessage":"interpreter.enable_interpreter is missing from the config manifest","messagePattern":"interpreter\\.enable_interpreter is missing from the config manifest","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"libs/code/deepagents_code/main.py","lineNumber":1480,"sourceCode":"    it (the middleware is unsupported under a remote sandbox). This prints to\n    stderr on the non-interactive (`-n`) path; the interactive TUI surfaces the\n    same advisory as a startup notification (see\n    `DeepAgentsApp._notify_interpreter_disabled_by_sandbox`).\n\n    Keyed on the raw `args.interpreter` tri-state so an explicit\n    `--no-interpreter` opt-out stays silent (the predicate only fires for the\n    unset default).\n\n    Raises:\n        RuntimeError: If the interpreter option is absent from the manifest.\n    \"\"\"\n    from deepagents_code._server_config import _interpreter_suppressed_by_sandbox\n    from deepagents_code.config_manifest import get_option\n\n    option = get_option(\"interpreter.enable_interpreter\")\n    if option is None:\n        msg = \"interpreter.enable_interpreter is missing from the config manifest\"\n        raise RuntimeError(msg)\n    local_default = bool(_resolver_for_args(args).get(option).value)\n\n    if not _interpreter_suppressed_by_sandbox(\n        enable_interpreter=args.interpreter,\n        sandbox_type=args.sandbox,\n        local_default=local_default,\n    ):\n        return\n    from rich.console import Console as _Console\n\n    _Console(stderr=True).print(\n        \"[yellow]Warning:[/yellow] JS interpreter (`js_eval`) is unavailable \"\n        \"under a remote sandbox; it runs in local mode only.\"\n    )\n\n\ndef _resolve_rubric_text(rubric: str | None) -> str | None:\n    \"\"\"Resolve the rubric from `--rubric` into one string.","sourceCodeStart":1462,"sourceCodeEnd":1498,"githubUrl":"https://github.com/langchain-ai/deepagents/blob/a1af029e6e73cb17c36bff823d227747b28e91e1/libs/code/deepagents_code/main.py#L1462-L1498","documentation":"`_warn_if_interpreter_disabled_by_sandbox` raises `RuntimeError` if `get_option(\"interpreter.enable_interpreter\")` returns `None`. The function needs the manifest-declared local default to decide whether to warn about sandbox suppression of the interpreter; without the manifest entry it cannot compute the default and fails instead of silently skipping the warning.","triggerScenarios":"`cli_main` startup (or the warning helper directly) with a manifest missing the `interpreter.enable_interpreter` entry — stale manifest after upgrade, stripped build, or a test stub overriding `get_option`.","commonSituations":"Same as errors [321]/[322]: version-mismatched installs, vendored distributions, development checkouts with an unregenerated manifest.","solutions":["Force-reinstall the package to restore the bundled manifest","Regenerate the manifest locally so `interpreter.enable_interpreter` exists","Fix any test stub or patch of `get_option` that drops the entry"],"exampleFix":"// before\nget_option = lambda name: None  # stub missing entry\n// after\nget_option = lambda name: real_manifest[name] if name == \"interpreter.enable_interpreter\" else real_manifest.get(name)","handlingStrategy":"validation","validationCode":"from deepagents_code.config_manifest import get_option\n\nassert get_option(\"interpreter.enable_interpreter\") is not None, (\n    \"config manifest out of date; reinstall deepagents-code\"\n)","typeGuard":null,"tryCatchPattern":"try:\n    _warn_if_interpreter_disabled_by_sandbox(args)\nexcept RuntimeError as exc:\n    logger.warning(\"skipped interpreter sandbox warning: %s\", exc)","preventionTips":["Keep code and bundled data files version-matched (single package manager)","Run manifest regeneration after schema edits before launching the CLI","Cover manifest completeness with a unit test asserting required option keys"],"tags":["configuration","manifest","interpreter"],"backgroundTag":"missing-config-manifest-option","analyzedSha":"a1af029e6e73cb17c36bff823d227747b28e91e1","analyzedAt":"2026-08-29T11:43:24.718Z","schemaVersion":2},"datasetVersion":"2026-08-29T12:17:43.993Z"}