Skip to content

fix: mark informational chunks with metadata - #1055

Open
kocaemre wants to merge 1 commit into
agentclientprotocol:mainfrom
kocaemre:fix/informational-message-meta
Open

fix: mark informational chunks with metadata#1055
kocaemre wants to merge 1 commit into
agentclientprotocol:mainfrom
kocaemre:fix/informational-message-meta

Conversation

@kocaemre

Copy link
Copy Markdown

Summary

  • tag SDK informational notices with _meta.claudeCode.kind = "informational"
  • include the notice level so clients can separate hook/status notices from model text
  • keep the existing rendered text unchanged for clients that ignore _meta

Fixes #1042

Test plan

  • npm test -- --run src/tests/acp-agent.test.ts -t informational
  • npm run build
  • npm run check
  • IS_SANDBOX=1 npm run test:run
  • git diff --check

Signed-off-by: Emre Koca <110906681+kocaemre@users.noreply.github.com>
@kocaemre
kocaemre force-pushed the fix/informational-message-meta branch from b46b263 to 6dd450e Compare September 1, 2026 02:09
@kocaemre

kocaemre commented Sep 1, 2026

Copy link
Copy Markdown
Author

Rebased this branch onto current main (7c66108, zod import fix) and re-verified the rebased head 6dd450e.

Verification:

  • npm test -- --run src/tests/acp-agent.test.ts -t informational — 1 passed, 461 skipped
  • npm run build — passed
  • npm run check — ESLint passed, Prettier check passed
  • IS_SANDBOX=1 npm run test:run — 1045 passed, 27 skipped
  • git diff --check upstream/main..HEAD — clean

gh pr checks still reports no checks on main, so there is no CI failure to act on after the rebase.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

informational messages (hook notices) are emitted as unmarked agent_message_chunk — indistinguishable from model output; attach _meta

1 participant