Skip to content

fix(desktop): hydrate completed commentary messages#451

Open
huntharo wants to merge 1 commit into
mainfrom
fix/completed-commentary-hydration
Open

fix(desktop): hydrate completed commentary messages#451
huntharo wants to merge 1 commit into
mainfrom
fix/completed-commentary-hydration

Conversation

@huntharo
Copy link
Copy Markdown
Contributor

Summary

I fixed a live transcript bug where a partial assistant commentary delta could remain visible after the app received the full completed agentMessage item.

The renderer now treats completed commentary agentMessage items as authoritative, replaces the matching pending assistant message, and preserves the existing sequence/turn metadata so the transcript renders the full message instead of a suffix like is still running too....

Verification

I verified this with:

  • pnpm vitest run --config vitest.workspace.ts apps/desktop/src/renderer/src/lib/__tests__/useThreadSessionState.test.tsx
  • pnpm --filter @pwragent/desktop typecheck
  • pnpm --filter @pwragent/desktop test:e2e e2e/release-transcript-agent-message-completion.spec.ts

The Electron replay reproduces the observed bad partial message first, then verifies the completed full agentMessage replaces it in the transcript.

@huntharo huntharo force-pushed the fix/completed-commentary-hydration branch from a314d43 to 760ce53 Compare May 19, 2026 03:50
@huntharo huntharo force-pushed the fix/completed-commentary-hydration branch from 760ce53 to 010d104 Compare May 19, 2026 21:05
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