Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Stabilize draft thread routing and throttle snapshot refreshes in ChatView#33

Merged
rexlManu merged 1 commit intomainfrom
t3code/fix-thread-navigation-and-ui-lag
Mar 9, 2026
Merged

Stabilize draft thread routing and throttle snapshot refreshes in ChatView#33
rexlManu merged 1 commit intomainfrom
t3code/fix-thread-navigation-and-ui-lag

Conversation

@rexlManu
Copy link
Copy Markdown
Owner

@rexlManu rexlManu commented Mar 9, 2026

Summary

  • Keep draft thread navigation stable after first send until server-backed thread data hydrates.
  • Add orchestration sync logic to coalesce bursts of low-priority domain events into bounded snapshot refreshes, reducing UI lag.
  • Refactor ChatView into memoized timeline/composer panes and tighten thread/draft state shaping for more predictable rendering.
  • Update thread status indicator usage and related store/type plumbing to align with new orchestration behavior.
  • Expand browser/store/orchestration tests to cover draft promotion routing and snapshot-refresh throttling scenarios.
  • Switch CI runner to blacksmith-4vcpu-ubuntu-2404 and remove outdated README caution text.

Testing

  • Added/updated tests for draft-thread route stability during hydration in apps/web/src/components/ChatView.browser.tsx.
  • Added/updated tests for burst domain-event snapshot coalescing in apps/web/src/components/ChatView.browser.tsx.
  • Added/updated unit coverage in apps/web/src/orchestrationSync.test.ts and apps/web/src/store.test.ts.
  • bun lint: Not run
  • bun typecheck: Not run

- Keep draft thread URL stable until server hydration after first send
- Coalesce bursty low-priority orchestration events into a single snapshot fetch
- Refactor ChatView into timeline/composer panes and align thread status handling
@rexlManu rexlManu merged commit 4f07014 into main Mar 9, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant