Skip to content

Allow top-level answers without a tool call - #2752

Open
cartridgebasic wants to merge 19 commits into
Zoo-Code-Org:mainfrom
cartridgebasic:fix/plain-completion
Open

cartridgebasic wants to merge 19 commits into
Zoo-Code-Org:mainfrom
cartridgebasic:fix/plain-completion

Conversation

@cartridgebasic

Copy link
Copy Markdown
Contributor

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.

pnpm --dir src exec vitest run --maxWorkers=2 core/prompts/__tests__/sections.spec.ts core/prompts/sections/__tests__/objective.spec.ts core/prompts/sections/__tests__/tool-use-guidelines.spec.ts core/prompts/sections/__tests__/tool-use.spec.ts core/task/__tests__/Task.spec.ts core/tools/__tests__/attemptCompletionTool.spec.ts core/webview/__tests__/generateSystemPrompt.spec.ts core/prompts/__tests__/system-prompt.spec.ts core/prompts/__tests__/add-custom-instructions.spec.ts
pnpm --dir src exec tsc --noEmit

All listed checks passed.

Pre-Submission Checklist

  • Issue Linked
  • Scope
  • Self-Review
  • Writing Style
  • Testing
  • Documentation Impact
  • Contribution Guidelines

Documentation Updates

  • Yes, documentation updates are required. Describe the difference between top-level text completion and delegated completion.

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

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

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

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

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 98eaf27 and d391580.

Files ignored due to path filters: 7

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap is excluded by !**/*.snap
  • src/core/prompts/__tests__/__snapshots__/add-custom-instructions/ask-mode-prompt.snap is excluded by !**/*.snap
  • src/core/prompts/__tests__/__snapshots__/add-custom-instructions/no-mcp-servers.snap is excluded by !**/*.snap
  • src/core/prompts/__tests__/__snapshots__/system-prompt/consistent-system-prompt.snap is excluded by !**/*.snap
  • src/core/prompts/__tests__/__snapshots__/system-prompt/with-mcp-hub-provided.snap is excluded by !**/*.snap
  • src/core/prompts/__tests__/__snapshots__/system-prompt/with-undefined-mcp-hub.snap is excluded by !**/*.snap
