Skip to content

Add explicit OBS output commands - #30327

Closed
chris-cald wants to merge 1 commit into
raycast:mainfrom
chris-cald:agent/obs-control-explicit-output-commands
Closed

chris-cald wants to merge 1 commit into
raycast:mainfrom
chris-cald:agent/obs-control-explicit-output-commands

Conversation

@chris-cald

@chris-cald chris-cald commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds explicit Raycast commands for OBS output controls, alongside the existing toggle commands:

  • Start/Stop Recording
  • Pause/Resume Recording
  • Start/Stop Stream
  • Start/Stop Virtual Camera
  • Start/Stop Replay Buffer

The new commands check the current OBS output state before sending start/stop/pause/resume requests, so they are safe to bind to automation workflows and keyboard shortcuts where an idempotent command is preferable to a toggle.

Set Scene now also accepts an optional sceneName argument. When supplied, the command switches directly to the matching scene. If no scene name is supplied and OBS only has one scene, it selects that scene automatically. Otherwise, the existing scene picker opens as before.

This also updates OBS connection handling to launch OBS Studio automatically when it is installed but not already reachable over WebSocket, then retries the connection once.

Validation

  • npm run lint
  • npm run build

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: obs-control Issues related to the obs-control extension platform: macOS labels Aug 18, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for your first contribution! 🎉

🔔 @Yukaii @j3lte @RealCyGuy you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="agent/obs-control-explicit-output-commands"
FORK_URL="https://github.com/chris-cald/extensions.git"
EXTENSION_NAME="obs-control"
REPO_NAME="extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

@greptile-apps

greptile-apps Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds idempotent OBS recording, streaming, virtual-camera, and replay-buffer commands, plus argument-driven scene selection and automatic OBS launching.

  • Adds explicit start, stop, pause, and resume command entry points.
  • Centralizes output state checks and command execution.
  • Launches OBS after an initial WebSocket connection failure and retries the connection.
  • Supports selecting a scene through an optional command argument.

Confidence Score: 4/5

The PR does not yet appear safe to merge because OBS can launch successfully while the requested command still fails when its WebSocket server takes more than three seconds to become ready.

The connection helper performs only one retry after a fixed three-second delay, and callers surface that retry's rejection without polling or making a later attempt, so slower OBS startups still leave the previously reported command failure reachable.

Files Needing Attention: extensions/obs-control/src/lib/obs.ts

Important Files Changed

Filename Overview
extensions/obs-control/src/lib/obs.ts Adds automatic OBS launching and a fixed-delay WebSocket reconnection path; the previously reported startup-readiness failure remains.
extensions/obs-control/src/lib/output-control.ts Introduces shared state-aware handling for explicit output and recording-pause commands.
extensions/obs-control/src/set-scene.tsx Adds optional argument-based scene resolution and automatic scene selection while preserving the interactive list.
extensions/obs-control/package.json Registers the new no-view output commands and the optional Set Scene argument.

Reviews (2): Last reviewed commit: "Add explicit OBS output commands" | Re-trigger Greptile

Comment thread extensions/obs-control/src/lib/obs.ts Resolved
Comment thread extensions/obs-control/CHANGELOG.md Resolved
@chris-cald
chris-cald force-pushed the agent/obs-control-explicit-output-commands branch from 2ebb493 to a6727f9 Compare August 18, 2026 22:38
@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Sep 12, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

@chris-cald

Copy link
Copy Markdown
Contributor Author

Continued in #31371. The branch has been rebased onto current main, the fixed three-second OBS startup delay has been replaced with bounded WebSocket readiness polling, and the replacement PR is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: obs-control Issues related to the obs-control extension platform: macOS status: stalled Stalled due inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants