Skip to content

Add the ACP part and tool fields to ai-chat-message (#4292 C6) - #4304

Merged
mstomar125 merged 2 commits into
mainfrom
issue-4292-c6-message-part-fields
Nov 19, 2026
Merged

mstomar125 merged 2 commits into
mainfrom
issue-4292-c6-message-part-fields

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Core item C6 of #4292: the part and tool fields on the shared ai-chat-message, for ACP chats (one message per ACP part). Kind: field additions to an existing flat core type (no new type). Nothing launches or writes these yet; the session side is separate.

Fields (all optional, system protection, in the closed ai-chat-message bucket; a native message carries none):

  • part_kind: enum text, thought, tool_call, plan (assistant messages only)
  • tool_call_id, tool_title: text (tool_call parts only)
  • tool_kind: enum read edit delete move search execute think fetch switch_mode other
  • tool_status: enum pending in_progress completed failed cancelled (cancelled is client-set)

Rules (behavior): part_kind only on an assistant message; tool_* only with part_kind = tool_call. No plan field: plan updates are markdown in content. No pending-permission field (in memory only). Stop reasons other than end_turn and permission answers are system messages (no schema change).

Includes: schema, wire struct AiChatMessageNode fields + 3 new enums, promoted-field list, regenerated TypeScript, frontend converter, shape record with one refuse change-log entry (an older database's message schema lacks the fields, same as the tool base's approved_binding), tests.

Docs sheet PR (merge just before this): https://github.com/NodeSpaceAI/nodespace-docs/pull/164

Tests: bun run test:changed green (frontend, scripts, browser, types:check, shape:check, node-types:check against the docs branch, rust nextest). Mutation checks: 7 Rust mutants and 1 frontend mutant, all killed (one survived first, the promoted-field list; fixed by asserting properties is empty on the wire).

Part of #4292 (does not close it).

🤖 Generated with Claude Code

mstomar125 and others added 2 commits November 19, 2026 09:13
…call_id, tool_title, tool_kind, tool_status)

One message per part of an ACP turn: optional fields on the shared message,
closed enums for part kind, tool kind and tool status, behavior rules tying
part_kind to assistant messages and tool fields to tool_call parts, wire
struct, generated TypeScript, frontend converter, shape record and change log.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.

1 participant