Skip to content

fix(runtime): persist final assistant log snapshots - #464

Merged
Yevanchen merged 1 commit into
mainfrom
fix/runtime-final-assistant-snapshot
Jul 30, 2026
Merged

fix(runtime): persist final assistant log snapshots#464
Yevanchen merged 1 commit into
mainfrom
fix/runtime-final-assistant-snapshot

Conversation

@Yevanchen

Copy link
Copy Markdown
Collaborator

Summary

  • persist the canonical final assistant snapshot with run completion
  • reuse the existing stream fold to collapse fractured deltas into one log entry
  • avoid duplicating snapshots already supplied by a runtime

Root cause

OpenAI runtime completed with a canonical session message but no authoritative message.added event, so the Logs view could only render fractured deltas.

Verification

  • just test-file apps/api/tests/runtime-final-output-ingestion.test.ts
  • just tc-package @mosoo/api
  • just check reached 1080 passing tests; one unrelated macOS /var versus /private/var path assertion failed in apps/driver/tests/acp-file-system.test.ts

No migration, historical rewrite, or deployment. Incident record: #460.

@Yevanchen
Yevanchen force-pushed the fix/runtime-final-assistant-snapshot branch from 51bcb96 to 800812a Compare July 30, 2026 08:52
@Yevanchen
Yevanchen merged commit 94030c2 into main Jul 30, 2026
9 checks passed
@Yevanchen
Yevanchen deleted the fix/runtime-final-assistant-snapshot branch July 30, 2026 08:55
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