@devries-cameron20 / t3code Mirror · read-only / commits / 50bc18b208
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 03:45 UTC

fix(preview): declare RPC authorization scopes

Co-authored-by: codex <codex@users.noreply.github.com>

Julius Marminge committed Jun 11, 2026 at 16:10 UTC 50bc18b208db39ce1a6fb7200451f999fe457ce2
1 file changed +8
apps/server/src/ws.ts
+8
@@ -183,6 +183,14 @@ const RPC_REQUIRED_SCOPE = new Map<string, AuthEnvironmentScope>([
183 [WS_METHODS.terminalClose, AuthTerminalOperateScope],
184 [WS_METHODS.subscribeTerminalEvents, AuthTerminalOperateScope],
185 [WS_METHODS.subscribeTerminalMetadata, AuthTerminalOperateScope],
186 + [WS_METHODS.previewOpen, AuthOrchestrationOperateScope],
187 + [WS_METHODS.previewNavigate, AuthOrchestrationOperateScope],
188 + [WS_METHODS.previewRefresh, AuthOrchestrationOperateScope],
189 + [WS_METHODS.previewClose, AuthOrchestrationOperateScope],
190 + [WS_METHODS.previewList, AuthOrchestrationReadScope],
191 + [WS_METHODS.previewReportStatus, AuthOrchestrationOperateScope],
192 + [WS_METHODS.subscribePreviewEvents, AuthOrchestrationReadScope],
193 + [WS_METHODS.subscribeDiscoveredLocalServers, AuthOrchestrationReadScope],
194 [WS_METHODS.subscribeServerConfig, AuthOrchestrationReadScope],
195 [WS_METHODS.subscribeServerLifecycle, AuthOrchestrationReadScope],
196 [WS_METHODS.subscribeAuthAccess, AuthAccessReadScope],