-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
When the AI uses the question tool to present choices and waits for user input, no notification sound is played. Users may not notice that input is required, especially when multitasking.
Current Behavior
- ✅ Notification sound plays when the main session becomes idle (task completed)
- ✅
session-notificationhook correctly filters out subagent sessions - ❌ No distinct notification when
questiontool is awaiting user selection
Expected Behavior
Play a notification sound (or configurable alert) when the question tool is invoked and waiting for user input. This helps users know immediately when their attention is required.
Technical Context
Looking at the OpenCode SDK's Event types in types.gen.d.ts, there's no dedicated event for "question tool awaiting input". The current session.idle event is used for general idle state detection.
Possible Implementation Approaches
- Hook into
tool.execute.before/tool.execute.after: Detect when thequestiontool is called and trigger a notification - New event type: Request OpenCode to emit a specific event like
tool.question.awaitingwhen user input is needed - Leverage existing
session.idle: The current implementation should already work ifsession.idleis emitted when waiting for question input - may need investigation if it's not working
Configuration Suggestion
{
"notification": {
"onQuestionAwait": true, // new option
"questionSound": "/path/to/sound.wav" // optional custom sound
}
}Environment
- oh-my-opencode version: 3.1.11
- Platform: macOS (darwin)
Related
This is separate from the existing session-notification and background-notification hooks which handle task completion notifications.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request