Files selected for processing: 311

  • .github/workflows/agent-evals.yml
  • .github/workflows/code-qa.yml
  • .github/workflows/release-kickoff.yml
  • CHANGELOG.md
  • CONTRIBUTING.md
  • docs/architecture/agent-evals-publication.md
  • docs/architecture/task-lifecycle-model.md
  • docs/architecture/tla/EvalComparisonInputs.NoCheckKeys.cfg
  • docs/architecture/tla/EvalComparisonInputs.NoCheckOutcomes.cfg
  • docs/architecture/tla/EvalComparisonInputs.NoCheckTimer.cfg
  • docs/architecture/tla/EvalComparisonInputs.NoCheckValues.cfg
  • docs/architecture/tla/EvalComparisonInputs.cfg
  • docs/architecture/tla/EvalComparisonInputs.tla
  • docs/architecture/tla/EvalComparisonInputsMC.tla
  • docs/architecture/tla/EvalComparisonRelease.NoFlowRollback.cfg
  • docs/architecture/tla/EvalComparisonRelease.NoRemove.cfg
  • docs/architecture/tla/EvalComparisonRelease.NoSyncRelease.cfg
  • docs/architecture/tla/EvalComparisonRelease.cfg
  • docs/architecture/tla/EvalComparisonRelease.tla
  • docs/architecture/tla/EvalComparisonReleaseMC.tla
  • docs/architecture/tla/EvalFrozenTests.Unfixed.cfg
  • docs/architecture/tla/EvalFrozenTests.cfg
  • docs/architecture/tla/EvalFrozenTests.tla
  • docs/architecture/tla/EvalHostPreparation.ExtraBuild.cfg
  • docs/architecture/tla/EvalHostPreparation.NoCheckOutputs.cfg
  • docs/architecture/tla/EvalHostPreparation.cfg
  • docs/architecture/tla/EvalHostPreparation.tla
  • docs/architecture/tla/EvalHostPreparationMC.tla
  • docs/architecture/tla/EvalOutputOwnership.NoPinOutput.cfg
  • docs/architecture/tla/EvalOutputOwnership.cfg
  • docs/architecture/tla/EvalOutputOwnership.tla
  • docs/architecture/tla/EvalOutputOwnershipMC.tla
  • docs/architecture/tla/EvalPreparationDrain.NoWaitClose.cfg
  • docs/architecture/tla/EvalPreparationDrain.cfg
  • docs/architecture/tla/EvalPreparationDrain.tla
  • docs/architecture/tla/EvalPreparationDrainMC.tla
  • docs/architecture/tla/EvalPublication.EarlyCommit.cfg
  • docs/architecture/tla/EvalPublication.NoInterrupt.cfg
  • docs/architecture/tla/EvalPublication.NoPreCommit.cfg
  • docs/architecture/tla/EvalPublication.cfg
  • docs/architecture/tla/EvalPublication.tla
  • docs/architecture/tla/EvalPublicationMC.tla
  • docs/architecture/tla/EvalReportRead.NoRecheck.cfg
  • docs/architecture/tla/EvalReportRead.cfg
  • docs/architecture/tla/EvalReportRead.tla
  • docs/architecture/tla/EvalReportReadMC.tla
  • docs/architecture/tla/EvalRunRetention.Unfixed.cfg
  • docs/architecture/tla/EvalRunRetention.cfg
  • docs/architecture/tla/EvalRunRetention.tla
  • docs/architecture/tla/EvalScriptPath.NoDecode.cfg
  • docs/architecture/tla/EvalScriptPath.cfg
  • docs/architecture/tla/EvalScriptPath.tla
  • docs/architecture/tla/EvalScriptPathMC.tla
  • docs/architecture/tla/EvalWorkflow.NoApproval.cfg
  • docs/architecture/tla/EvalWorkflow.NoCandidate.cfg
  • docs/architecture/tla/EvalWorkflow.NoHead.cfg
  • docs/architecture/tla/EvalWorkflow.NoInfrastructure.cfg
  • docs/architecture/tla/EvalWorkflow.NoReport.cfg
  • docs/architecture/tla/EvalWorkflow.NoTrigger.cfg
  • docs/architecture/tla/EvalWorkflow.cfg
  • docs/architecture/tla/EvalWorkflow.tla
  • docs/architecture/tla/EvalWorkflowMC.tla
  • docs/architecture/tla/ExceptionCapture.tla
  • docs/architecture/tla/ExceptionCaptureMC.Joined.cfg
  • docs/architecture/tla/ExceptionCaptureMC.LateIdentity.cfg
  • docs/architecture/tla/ExceptionCaptureMC.LateMark.cfg
  • docs/architecture/tla/ExceptionCaptureMC.NoIdentity.cfg
  • docs/architecture/tla/ExceptionCaptureMC.NoOptIn.cfg
  • docs/architecture/tla/ExceptionCaptureMC.NoWindow.cfg
  • docs/architecture/tla/ExceptionCaptureMC.Unbounded.cfg
  • docs/architecture/tla/ExceptionCaptureMC.WithoutCode.cfg
  • docs/architecture/tla/ExceptionCaptureMC.WithoutModel.cfg
  • docs/architecture/tla/ExceptionCaptureMC.WithoutName.cfg
  • docs/architecture/tla/ExceptionCaptureMC.WithoutProvider.cfg
  • docs/architecture/tla/ExceptionCaptureMC.cfg
  • docs/architecture/tla/ExceptionCaptureMC.tla
  • docs/architecture/tla/ExceptionCopy.tla
  • docs/architecture/tla/ExceptionCopyMC.Assignment.cfg
  • docs/architecture/tla/ExceptionCopyMC.Mutating.cfg
  • docs/architecture/tla/ExceptionCopyMC.PlainCopy.cfg
  • docs/architecture/tla/ExceptionCopyMC.cfg
  • docs/architecture/tla/ExceptionCopyMC.tla
  • docs/architecture/tla/LintCache.FileReuse.cfg
  • docs/architecture/tla/LintCache.NoLocalCache.cfg
  • docs/architecture/tla/LintCache.cfg
  • docs/architecture/tla/LintCache.tla
  • docs/architecture/tla/LocalTestRunner.DropArguments.cfg
  • docs/architecture/tla/LocalTestRunner.DropConcurrency.cfg
  • docs/architecture/tla/LocalTestRunner.DropWorkers.cfg
  • docs/architecture/tla/LocalTestRunner.DuplicateOptions.cfg
  • docs/architecture/tla/LocalTestRunner.NoBundleGate.cfg
  • docs/architecture/tla/LocalTestRunner.NoTurboEnv.cfg
  • docs/architecture/tla/LocalTestRunner.OverrideCI.cfg
  • docs/architecture/tla/LocalTestRunner.PackageOptions.cfg
  • docs/architecture/tla/LocalTestRunner.SilentSpawn.cfg
  • docs/architecture/tla/LocalTestRunner.WrongConcurrencyLog.cfg
  • docs/architecture/tla/LocalTestRunner.cfg
  • docs/architecture/tla/LocalTestRunner.tla
  • docs/architecture/tla/LocalTestRunnerMC.tla
  • docs/architecture/tla/OpenRouterException.tla
  • docs/architecture/tla/OpenRouterExceptionMC.ContextStatus.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.Copied.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.NoBody.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.NoStatus.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.Prefixed.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.RawMessage.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.RawPriority.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.cfg
  • docs/architecture/tla/OpenRouterExceptionMC.tla
  • docs/architecture/tla/StreamReadCancellation.Dropped.cfg
  • docs/architecture/tla/StreamReadCancellation.Leak.cfg
  • docs/architecture/tla/StreamReadCancellation.Reason.cfg
  • docs/architecture/tla/StreamReadCancellation.cfg
  • docs/architecture/tla/StreamReadCancellation.tla
  • docs/architecture/tla/StreamReadCancellationMC.tla
  • docs/architecture/tla/ThoughtSignature.EchoReasoning.cfg
  • docs/architecture/tla/ThoughtSignature.EncodedFirst.cfg
  • docs/architecture/tla/ThoughtSignature.ForeignEncoded.cfg
  • docs/architecture/tla/ThoughtSignature.FrozenCursor.cfg
  • docs/architecture/tla/ThoughtSignature.IdOnly.cfg
  • docs/architecture/tla/ThoughtSignature.NextResult.cfg
  • docs/architecture/tla/ThoughtSignature.NoMarker.cfg
  • docs/architecture/tla/ThoughtSignature.ReusedId.cfg
  • docs/architecture/tla/ThoughtSignature.StreamFirstWins.cfg
  • docs/architecture/tla/ThoughtSignature.UnpairedIds.cfg
  • docs/architecture/tla/ThoughtSignature.UnsignedResult.cfg
  • docs/architecture/tla/ThoughtSignature.cfg
  • docs/architecture/tla/ThoughtSignature.tla
  • docs/architecture/tla/ThoughtSignatureMC.tla
  • docs/architecture/tla/ThoughtSignatureOccurrences.tla
  • docs/architecture/tla/ThoughtSignaturePersistence.Replacement.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.ReportAttempts.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.Reporting.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.ReportingWait.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.SaveBeforeDrain.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.ToolRetry.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.Unbounded.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.UsageBudget.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.cfg
  • docs/architecture/tla/ThoughtSignaturePersistence.tla
  • docs/architecture/tla/ThoughtSignaturePersistenceMC.tla
  • docs/architecture/tla/ThoughtSignatureRecovery.Automatic.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.LateMessage.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.NoAsk.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.Persistence.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.Presenter.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.Receipt.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.Replay.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.cfg
  • docs/architecture/tla/ThoughtSignatureRecovery.tla
  • docs/architecture/tla/ThoughtSignatureRecoveryMC.tla
  • docs/architecture/tla/ThoughtSignatureRequests.SharedLast.cfg
  • docs/architecture/tla/ThoughtSignatureRequests.cfg
  • docs/architecture/tla/ThoughtSignatureRequests.tla
  • docs/architecture/tla/ThoughtSignatureRequestsMC.tla
  • docs/architecture/tla/ThoughtSignatureStream.tla
  • docs/architecture/tla/ToolResultRetry.Current.cfg
  • docs/architecture/tla/ToolResultRetry.LoseDecline.cfg
  • docs/architecture/tla/ToolResultRetry.LosePending.cfg
  • docs/architecture/tla/ToolResultRetry.LoseRetry.cfg
  • docs/architecture/tla/ToolResultRetry.Popped.cfg
  • docs/architecture/tla/ToolResultRetry.Summary.cfg
  • docs/architecture/tla/ToolResultRetry.cfg
  • docs/architecture/tla/ToolResultRetry.tla
  • docs/development-quality-checks.md
  • package.json
  • packages/telemetry/src/PostHogTelemetryClient.ts
  • packages/telemetry/src/TelemetryService.ts
  • packages/telemetry/src/__tests__/PostHogTelemetryClient.message-preservation.test.ts
  • packages/telemetry/src/__tests__/PostHogTelemetryClient.test.ts
  • packages/telemetry/src/__tests__/TelemetryService.exception-single-capture.test.ts
  • packages/types/src/__tests__/vscode-llm.spec.ts
  • packages/types/src/providers/vscode-llm.ts
  • packages/types/src/telemetry.ts
  • pnpm-workspace.yaml
  • scripts/agent-evals-workflow.test.mjs
  • scripts/agent-evals/README.md
  • scripts/agent-evals/coding-compare-driver.test.ts
  • scripts/agent-evals/coding-compare-script.test.ts
  • scripts/agent-evals/coding-compare.mts
  • scripts/agent-evals/coding-compare.ts
  • scripts/agent-evals/coding-digest.test.ts
  • scripts/agent-evals/coding-digest.ts
  • scripts/agent-evals/coding-fixtures.test.ts
  • scripts/agent-evals/coding-fixtures.ts
  • scripts/agent-evals/coding-frozen-tests.test.ts
  • scripts/agent-evals/coding-grader.test.ts
  • scripts/agent-evals/coding-grader.ts
  • scripts/agent-evals/coding-metrics.test.ts
  • scripts/agent-evals/coding-metrics.ts
  • scripts/agent-evals/coding-outcomes.test.ts
  • scripts/agent-evals/coding-outcomes.ts
  • scripts/agent-evals/coding-pins.test.ts
  • scripts/agent-evals/coding-pins.ts
  • scripts/agent-evals/coding-pricing.test.ts
  • scripts/agent-evals/coding-pricing.ts
  • scripts/agent-evals/coding-reference-solutions.test.ts
  • scripts/agent-evals/coding-report.test.ts
  • scripts/agent-evals/coding-report.ts
  • scripts/agent-evals/coding-run.test.ts
  • scripts/agent-evals/coding-run.ts
  • scripts/agent-evals/coding-side-flow.test.ts
  • scripts/agent-evals/coding-side-flow.ts
  • scripts/agent-evals/coding-side.mts
  • scripts/agent-evals/coding-side.test.ts
  • scripts/agent-evals/coding-stats.test.ts
  • scripts/agent-evals/coding-stats.ts
  • scripts/agent-evals/coding-suite.ts
  • scripts/agent-evals/coding-summary.mts
  • scripts/agent-evals/coding-trust.test.ts
  • scripts/agent-evals/coding-trust.ts
  • scripts/agent-evals/coding-workspace.test.ts
  • scripts/agent-evals/coding-workspace.ts
  • scripts/agent-evals/container-runtime.test.ts
  • scripts/agent-evals/container-runtime.ts
  • scripts/agent-evals/download-vscode.mjs
  • scripts/agent-evals/fs-atomic.test.ts
  • scripts/agent-evals/fs-atomic.ts
  • scripts/agent-evals/grader-driver.mjs
  • scripts/agent-evals/grader-driver.test.ts
  • scripts/agent-evals/grader-events.d.mts
  • scripts/agent-evals/grader-events.mjs
  • scripts/agent-evals/host-build.test.ts
  • scripts/agent-evals/host-build.ts
  • scripts/agent-evals/launcher.test.ts
  • scripts/agent-evals/launcher.ts
  • scripts/agent-evals/output-lock.test.ts
  • scripts/agent-evals/output-lock.ts
  • scripts/agent-evals/preparation-environment.test.ts
  • scripts/agent-evals/publication.test.ts
  • scripts/agent-evals/publication.ts
  • scripts/agent-evals/runner.test.ts
  • scripts/agent-evals/runner.ts
  • scripts/agent-evals/side-process-guard.test.ts
  • scripts/agent-evals/side-process-guard.ts
  • scripts/agent-evals/trace.ts
  • scripts/agent-evals/vscode-cache.test.ts
  • scripts/agent-evals/vscode-cache.ts
  • scripts/check-completion-persistence.ts
  • scripts/code-qa-workflow.test.mjs
  • scripts/fixtures/local-test-runner/bundle.mjs
  • scripts/fixtures/local-test-runner/probe.test.js
  • scripts/fixtures/local-test-runner/run-vitest.mjs
  • scripts/fixtures/local-test-runner/setup.mjs
  • scripts/fixtures/local-test-runner/vitest.config.mjs
  • scripts/solheim-smoke/run.test.ts
  • scripts/test-local.integration.test.mjs
  • scripts/test-local.mjs
  • scripts/test-local.test.mjs
  • src/CHANGELOG.md
  • src/__tests__/extension.spec.ts
  • src/api/index.ts
  • src/api/providers/__tests__/bedrock.spec.ts
  • src/api/providers/__tests__/github-copilot.spec.ts
  • src/api/providers/__tests__/lite-llm.spec.ts
  • src/api/providers/__tests__/minimax.spec.ts
  • src/api/providers/__tests__/openai.spec.ts
  • src/api/providers/__tests__/openrouter.spec.ts
  • src/api/providers/__tests__/vscode-lm.spec.ts
  • src/api/providers/bedrock.ts
  • src/api/providers/lite-llm.ts
  • src/api/providers/minimax.ts
  • src/api/providers/openai.ts
  • src/api/providers/openrouter.ts
  • src/api/providers/utils/__tests__/thought-signature.spec.ts
  • src/api/providers/utils/thought-signature.ts
  • src/api/providers/vscode-lm.ts
  • src/api/transform/__tests__/bedrock-converse-format.spec.ts
  • src/api/transform/bedrock-converse-format.ts
  • src/core/assistant-message/NativeToolCallParser.ts
  • src/core/assistant-message/__tests__/NativeToolCallParser.spec.ts
  • src/core/environment/__tests__/getEnvironmentDetails.spec.ts
  • src/core/environment/__tests__/getFullModeDetails.spec.ts
  • src/core/environment/getEnvironmentDetails.ts
  • src/core/environment/getFullModeDetails.ts
  • src/core/prompts/__tests__/sections.spec.ts
  • src/core/prompts/responses.ts
  • src/core/prompts/sections/__tests__/objective.spec.ts
  • src/core/prompts/sections/__tests__/tool-use-guidelines.spec.ts
  • src/core/prompts/sections/__tests__/tool-use.spec.ts
  • src/core/prompts/sections/objective.ts
  • src/core/prompts/sections/rules.ts
  • src/core/prompts/sections/tool-use-guidelines.ts
  • src/core/prompts/sections/tool-use.ts
  • src/core/prompts/system.ts
  • src/core/prompts/tools/effective-tool-policy.ts
  • src/core/task/Task.ts
  • src/core/task/__tests__/Task.spec.ts
  • src/core/task/__tests__/apiConversationHistory.spec.ts
  • src/core/task/__tests__/empty-response-history.spec.ts
  • src/core/task/__tests__/messageCounting.spec.ts
  • src/core/task/__tests__/thoughtSignatureDrain.spec.ts
  • src/core/task/apiConversationHistory.ts
  • src/core/task/messageCounting.ts
  • src/core/task/thoughtSignatureDrain.ts
  • src/core/tools/AttemptCompletionTool.ts
  • src/core/tools/__tests__/attemptCompletionTool.spec.ts
  • src/core/tools/__tests__/coding-eval-boundary.spec.ts
  • src/core/webview/__tests__/generateSystemPrompt.spec.ts
  • src/eslint.config.mjs
  • src/package.json
  • src/shared/__tests__/modes.spec.ts
  • src/shared/modes.ts
  • src/shared/tools.ts
  • src/shared/vsCodeSelectorUtils.ts
  • turbo.json
  • webview-ui/src/components/settings/providers/OpenAICompatible.tsx
  • webview-ui/src/components/settings/providers/__tests__/OpenAICompatible.spec.tsx
  • webview-ui/src/components/ui/hooks/__tests__/useSelectedModel.spec.ts
  • webview-ui/src/components/ui/hooks/useSelectedModel.ts
  • webview-ui/vite.config.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Review status

