Repository navigation
Allow top-level answers without a tool call - #2752
cartridgebasic wants to merge 19 commits into
Conversation
Finish text-only responses through the existing completion path and retain tool completion for delegated work. Clarify observation provenance in prompts. Refs Zoo-Code-Org#548
|
Important Review skippedToo many files! This PR contains 311 files, which is 11 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. This organization's CodeRabbit subscription is cancelled. Resubscribe in Billing to continue reviews beyond the free-tier limit.
|
Review statusThanks for contributing. This comment tracks the review sequence and the next action. Current step: Required CI passed. Waiting for automated review of the latest commit. If automated review does not start, a maintainer must restart it. Review-state labels are managed by this workflow; do not edit them manually. |
…ponse retry (Zoo-Code-Org#2701) * fix(task): keep one saved tool-result turn across empty-response retries (Zoo-Code-Org#2691) * fix: preserve user turn identity across empty-response retries * fix: keep saved tool-result turns across empty-response retries * test: cover retry declines and cancellation, update TLA review notes --------- Co-authored-by: Roomote <[email protected]> Co-authored-by: Elliott de Launay <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…Code-Org#2759) * Add the advertised Fable 5.2 token budget for VS Code LM models * Add measured settings for five new VS Code LM models * Use catalog rows only for own family keys and test the no-client context window --------- Co-authored-by: Bertan Ari <[email protected]>
Co-authored-by: zoomote[bot] <347161277+zoomote[bot]@users.noreply.github.com>
Co-authored-by: Roomote <[email protected]>
…-Org#2643) * fix: preserve Gemini thought signatures through proxy tool calls * test: verify proxy thought signature origin isolation * fix: prefer explicit thought signatures across stream chunks * fix: isolate thought signatures by origin and request * fix: preserve thought signatures through interrupted streams and reused call IDs * fix: bound thought signature drains and preserve producing handler metadata * fix: prevent usage reporting from retrying completed turns * fix: stop stream retries after tool execution may have started * fix: make failed tool turns recoverable and simplify stream cancellation * fix: settle failed tool turns before prompting for recovery
…Zoo-Code-Org#2154) * feat(evals): add coding-task evaluation framework (Zoo-Code-Org#2084) * fix(evals): secure coding comparisons and correct grading and cost accounting * fix(evals): enforce trust checks and reliable comparison cleanup and reports * fix(evals): pass test fixture paths as arguments instead of embedding code * fix(evals): enforce isolated grading and safe interruption and result writes * fix(agent-evals): reject dirty checkouts and clear stale grader digests * fix(agent-evals): prevent child startup after interruption and preserve signal exit codes * fix(agent-evals): detect dirty checkouts despite Git settings that hide changes * fix(agent-evals): isolate side builds and invalidate stale results before artifacts * fix(evals): wait for preparation cleanup after repeated interrupts * fix(evals): address review feedback on isolation, cleanup, and reports * fix(evals): address review feedback on isolation, cleanup, and reports * fix(evals): close review gaps in cleanup and run accounting * fix(evals): bind grader images and isolate host caches * fix(evals): clean up partial side publication on failure * fix(agent-evals): prevent credential leaks to grading subprocesses * fix(evals): probe container engines and preserve Docker endpoint settings * fix(evals): qualify grader image and test output permissions * fix(evals): address review feedback and failing CI assertions * fix(evals): reuse verified private VS Code cache and preserve proxy settings * fix(evals): disable host commands and lock comparison output * test(evals): verify disabled commands are blocked at dispatch * fix(evals): harden grading results and lock standalone side output * fix(evals): isolate grader assertions and protect output ownership * fix(agent-evals): verify trusted tests and share comparison output locks * fix(evals): reject comparison outputs inside managed artifacts trees * fix(evals): validate comparison scratch paths before worktree setup * fix(evals): address grading and comparison review findings * fix(evals): handle closed IPC and empty visible test files * fix(evals): stop coding sides when their parent disconnects * refactor(evals): share output publication protocol with TLA+ spec * fix(evals): address review findings and extend TLA+ coverage * refactor(evals): derive report metrics from run records and require frozen tests * test(evals): detect swallowed frozen-test assertion failures * fix(evals): reject bad side metrics and secure comparison lock release * refactor(evals): centralize comparison cleanup and terminal outcomes
Changed-code mutation testingReport for PR head
Details: mutants, guidance, and reproductionChanged-code mutation testing
Focused tests
Reproduce locallyFrom a full checkout containing both commits: Mutation reports
The workflow uploads generated reports in the Advisory findings
|
…de-Org#2757) * [Chore] Add memory-safe Vitest settings for local Docker runs Local Vitest runs start one fork worker per CPU and turbo runs ten package tasks at once. Small development containers run out of memory under that load. The new test:local command bundles first, then runs the workspace tests with four Vitest workers and two concurrent Turbo tasks. Both limits are overridable. Local worker caps ride on VITEST_MAX_WORKERS, so CI worker limits, lanes, coverage, and cache contracts stay unchanged. Fixes Zoo-Code-Org#2720 * perf: cache staged src lint and keep CI checks fresh * test: model local test runner and replace standalone guide * fix: forward local worker limits through Turbo and strengthen runner checks * fix: honor local test overrides and support standalone pnpm on Windows * Fix local runner review gaps and Windows CI entry point * chore: organize workflow tests and record TLA review results --------- Co-authored-by: Roomote <[email protected]> Co-authored-by: Elliott de Launay <[email protected]>
* fix(telemetry): capture one exception per API error occurrence * fix(telemetry): model exception deduplication and address review feedback * refactor(telemetry): simplify deduplication and strengthen TLA+ models * fix(telemetry): preserve error capture contracts and simplify eviction * fix: preserve telemetry opt-in state and strengthen exception capture checks * test(telemetry): verify error body preservation and raw message priority --------- Co-authored-by: Roomote <[email protected]> Co-authored-by: Elliott de Launay <[email protected]>
…de-Org#2781) * feat(evals): add approved evaluation workflow and TLA model * fix(evals): build extension before evaluation and share result validation * refactor(evals): centralize outcome validation and simplify TLA specs
…g#2790) * fix(webview): keep extension-host code out of src/shared src/shared/modes.ts pulled in code that imports vscode. The Vite dev dependency scan then failed, and the dev webview stayed blank on a cold cache. Move getFullModeDetails to src/core/environment and add a lint rule that rejects value imports of vscode and extension-host code in src/shared. * test(environment): cover empty global instructions in getFullModeDetails * build(webview): drop vscode external from the Vite config The file-search.ts chain that made vscode reachable from the webview is gone. Without the external, the webview build fails if vscode becomes reachable again. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(eslint): check dynamic imports in src/shared against an allowlist no-restricted-imports checks only static imports, so import("vscode") and require("../services/foo") in src/shared passed lint. The original blank webview came from a dynamic import. Add no-restricted-syntax selectors that check import() and require() too. A non-literal path cannot be checked, so it is not allowed. Repeat the i18n selectors, because this block replaces no-restricted-syntax for these files. All three import forms use one allowlist of modules that src/shared can load at runtime: other files in src/shared, ../package.json, @roo-code/types, @roo-code/core/browser, and shell-quote. This replaces the list of extension-host folders, so a new runtime dependency needs a deliberate allowlist change. Type-only imports stay allowed for all modules. Change the Anthropic import in shared/tools.ts to `import type`, because the file uses it only as a type. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Throttle partial JSON parsing for large arguments while preserving final parsing and ordinary partial previews. Refs Zoo-Code-Org#2725
…ode-Org#2791) * fix(settings): keep context window field editable when cleared * show saved context window on blur
…rg#2795) Co-authored-by: Bertan Ari <[email protected]>
…-Org#2796) * fix(api): preserve provider reasoning across tool calls Amp-Thread-ID: https://ampcode.com/threads/T-01a0aac1-c3f8-7220-a896-ac2dafbf72e1 * test(api): cover reasoning signature edge cases * fix(bedrock): drop signatures issued by other providers Bedrock never captures its own reasoning signatures, so any signature stored on a thinking block was issued by another provider (MiniMax) and would fail Bedrock's verification after a mid-task provider switch. Replay the reasoning text unsigned instead; `signature` is optional. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(bedrock): only replay reasoning to models that preserve it Signed thinking blocks (from MiniMax) bypass Task's preserveReasoning filter, so after a provider switch they reached every Bedrock model, including Claude, as unsigned reasoningContent. Drop reasoning and thinking blocks unless the model sets preserveReasoning, matching how Task already strips plain reasoning blocks. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(bedrock): stop reasoning replay at a new user message Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(bedrock): use a non-blank placeholder for a turn that held only filtered reasoning Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * test(bedrock): cover reasoning replay boundaries Add tests for a plain-text user message, a tool result with text, and no following message, for reasoning and thinking blocks. Also cover blocks without text and missing model info. * test(minimax): check the signature reset while the next request streams --------- Co-authored-by: Amp <[email protected]> Co-authored-by: PierrunoYT <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Related GitHub Issue
Closes #548
Description
Some models struggle to finish a simple answer when the prompt requires a tool call.
Accept a top-level text answer via the existing completion path. Keep tool-based completion for delegated work. Identify user messages and Zoo observations consistently in the prompts.
Test Procedure
Ask a top-level task a question that needs no tools. Compare the response with a delegated task that must report completion.
The checks below ran in the Linux review container with Node and pnpm.
All listed checks passed.
Pre-Submission Checklist
Documentation Updates
Additional Notes
This patch can be reviewed on its own. Focused checks passed after updating to upstream main. Assignment is pending. AI assistance was used for implementation, tests, and preparation of this draft. Maintainers can reach @cartridgebasic in this thread.
Get in Touch