Skip to content

feat(app): play sound alert on question prompts - #52423

Closed
Harpocrator wants to merge 2 commits into
anomalyco:devfrom
Harpocrator:dev
Closed

Harpocrator wants to merge 2 commits into
anomalyco:devfrom
Harpocrator:dev

Conversation

@Harpocrator

Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When the agent pauses for user confirmation (question.asked), no audible alert is played in the app, making it easy to miss that the agent is waiting.

This PR makes two changes:

  1. Triggers the sound alert on question.asked in packages/app/src/pages/layout.tsx, reusing the existing permission audio settings.
  2. Sets attention.enabled to true by default in packages/tui/src/config/index.tsx so interactive prompts are audible out of the box in the TUI without needing manual configuration in tui.json.

How did you verify your code works?

Updated unit tests in packages/tui/test/config.test.tsx and packages/opencode/test/config/tui.test.ts to reflect the updated default configuration.

Screenshots / recordings

N/A (audio/behavioral change)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title Feat: Play sound alert on user permission and question prompts doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@Harpocrator Harpocrator changed the title Feat: Play sound alert on user permission and question prompts feat(app): play sound alert on question prompts Oct 1, 2026
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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