Skip to content

Deafen agent by default while introducing#55

Merged
czerwiukk merged 7 commits intomainfrom
test-better-start
Feb 12, 2026
Merged

Deafen agent by default while introducing#55
czerwiukk merged 7 commits intomainfrom
test-better-start

Conversation

@czerwiukk
Copy link
Member

No description provided.

@czerwiukk czerwiukk self-assigned this Feb 12, 2026
Copilot AI review requested due to automatic review settings February 12, 2026 09:28
Copy link
Contributor

Copilot AI left a 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 mutes (deafens) the AI agent by default during its initial introduction and unmutes it once the agent is ready for player input.

Changes:

  • Add source-aware muting to distinguish system vs manual mute, and initialize system mute on room start.
  • Introduce an onReadyForPlayerInput callback from the agent session to the game room/session to release the system mute.
  • Update some story prompt text and widen the PeerTile max width.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
deep-sea-stories/packages/web/src/components/PeerTile.tsx Widens the peer tile max width for layout changes.
deep-sea-stories/packages/backend/src/prompts/stories.json Adjusts story prompt wording/content.
deep-sea-stories/packages/backend/src/game/session.ts Adds manual/system mute tracking and applies combined mute state.
deep-sea-stories/packages/backend/src/game/room.ts Mutes agent on start and unmutes when agent signals readiness.
deep-sea-stories/packages/backend/src/agent/gemini/session.ts Fires onReadyForPlayerInput after the initial greeting completes (or immediately for non-initial connects).
deep-sea-stories/packages/backend/src/agent/api.ts Adds optional onReadyForPlayerInput callback to agent config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@czerwiukk czerwiukk merged commit 52fcb22 into main Feb 12, 2026
1 check passed
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

Comments