DeepSeek-Reasonix
DeepSeek-Reasonix copied to clipboard
Preserve parallel subagent results / 保留并行子 Agent 完整结果
Summary
- Keep every persisted
parallel_tasksandfleetchild answer in its own transcript instead of concatenating all full reports into one truncation-prone tool result. - Return fair bounded previews plus stable
Subagent referencevalues, and add the read-onlyread_subagent_resultpager for lossless UTF-8 retrieval. - Route ordinary parallel tasks through the shared task scheduler while preserving read-only, cancellation, Plan mode, and no-tool direct-answer behavior.
- Restrict result reads to completed children in the current conversation lineage and workspace, with no new setting or recovery step.
Issues
Related discussion: https://github.com/esengine/DeepSeek-Reasonix/discussions/7240
Verification
go test ./... -count=1go test -race ./internal/agent -count=1./scripts/cache-guard.sh(all scenarios passed; scores 92-95 against a minimum of 90)git diff --check- Concurrency audit: VERIFIED SAFE. Persisted children use unique refs/files, result reads share the existing per-ref store lock with terminal saves, and cancellation/status accounting remains scheduler-owned.
Compatibility
| Field or surface | Old-data behavior | Conclusion |
|---|---|---|
| Existing subagent metadata and transcripts | Formats and enum values are unchanged; old records continue to load normally. | Compatible |
ProfileExecSpec.AllowNoTools |
Internal, non-persisted field; the zero value preserves the existing fail-closed behavior. | Compatible |
| New result reader | Additive tool over the existing transcript format; older binaries simply do not expose the reader. | Compatible |
| Headless sessions without a persisted parent | Existing ephemeral behavior is retained; they receive bounded previews but cannot mint durable refs. | Compatible, documented limitation |
Cache impact
Cache-impact: low — one additive static read-only tool schema changes the provider-visible prefix once after upgrade; result refs never enter schemas and subsequent bytes remain stable.
Cache-guard: ./scripts/cache-guard.sh passed all scenarios.
System-prompt-review: N/A — system-prompt bytes are unchanged; only the static tool surface and task wiring change.