multica/packages
Jiayuan Zhang fa2616c390 fix(session): drop duplicate assistant messages in transcript repair
When a session is aborted mid-tool-execution, the assistant message can
be persisted twice (once by message_end, once by the abort handler).
The repair logic failed to handle this: it generated a synthetic tool
result for the first copy but deduplicated the result for the second,
leaving an orphaned tool call that caused "tool_call_id is not found"
errors on all subsequent API calls.

Detect and remove duplicate assistant messages whose tool call IDs
have all already been paired with results from an earlier copy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 21:31:30 +08:00
..
core fix(session): drop duplicate assistant messages in transcript repair 2026-02-15 21:31:30 +08:00
hooks feat(utils): unify encrypted Device ID across all platforms 2026-02-13 17:34:23 +08:00
sdk fix(agent): report accurate compaction metrics and add run-log observability 2026-02-15 15:42:04 +08:00
store feat(core): add message source tracking and persistence 2026-02-12 18:45:15 +08:00
types feat(types): add AuthUser type for auth integration 2026-02-13 12:24:43 +08:00
ui fix(ui): remove Cmd+B sidebar toggle shortcut 2026-02-15 14:18:49 +08:00
utils feat(utils): add SMC_DATA_DIR env var to override root data directory 2026-02-15 00:39:13 +08:00