Add bash tool - #16
Draft
barryceelen wants to merge 39 commits into
Draft
Conversation
Resolved conflicts: - api/api.py: combine check_cancelled() from main with iteration limit check from feature/bash - chat/ask_question.py: use unconditional clear_tool_status() from main
…es section
- Introduce _stream_one_turn as a shared SSE helper and route both
stream_response and run_with_text_editor_loop through it, so the
text editor / bash loop now streams text live between tool calls
instead of dumping each turn at end_turn.
- Reassemble tool_use input from input_json_delta fragments; echo
full assistant content (text + tool_use + server/web_search blocks)
back on each round-trip; accumulate usage and sources across turns.
- Render web search results as a foldable ## Sources block appended
after the answer (defer_to_end), with the handler inserting the
correct blank-line separator regardless of the streamed tail.
- Insert a newline between run-on sentences ("once!Based") per
character so the fix works across chunk boundaries and in the
previously non-streaming agent path.
- Drop the now-unused _request_non_streaming path and the
insert_after_response_header plumbing.
- Make items clickable - Update help text - Update top margin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.