From db8e6f3255e9651d6d9cd03f760f5bc83a0eda6d Mon Sep 17 00:00:00 2001 From: "Rai (Michael Pokorny)" Date: Tue, 24 Jun 2025 12:55:29 -0700 Subject: [PATCH] docs(agentydragon): add Task 13 for interactive input during execution --- agentydragon/README.md | 1 + .../13-interactive-prompt-during-execution.md | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 agentydragon/tasks/13-interactive-prompt-during-execution.md diff --git a/agentydragon/README.md b/agentydragon/README.md index 63de76b9e8..d95a544ed2 100644 --- a/agentydragon/README.md +++ b/agentydragon/README.md @@ -32,6 +32,7 @@ This file documents the changes introduced on the `agentydragon` branch - 10-inspect-container-state.md - 11-custom-approval-predicates.md - 12-internet-connection-toggle.md +- 13-interactive-prompt-during-execution.md --- diff --git a/agentydragon/tasks/13-interactive-prompt-during-execution.md b/agentydragon/tasks/13-interactive-prompt-during-execution.md new file mode 100644 index 0000000000..c356c31a2a --- /dev/null +++ b/agentydragon/tasks/13-interactive-prompt-during-execution.md @@ -0,0 +1,35 @@ +# Task 13: Interactive Prompting and Commands While Executing + +> *This task is specific to codex-rs.* + +## Status + +**General Status**: Not started +**Summary**: Not started; missing Implementation details (How it was implemented and How it works). + +## Goal + +Allow users to interleave composing prompts and issuing slash-commands while the agent is actively executing (e.g. streaming completions), without aborting the current run. + +## Acceptance Criteria + +- While the LLM is streaming a response or executing a tool, the input box remains active for user edits and slash-commands. +- Sending a message or `/`-command does not implicitly cancel or abort the ongoing execution. +- Any tool invocation messages from the agent must still be immediately followed by their corresponding tool output messages (or the API will error). +- Ensure the TUI correctly preserves the stream and appends new user input at the bottom, scrolling as needed. +- No deadlocks or lost events if the agent finishes while the user is typing; buffer and render properly. +- Update tests to simulate concurrent user input during streaming and validate UI state. + +## Implementation + +**How it was implemented** +*(Not implemented yet)* + +**How it works** +*(Not implemented yet)* + +## Notes + +- Look at the ChatComposer and streaming loop in `tui/src/bottom_pane/chat_composer.rs` for input and stream handling. +- Ensure event loop in `app.rs` multiplexes between agent stream events and user input events without blocking. +- Consider locking or queuing tool-use messages to guarantee prompt tool-output pairing. \ No newline at end of file