docs(agentydragon): add Task 13 for interactive input during execution

This commit is contained in:
Rai (Michael Pokorny)
2025-06-24 12:55:29 -07:00
parent 489d2db021
commit db8e6f3255
2 changed files with 36 additions and 0 deletions

View File

@@ -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
---

View File

@@ -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.