Thanks 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. community-approved is managed the same way — do not add or remove it manually. It signals a fresh community code approval for the current head as an advisory priority only; maintainer review is still required.

cartridgebasic and others added 3 commits November 26, 2026 13:40
…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

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

simurg79 and others added 5 commits November 27, 2026 05:42
…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>
…-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
@cartridgebasic
cartridgebasic marked this pull request as ready for review November 30, 2026 18:20
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Changed-code mutation testing

Report for PR head d391580cdc43.

Surviving / uncovered mutants Advisories
0 1
Details: mutants, guidance, and reproduction

Changed-code mutation testing

PackageChanged executable linesValidKilledTimeoutSurvivedNo coverageResult
telemetry111000Passed
extension3900000Advisory incomplete

Focused tests

  • telemetry (cwd packages/telemetry): src/__tests__/TelemetryService.exception-single-capture.test.ts, src/__tests__/PostHogTelemetryClient.message-preservation.test.ts, src/__tests__/TelemetryService.shutdown.test.ts, src/__tests__/TelemetryService.circuit-breaker.test.ts, src/__tests__/TelemetryService.task-completed.test.ts, src/__tests__/TelemetryService.consecutive-mistake.test.ts
  • extension (cwd src): The mutation run was incomplete; selected test file names were not recorded. See Advisory findings for the failure.

