Skip to content

Fix file changes refresh after session ends#32

Merged
zzj3720 merged 1 commit into
mainfrom
fix-file-changes-auto-refresh
May 18, 2026
Merged

Fix file changes refresh after session ends#32
zzj3720 merged 1 commit into
mainfrom
fix-file-changes-auto-refresh

Conversation

@zzj3720
Copy link
Copy Markdown
Contributor

@zzj3720 zzj3720 commented May 18, 2026

Summary

  • Treat terminal assistant phases (completed, failed, cancelled) as non-streaming in the embedded chat bridge
  • Allows the existing session-end workspaceState refresh / idle fallback polling to update File Changes without switching conversations
  • Adds coverage for terminal local assistant phases

Tests

  • cd web && yarn test tests/embedded/use-swift-bridge.test.ts
  • cd web && yarn typecheck
  • cd web && yarn lint
  • Remote mini-machine web embedded build passed during setup; full macOS app build was blocked by missing generated sandbox-vm runtime artifacts (SandboxVM.xcframework initially, then kernel.bin / rootfs) on the fresh machine.

Manual validation

  • Verified manually by inspecting the session-end refresh path: Swift already calls refreshWorkspaceState() on session finish, and this fix makes the web side leave streaming state on terminal phases so the existing idle polling path can pull refreshed File Changes.
  • Full GUI smoke is blocked on the fresh mini-machine until sandbox-vm artifacts are generated.

Co-authored-by: 3720 <zuozijian1994@gmail.com>
@zzj3720 zzj3720 marked this pull request as ready for review May 18, 2026 22:08
@zzj3720 zzj3720 merged commit 591a1c3 into main May 18, 2026
3 checks passed
@zzj3720 zzj3720 deleted the fix-file-changes-auto-refresh branch May 18, 2026 22:11
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