Repository navigation
fix(flow): reconcile Agent turns and session caches - #47
Closed
google-labs-stitch[bot] wants to merge 1 commit into
Closed
google-labs-stitch[bot] wants to merge 1 commit into
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Merge local partial output into disconnected in-progress turns - Hydrate stored turns before send when local turns hold errors - Purge failed drafts, deleted session queries, and selected IDs - Wait for project details and user profile before send checks - Reconcile media statuses and elicitation timeouts with tiles - Replay question answers across detached streams and reconnects
Contributor
|
|
byteland-app
deleted the
stitch/reconcile-agent-turns-and-caches-jm1-1160ac54-dbb9-4348-8b63-aca72bcc1d30
branch
November 25, 2026 07:46
Contributor
Author
|
Addressed all review points in commit
|
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 change reconciles
flow_agentbrowser state, caches, tile media, and question streams in TypeScript without extra Chrome DevTools Protocol round-trips, newAGENT_EXPORTSsymbols, or changes tosrc/agent.rs:local.Vh[i]intosavedwhensaved.getState() === STORED_TURN_IN_PROGRESS, reportstatus: "in_progress"withconnected: false, and omit local disconnect errors such asSTREAM_ERROR_SERVER.loadStoredTurnswhenlocal.Vhholds unpersisted failed turns or stale client errors, and compute new turn numbers assaved.length + 1.delete_sessionon idle unsaved drafts, evictCREATION_AGENT_SESSIONandCREATION_AGENT_SESSIONSentries fromQueryClient, and resetqg()when it matches a deleted or purged session.["PROJECT_DETAILS", projectId]and["USER_PROFILE"]queries before readingcanSend()so cold Enterprise loads report accurate send readiness.status,error_code, anderrorfrom legacy tool result rows, reconcile streaming and legacy turn media against live project tiles (resolveRequestedAsset,isReadyVariant, andlegacyMedia), addview_agent_memorytoReplyBlock, and suppress false elicitation timeouts whenview_agent_memoryor non-failed media exists.pending_actions, wait on detachedWvcstreams inrespond, verify question card acceptance (card.Qj !== undefined), and replay accepted answers acrossDwc/_.Cwcreconnects andresume.Verification
boq_labs-ai-sandbox-frontend_20261120.00_p0layout (79/79 assertions passed).cargo fmt --all -- --check,cargo xtask check,cargo xtask ci,RUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --no-deps --document-private-items,RUSTFLAGS="-D warnings" cargo build --release --locked --bin flow-mcp, andcargo xtask collect-licenses.Automated PR initiated by user @byteland-app via Stitch Loop.