Repository navigation
fix(cli): resolve latest/last on MCP show/status/apply/diagnose/cancel/resume - #897
Conversation
…l/resume Closes #896 #892 taught the CLI to accept latest/last, but show_payload/status_payload/ apply_payload and the MCP tools called them (or runstore) directly, so a host asking to show the newest run still got "no run 'latest'". Resolve the alias in the shared helper so CLI, payloads and MCP tools match.
|
Verdict: PASS Ran: Correctness. Tests / docs. Extended Risk. T2 (package code: cli.py, mcp.py, diagnose.py + tests + changelog). AGENT_PAUSE=false; will squash-merge when required CI is green. |
Closes #896
#892taught the CLI to acceptlatest/last, butshow_payload/status_payload/apply_payloadand the MCP tools that call them (orrunstoredirectly) still looked up a directory namedlatest. A host asked to "show the latest run" gotno run 'latest'.agentdescent/cli.py: extractresolve_run_idand use it from the payload helpers (and the CLI wrapper).agentdescent/diagnose.py: report the resolved run id aftershow_payload.agentdescent/mcp.py: resolve oncancel/resume; documentlatest/laston the tool descriptions.tests/test_latest_run_alias.py: payload + MCP coverage, including the empty-store wording.changelog.d/896-mcp-latest-run-alias.md.Tests:
pytest tests/test_latest_run_alias.py tests/test_changelog_fragments.py tests/test_mcp.py tests/test_diagnose.pypass locally.