Repository navigation
Add the ACP part and tool fields to ai-chat-message (#4292 C6) - #4304
Merged
Merged
Conversation
…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]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-4292-c6-message-part-fields
branch
from
November 19, 2026 08:13
ca77808 to
269b0ad
Compare
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,
systemprotection, in the closedai-chat-messagebucket; a native message carries none):part_kind: enumtext,thought,tool_call,plan(assistant messages only)tool_call_id,tool_title: text (tool_call parts only)tool_kind: enumread edit delete move search execute think fetch switch_mode othertool_status: enumpending in_progress completed failed cancelled(cancelledis client-set)Rules (behavior):
part_kindonly on an assistant message;tool_*only withpart_kind = tool_call. No plan field: plan updates are markdown incontent. No pending-permission field (in memory only). Stop reasons other than end_turn and permission answers aresystemmessages (no schema change).Includes: schema, wire struct
AiChatMessageNodefields + 3 new enums, promoted-field list, regenerated TypeScript, frontend converter, shape record with onerefusechange-log entry (an older database's message schema lacks the fields, same as the tool base'sapproved_binding), tests.Docs sheet PR (merge just before this): https://github.com/NodeSpaceAI/nodespace-docs/pull/164
Tests:
bun run test:changedgreen (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 assertingpropertiesis empty on the wire).Part of #4292 (does not close it).
🤖 Generated with Claude Code