chore(deps): bump @extrachill/chat ^0.10.1 -> ^0.11.0#8
Merged
Conversation
v0.11.0 lands the `actionId` field on CanonicalDiffData that DM's CanonicalDiffPreview::build() emits. Before this bump, the `resolvePendingAction` call in AgentChat.tsx was shipping action_id: '' because the chat package's parser only read `diffId` / `diff_id` (never `actionId`). With 0.11 installed, the parser populates both fields from the `actionId` payload and DiffCard's onAccept/onReject callbacks deliver the real id. In other words: this is the dep bump that actually makes #7 work end-to-end. Other 0.11 additions (preview nesting in parseCanonicalDiff, onToolCalls/sessionContext forwarding on <Chat>) are unused here but free. `npm run typecheck` and `npm run build` both pass.
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.
Summary
This is the dep bump that actually makes #7 work end-to-end.
Context
PR #7 renamed the
resolveDiff()helper toresolvePendingAction()and updated it to POST/datamachine/v1/actions/resolvewith{ action_id, decision }— the DM unified pending-action endpoint. But the chat package at^0.10.1only exposeddiffId/diff_idfromparseCanonicalDiff, neveractionId. So the DiffCard'sonAccept(id)/onReject(id)callbacks were delivering an empty string toresolvePendingAction, which the/actions/resolveendpoint then rejected with a validation error.The full fix required
@extrachill/chat@0.11.0, which landed:parseCanonicalDiffnow readsactionId/action_id(prioritized) with fallback todiffId/diff_id. Populates both fields on the returned shape so consumers reading either keep working.container.previewnesting, which is DM's envelope shape fromPendingActionHelper::stage().With 0.11 in place, DiffCard's accept/reject callbacks deliver the real action id and the round-trip works.
Other 0.11 additions
onToolCalls+sessionContextfrom<Chat>touseChat. Not used here, but free.Validation
npm install @extrachill/chat@^0.11.0— resolves to 0.11.0.npm run typecheck— clean.npm run build— clean.AI assistance