Repository navigation
Thread cost in the header, per-event notification switches, and optional cloud voice input - #1732
Conversation
…#1725) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rt (#1725) Approval needed, turn finished, turn failed and automation finished default on, so stored settings notify exactly as before. CI failed rides PR watch's new-failing-check detection and is off by default. Long-running command is skipped: the gate only sees thread status, not tool timing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…back to local (#1725) Local stays the default and its recording path is unchanged. With a cloud provider and key set, the PCM the composer already streams is buffered and uploaded as one WAV on stop. On a cloud error the same audio replays through the local model and the transcript carries a visible note. Keys are sealed via secretGroups and reach the renderer only as hasOpenaiKey / hasElevenlabsKey. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ead-cost-per-event-notifi-988671 # Conflicts: # electron/mcp.js # electron/secrets.js # electron/store-normalize.js # electron/store-settings-methods.js # electron/test/auto-settle-settings.test.js # electron/test/budget-spend.test.js
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 799c9945de
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } catch (err) { | ||
| if (cloudActive !== session) return; // cancelled meanwhile | ||
| const why = err && err.message ? String(err.message) : "Cloud transcription failed."; | ||
| cloudActive = null; |
There was a problem hiding this comment.
Preserve cancellation identity during local speech fallback
When a cloud request fails and local fallback begins, clearing cloudActive loses the session ID held by useComposerSpeech; openSession() then generates a different ID. Cancelling dictation during sidecar startup or local transcription therefore makes cancel() reject with Unknown speech session, while replay continues and subsequent recording attempts remain blocked until it finishes. This is reproducible by pausing sidecar readiness and cancelling with the original cloud session ID. Preserve the caller-visible session identity and cancellation state across the fallback awaits.
Useful? React with 👍 / 👎.
| if (windowFocused || !thread || thread.muted) return null; | ||
| if (settings.notifications === false) return null; | ||
| if (!notifyEventEnabled(settings.notifyEvents, "ciFailed")) return null; |
There was a problem hiding this comment.
Apply the snooze gate to CI failure notifications
With CI-failure notifications enabled and the app in the background, a watched thread with an active snooze still produces a desktop alert because this helper checks mute but never calls isEffectivelySnoozed. Neither observePr() nor notifyChecksFailed() applies that gate, whereas the existing thread-transition notification path in main.js explicitly does. Apply the same effective-snooze predicate here so the new event respects the user's notification snooze.
Useful? React with 👍 / 👎.
Closes #1725.
What changes for users
$1.43badge next to the context ring, with a tooltip split per model. It reuses the existing cost data and formatter and is hidden when cost is unknown or zero.secretGroups()(Encrypt stored provider secrets by default (safeStorage is opt-in today) #1715) and reach the renderer only ashasOpenaiKey/hasElevenlabsKey.Skipped: the "long-running command (>30s)" notification. The runner can't detect it cheaply, so it was left out rather than faked.
Review notes
799c9945). Six conflicts with Start and continue threads from Telegram, with approvals as chat buttons #1728 (Telegram), all two additive blocks:secrets.jsgroups,mcp.jsredactSettings, settings normalize / methods, and two full-settings snapshot tests now carryingtelegram,notifyEventsandspeech.Testing (on the combined tree)
vite build: passnotify.test.js: per-event gate, defaults unchanged, CI failedspeech.test.js: provider selection with mocked fetch, fallback to local, key sealed and redactedthreadHeader.test.tsx: cost badge🤖 Generated with Claude Code