Reproduce locally

From a full checkout containing both commits:

pnpm install --frozen-lockfile
node scripts/stryker-diff.mjs ci --base 9f8e4836680277425d36b47866b65b1b78b8b55c --head 688eb618ddadbe5129345ecefa92baa14ff772ce

Mutation reports

  • telemetry: reports/mutation/telemetry/mutation.html
  • extension: reports/mutation/extension/mutation.html

The workflow uploads generated reports in the changed-code-mutation-report artifact. A direct artifact link appears below after upload.

Advisory findings

  • extension Stryker preflight failed: 19:46:46 (2864) INFO ProjectReader Found 8 of 1451 file(s) to be mutated. 19:46:46 (2864) INFO Instrumenter Instrumented 8 source file(s) with 60 mutant(s) 19:46:47 (2864) INFO ConcurrencyTokenProvider Creating 2 test runner process(es). 19:46:48 (2864) INFO DryRunExecutor Note: running the dry-run only. No mutations will be tested. 19:46:48 (2864) INFO DryRunExecutor Starting initial test run (vitest test runner with "perTest" coverage analysis). This may take a while. 19:50:08 (2864) ERROR DryRunExecutor One or more tests failed in the initial test run: coding eval host command boundary rejects an outside-workspace git diff in clamp-range before command execution Cannot find module '../../../../scripts/agent-evals/coding-fixtures' imported from /home/runner/work/Zoo-Code/Zoo-Code/.stryker-tmp/sandbox-LNPEWy/core/tools/__tests__/coding-eval-boundary.spec.ts 19:50:08 (2864) ERROR Stryker There were failed tests in the initial test run. file:///home/runner/work/Zoo-Code/Zoo-Code/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@stryker-mutator/core/dist/src/process/3-dry-run-executor.js:65 throw new ConfigError('There were failed tests in the initial test run.'); ^ ConfigError: There were failed tests in the initial test run. at DryRunExecutor.validateResultCompleted (file:///home/runner/work/Zoo-Code/Zoo-Code/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@stryker-mutator/core/dist/src/process/3-dry-run-executor.js:65:27) at DryRunExecutor.executeDryRun (file:///home/runner/work/Zoo-Code/Zoo-Code/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@stryker-mutator/core/dist/src/process/3-dry-run-executor.js:100:14) at process.processTicksAndRejections (node:internal/process/task_queues:103:5) at async WorkItem.execute (file:///home/runner/work/Zoo-Code/Zoo-Code/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@stryker-mutator/core/dist/src/concurrent/pool.js:32:28) at async file:///home/runner/work/Zoo-Code/Zoo-Code/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@stryker-mutator/core/dist/src/concurrent/pool.js:69:13 { innerError: undefined } Node.js v22.23.4

zoomote Bot and others added 10 commits December 1, 2026 02:14
…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
…-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]>
@github-actions github-actions Bot added coderabbit-review-active Required CI passed; CodeRabbit review is active awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit labels Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-coderabbit Waiting for CodeRabbit to approve the latest commit coderabbit-review-active Required CI passed; CodeRabbit review is active

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Token Wasting by Enforcing Tool Use in Ask Mode - Duplicate Responses

6 participants