diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-02 15:34:03 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-02 13:34:03 +0200 |
| commit | 8633a398e653eee47b375c963996c78a8a14aa48 (patch) | |
| tree | 459c5063c2560883cefd2112d725ce500c3d5a02 /src/app/api.rs | |
| parent | 6c0bb273d5d5405a00985621b17e36f8b4d64609 (diff) | |
fix: reliably submit delayed agent prompts (#3506)
Diffstat (limited to 'src/app/api.rs')
| -rw-r--r-- | src/app/api.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/app/api.rs b/src/app/api.rs index e6f6b6ec..0c3b9f98 100644 --- a/src/app/api.rs +++ b/src/app/api.rs @@ -945,7 +945,13 @@ impl App { return self.handle_agent_view_clear(request.id, params) } Method::AgentStart(params) => return self.handle_agent_start(request.id, params), - Method::AgentPrompt(params) => return self.handle_agent_prompt(request.id, params), + Method::AgentPrompt(_) => { + return responses::encode_error( + request.id, + "invalid_request", + "agent.prompt is handled asynchronously by the app runtime", + ); + } Method::AgentWait(_) => { return responses::encode_error( request.id, |
