Skip to content

adk run --bundle false always fails: Cannot use "external" without "bundle" #714

Description

@haranrk

The loader passes external: ['sqlite3', 'better-sqlite3', ...] unconditionally (dev/src/utils/agent_loader.ts:205) while bundle: this.options.bundle comes from the CLI flag (line 201). esbuild rejects external when bundle is false, so the advertised --bundle false can never succeed on any agent. It is also the documented way out of minified agent code.

cd dev
npx adk run --bundle false ../samples/workflows/routes/fan_out_join/agent.ts
# ✘ [ERROR] Cannot use "external" without "bundle"
# [ADK CLI] Error running agent: Build failed with 1 error

The agent never loads, so there is no REPL and no prompt. --compile false works on the same sample. adk web registers the same option and shares this loader. Separately, --bundle's help text is a verbatim copy of --compile's and does not describe bundling.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions