Skip to content

fix(acp): emit native plan updates for todo tool (salvage #26393)#26583

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-362f46a9
May 15, 2026
Merged

fix(acp): emit native plan updates for todo tool (salvage #26393)#26583
teknium1 merged 2 commits into
mainfrom
hermes/hermes-362f46a9

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #26393 from @HenkDz onto current main.

Summary

ACP adapter emits sessionUpdate: plan events when the todo tool completes, so Zed renders Hermes' todo list in its native task/plan panel instead of only as a generic tool-call transcript block.

Changes

  • acp_adapter/events.py — new _build_plan_update_from_todo_result() parses todo JSON, maps statuses, emits AgentPlanUpdate after normal tool-completion update
  • acp_adapter/server.py — replays native plan updates when loading persisted sessions
  • tests/acp/test_events.py + tests/acp/test_server.py — 4 new tests (live emission, trailing-hint JSON, empty-list clear, load-session replay)

Notes

  • ACP plan status only supports pending/in_progress/completed; cancelled todos are preserved as completed with a [cancelled] content prefix
  • Original PR fix(acp): emit native plan updates for todo #26393 was clean against main and cherry-picked without conflicts; opening as a salvage PR to land via rebase-merge and preserve Henk's authorship

Validation

scripts/run_tests.sh tests/acp/test_events.py tests/acp/test_server.py -q → 83 passed in 1.91s

Closes #26393.

@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-362f46a9 vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8298 on HEAD, 8297 on base (🆕 +1)

🆕 New issues (1):

Rule Count
unresolved-import 1
First entries
acp_adapter/events.py:17: [unresolved-import] unresolved-import: Cannot resolve imported module `acp.schema`

✅ Fixed issues: none

Unchanged: 4331 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@teknium1 teknium1 force-pushed the hermes/hermes-362f46a9 branch from 45041b6 to 5e5269b Compare May 15, 2026 21:07
@teknium1 teknium1 merged commit bd3a587 into main May 15, 2026
12 checks passed
@teknium1 teknium1 deleted the hermes/hermes-362f46a9 branch May 15, 2026 21:07
@alt-glitch alt-glitch added type/feature New feature or request comp/acp Agent Communication Protocol adapter P3 Low — cosmetic, nice to have labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/acp Agent Communication Protocol adapter P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants