Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(threads): keep older agents discoverable in Lineage #33498

Closedvoltcrash(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/33498/headopened View on GitHub

Showing 19 changed files with 5 additions and 0 deletions (loading 16).

x
0 of 19 viewed, 19 left
3 additions and 0 deletionsapps/server/src/auth/RpcAuthorization.test.tsModified
View file
@@ -40,6 +40,9 @@
describe("RPC authorization scopes", () => {
it("declares exactly one scope for every RPC in the server group", () => {
expect(new Set(Object.keys(RPC_REQUIRED_SCOPES))).toEqual(new Set(WsRpcGroup.requests.keys()));
+ expect(requiredScopeForRpcMethod(ORCHESTRATION_V2_WS_METHODS.listPreviousAgents)).toBe(
+ AuthOrchestrationReadScope,
+ );
});
​
it("keeps webhook delivery logs, which hold request bodies, behind operate scope", () => {
1 addition and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -56,6 +56,7 @@
[ORCHESTRATION_V2_WS_METHODS.getArchivedShellSnapshot]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.getThreadFamily]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.getThreadTitles]: AuthOrchestrationReadScope,
+ [ORCHESTRATION_V2_WS_METHODS.listPreviousAgents]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.getThreadLinkMetadata]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.getWorktreeThreadIds]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.getOlderSettledThreads]: AuthOrchestrationReadScope,
1 addition and 0 deletionsapps/server/src/observability/RpcInstrumentation.tsModified
View file
@@ -26,6 +26,7 @@
[ORCHESTRATION_V2_WS_METHODS.getArchivedShellSnapshot]: "orchestration",
[ORCHESTRATION_V2_WS_METHODS.getThreadFamily]: "orchestration",
[ORCHESTRATION_V2_WS_METHODS.getThreadTitles]: "orchestration",