Skip to content

Fix channel realtime refresh for agent replies#16

Merged
TianyuFan0504 merged 1 commit into
HKUDS:mainfrom
xing139565:fix/channel-realtime-runtime-updates
Jul 13, 2026
Merged

Fix channel realtime refresh for agent replies#16
TianyuFan0504 merged 1 commit into
HKUDS:mainfrom
xing139565:fix/channel-realtime-runtime-updates

Conversation

@xing139565

@xing139565 xing139565 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes an issue where agent replies could remain visually stuck in the thinking state until the page was manually refreshed.

The realtime channel invalidation was using the same refresh guard as polling. When the message composer was focused, realtime refreshes were skipped, so the backend had already written the agent reply but the UI did not update.

Changes

  • Allow realtime channel refreshes to run while the composer is focused
  • Keep polling refresh guarded to avoid interrupting active typing
  • Add test coverage for realtime refresh while the composer is focused
  • Add @agent-space/sandbox to Next/Turbopack transpilation config

Test

npm --prefix apps/web run typecheck:test

@TianyuFan0504
TianyuFan0504 merged commit f050168 into HKUDS:main Jul 13, 2026
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.

2 participants