{"record":{"id":"b5d0c17ed7405ecb","repo":"warpdotdev/warp","slug":"the-conversation-subcommand-is-not-available-in","errorCode":null,"errorMessage":"The 'conversation' subcommand is not available in this build","messagePattern":"The 'conversation' subcommand is not available in this build","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/mod.rs","lineNumber":602,"sourceCode":"    command: TaskCommand,\n) -> anyhow::Result<()> {\n    match command {\n        TaskCommand::List(args) => ambient::list_ambient_agent_tasks(ctx, global_options, args),\n        TaskCommand::Get(args) => {\n            if args.conversation {\n                if !FeatureFlag::ConversationApi.is_enabled() {\n                    return Err(anyhow::anyhow!(\n                        \"The --conversation flag is not available in this build\"\n                    ));\n                }\n                ambient::get_run_conversation(ctx, args.task_id)\n            } else {\n                ambient::get_ambient_agent_task_status(ctx, global_options, args)\n            }\n        }\n        TaskCommand::Conversation(conv_cmd) => {\n            if !FeatureFlag::ConversationApi.is_enabled() {\n                return Err(anyhow::anyhow!(\n                    \"The 'conversation' subcommand is not available in this build\"\n                ));\n            }\n            match conv_cmd {\n                warp_cli::task::ConversationCommand::Get(args) => {\n                    ambient::get_conversation(ctx, args.conversation_id)\n                }\n            }\n        }\n        TaskCommand::Message(message_cmd) => ambient::run_message(ctx, global_options, message_cmd),\n    }\n}\n\n/// Singleton model that provides a ModelContext for spawning async operations\n/// when starting the agent driver. This is needed because conversation fetching\n/// requires spawning an async task, which requires a ModelContext.\nstruct AgentDriverRunner;\n","sourceCodeStart":584,"sourceCodeEnd":620,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/mod.rs#L584-L620","documentation":"The `warp task conversation` subcommand is gated behind the ConversationApi feature flag. On builds without it, dispatching any ConversationCommand (currently `get`) errors immediately before a server request is made.","triggerScenarios":"`warp task conversation get <conversation_id>` on a build where `FeatureFlag::ConversationApi.is_enabled()` is false.","commonSituations":"Dogfood-authored scripts executed on stable builds; client/server conversation API version skew; automation copied between environments with different flag sets.","solutions":["Use a build with the ConversationApi flag enabled","Fall back to `warp task get <task_id>` which works without the conversation API","Probe the CLI build's capabilities before scripting the subcommand"],"exampleFix":"# before\nwarp task conversation get abc123   # build without ConversationApi\n\n# after\nwarp task get abc123   # on a ConversationApi-enabled build keep the original command","handlingStrategy":"validation","validationCode":"# Feature-probe the subcommand, then fall back\ntask_out() { warp task conversation get \"$1\" 2>&1; }\nout=$(task_out \"$CONV_ID\") || case \"$out\" in *'not available in this build'*) warp task get \"$TASK_ID\";; *) echo \"$out\" >&2; exit 1;; esac\necho \"$out\"","typeGuard":null,"tryCatchPattern":"out=$(warp task conversation get \"$id\" 2>&1) || { case \"$out\" in *\"subcommand is not available\"*) warp task get \"$task_id\";; *) echo \"$out\" >&2; exit 1;; esac; }","preventionTips":["Check build capability probes in wrapper libraries instead of assuming subcommands","Version-gate automation: only call `task conversation` when the CLI version is known to ship ConversationApi"],"tags":["feature-flag","cli","task","conversation"],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}