-
Notifications
You must be signed in to change notification settings - Fork 1
Make session time arbitrary, agent game ending monologue #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements a configurable game time limit with automatic agent announcements when time expires, and adds session resumption with automatic reconnection for the Gemini voice agent.
- Adds timeout mechanism to automatically announce game time expiration and guide the agent to end the game
- Implements session resumption and auto-reconnection logic for Gemini sessions to handle connection interruptions
- Updates the
endGamefunction description to clarify when it should be called by the agent
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
deep-sea-stories/packages/backend/src/game/session.ts |
Adds announceTimeExpired() method to mute the agent and notify it when game time limit is reached |
deep-sea-stories/packages/backend/src/game/room.ts |
Implements game timeout using setTimeout and cleans up timeout on game stop |
deep-sea-stories/packages/backend/src/agent/session.ts |
Adds announceTimeExpired() method to the VoiceAgentSession interface |
deep-sea-stories/packages/backend/src/agent/gemini/session.ts |
Implements timeout announcement, session resumption via handle, auto-reconnection on unexpected closure, and improved state management with opening/reconnecting flags |
deep-sea-stories/packages/backend/src/agent/elevenlabs/session.ts |
Adds stub implementation of announceTimeExpired() for ElevenLabs session (handled by platform) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
AHGIJMKLKKZNPJKQR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

No description provided.