Skip to content

fix: disconnect standup before navigating home#6040

Merged
idoshamun merged 1 commit into
mainfrom
codex/standup-ended-back-home-disconnect
May 12, 2026
Merged

fix: disconnect standup before navigating home#6040
idoshamun merged 1 commit into
mainfrom
codex/standup-ended-back-home-disconnect

Conversation

@idoshamun
Copy link
Copy Markdown
Member

@idoshamun idoshamun commented May 12, 2026

Summary

This fixes the standup end-state "Back home" path so leaving an ended room performs an intentional disconnect before routing away.

Root cause

The ended-state CTA navigated away without explicitly tearing down the live-room connection first. That left a late websocket close or error event free to surface during navigation, which could produce a stray connection-related UI artifact after clicking back home.

Changes

  • add a shared disconnect() action to the live-room context
  • treat intentional standup disconnects as non-user-facing close or error events
  • route the ended-state and leave flows through the intentional disconnect path
  • add a regression test for the ended-state "Back home" CTA

Impact

Closing a standup and clicking back home should now return to the home page without the weird follow-up toast or transient connection error state.

Validation

  • node ./scripts/typecheck-strict-changed.js
  • pnpm --filter @dailydotdev/shared exec eslint src/contexts/LiveRoomContext.tsx src/components/liveRooms/LiveRoom.tsx src/components/liveRooms/LiveRoom.spec.tsx src/components/liveRooms/LiveRoomControls.spec.tsx --max-warnings 0
  • NODE_ENV=test pnpm --filter @dailydotdev/shared exec jest src/components/liveRooms/LiveRoom.spec.tsx src/components/liveRooms/LiveRoomControls.spec.tsx src/contexts/LiveRoomContext.spec.tsx --runInBand

Preview domain

https://codex-standup-ended-back-home-di.preview.app.daily.dev

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview May 12, 2026 1:59pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored May 12, 2026 1:59pm

Request Review

@idoshamun idoshamun marked this pull request as ready for review May 12, 2026 13:59
@idoshamun idoshamun merged commit d4390d3 into main May 12, 2026
14 checks passed
@idoshamun idoshamun deleted the codex/standup-ended-back-home-disconnect branch May 12, 2026 13:59
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