Skip to content

Voice bar only in the speaking session; dimmed line elsewhere (0.34.0, live 0.4.0) - #45

Merged
DowLucas merged 1 commit into
mainfrom
feat/voice-bar-per-session
Oct 8, 2026
Merged

DowLucas merged 1 commit into
mainfrom
feat/voice-bar-per-session

Conversation

@DowLucas

@DowLucas DowLucas commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Why

The voice progress bar is driven by one ~/.cache/devscope/voice/progress.json, which every Claude Code window's devscope-live mod reads. With several sessions open, all of them showed the bar (and a Stop button), whichever session was talking.

What changed

Plugin (0.34.0)

  • progress.json gains sessionId, the Claude Code session the speech is about. For replies, project is now the session's spoken name ("api-service, rate limiter fix") rather than just the folder.
  • Replies take the id from their job file. Explanations (/devscope:voice explain) are started by a command that isn't told the session, so the prompt hook records sessions/<claude-pid> → session id and cli.sh say looks it up.
  • That record is written only when voice is set up or Claude Code passes CLAUDE_PID, so plugin users who never touch voice pay no process-tree lookups. Records idle two days are pruned.

devscope-live (0.4.0)

  • parseProgress reads sessionId ('' when absent or malformed).
  • isOwnSpeech: the full bar and Stop only where it matches $.session.id().
  • Other windows show one dimmed line: 🔊 api-service, rate limiter fix · reading the summary (otherSpeechLabel).
  • No sessionId (devscope older than 0.34.0) → bar everywhere, as before, so mixed versions keep working.

Both manifests bumped (devscope 0.34.0, devscope-live 0.4.0 in its plugin.json and marketplace.json). CHANGELOGs and the progress.json contract in CLAUDE.md updated.

Testing

  • tests/voice/run.sh: 170 passed, 0 failed. 4 new: a reply's progress names its session; the prompt hook records the window's session; an explanation's progress names the session that asked; nothing is recorded without voice set up.
  • claude plugin test mods/devscope-live: 58 pass. New: the bar in the speaking session vs the dimmed line (no Stop, no bar) in another; sessionId parsing and matching; the dimmed label.
  • claude plugin validate mods/devscope-live passes; other suites and hooks consistency pass.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Voice activity is now associated with the Claude Code session it belongs to. The voice bar and Stop button appear in that session’s window; other windows show a dimmed status line.
    • Speech without session information remains visible in all windows for compatibility with older versions.

… live 0.4.0)

- progress.json carries sessionId (Claude Code's id) and, for replies, the
  session's spoken name.
- Explanations look the session up from sessions/<claude-pid>, recorded by the
  prompt hook (only when voice is set up or CLAUDE_PID makes it free).
- devscope-live draws the bar and Stop only where $.session.id() matches; other
  windows show one dimmed line naming the session. No sessionId (older plugin):
  the bar shows everywhere, as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c764c809-f2e5-4085-9a87-54894aed038b
📥 Commits

Reviewing files that changed from the base of the PR and between 2a43fb6 and 2f5f640.

📒 Files selected for processing (15)
  • .claude-plugin/marketplace.json
  • .claude-plugin/plugin.json
  • CHANGELOG.md
  • CLAUDE.md
  • mods/devscope-live/.claude-plugin/plugin.json
  • mods/devscope-live/CHANGELOG.md
  • mods/devscope-live/hooks/register.tsx
  • mods/devscope-live/hooks/voiceBar.ts
  • mods/devscope-live/tests/hooks.test.tsx
  • mods/devscope-live/tests/logic.test.ts
  • mods/devscope-live/types/index.d.ts
  • scripts/voice/cli.sh
  • scripts/voice/lib.sh
  • scripts/voice/speak.sh
  • tests/voice/run.sh
 __________________________________
< Bazinga! You missed a semicolon. >
 ----------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DowLucas
DowLucas merged commit 73b278f into main Oct 8, 2026
11 of 12 checks passed
@DowLucas
DowLucas deleted the feat/voice-bar-per-session branch October 8, 2026 13:12
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.

1 participant