Repository navigation
fix(chat,agents): register todo tools on chat; keep mailbox on recall error - #288
Merged
Merged
Conversation
… error Closes #276, closes #287 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
The chat todo test relied on a use that is gated behind the mcp feature, breaking cargo check --no-default-features --features shell-tools. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
What
Two scan-2 fixes: chat now registers and hydrates
todo_read/todo_write;agent_pollno longer consumes/cleans the mailbox when the uteke recall fails.Why
Changes
crates/tole-cli/src/main.rs: newregister_todo_toolshelper (hydrates per-sessionTodoStatefrom replayed entries;todo_writeomitted in plan mode), called inchat_commandafter storage opens. Closes chat: todo_read/todo_write never registered on the chat face #276crates/tole-core/src/agents.rs: consume logic extracted toAgentPollTool::consume_mailbox(injectable recall); onErrit returns arecall_errorfield and leaves the mailbox unconsumed/uncleaned so the next poll retries. Closes agents: mailbox marked consumed even when uteke recall fails #287Testing
chat_todo_tests::chat_registers_todo_tools_and_respects_plan_mode,agents::tests::recall_error_keeps_mailbox_unconsumed_and_retries.consumed_flag_survives_a_new_poll_instancenow stubs recall (it previously relied on uteke failing).-D warnings,cargo test --workspacepass;cora review --staged: no issues.🤖 Generated with Claude Code