Add resumable multi-step agent sessions
Merged
TH
3mo ago+691+691+012345678901234567890123456789-43-43-01234567890123456789
Summary
- Add explicit
resume = truesupport for multi-step tasks so a step can continue the previous step's native agent session instead of starting a fresh conversation. - Preserve the previous step's live
/logs/agentstate when the next step resumes, while still archiving a copy under the step output directory. - Reject first-step or missing-state resumes, fail cleanly for agents without native resume support, and document the task configuration behavior.
Fixes #1858.
Testing
uv --no-config run ruff check --fix .uv --no-config run ruff format .uv --no-config run ty checkuv --no-config run pytest tests/unit/models/test_task_config_toml.py tests/unit/test_multi_step_run_step.py tests/integration/test_multi_step_trial.py --maxfail=1uv --no-config run pytest tests/unit/ --maxfail=1npm_config_cache=/tmp/npm-cache npm exec --yes --package bun -- bun run buildfromdocs/- Runtime Docker checks passed on a two-step
resume = truerecall task forcodex,claude-code, andopencode.