feat(flow-chat): expose retry attempt diagnostics - #1709
Merged
Conversation
- Preserve original provider/transport errors, raw tool arguments, and JSON parser errors for retried attempts - Project diagnostics through events, session persistence, and history restoration - Add on-demand, copyable diagnostic details for collapsed historical attempts - Cover diagnostic merging, ordering, restoration, and event serialization
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
Type and Areas
Type: Feature
Areas: Rust core, agent stream, event contracts, session persistence, web UI, i18n
Motivation / Impact
Users can inspect the original provider error and malformed tool-call payload when an automatic retry occurs, without changing the default retry behavior. Diagnostics remain collapsed until explicitly opened.
Verification
pnpm run fmt:rspnpm --dir src/web-ui run test:run src/flow_chat/store/FlowChatStore.test.ts(57 tests)pnpm run type-check:webcargo test -p bitfun-events(16 tests)git diff HEAD~1..HEAD --checkcargo check -p bitfun-coreexceeded the local 60-second command limit twice while checkingbitfun-core; no compiler errors were emitted.Reviewer Notes
ModelRoundAttemptSupersededis a high-priority realtime event; receipt updates UI state but does not force an immediate persistence write.Checklist