Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): empty MCP status filters no longer hide threads #25306

Mergedonly21mil(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/25306/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 58 additions and 1 deletion.

x
0 of 2 viewed, 2 left
53 additions and 0 deletionsapps/server/src/mcp/toolkits/core.test.tsModified
View file
@@ -955,3 +955,56 @@
+​
+it.effect(
+ "t3_thread_list settled:false with an empty statuses list lists the unsettled threads",
+ () => {
+ const unsettled = McpToolAccessTestkit.liveThreadShell(ThreadId.make("unsettled-thread"));
+ const settled = {
+ ...McpToolAccessTestkit.liveThreadShell(ThreadId.make("settled-thread")),
+ settledOverride: "settled",
+ } as const;
+ return Effect.gen(function* () {
+ const server = yield* McpServer.McpServer;
+ const result = yield* server
+ .callTool({
+ name: "t3_thread_list",
+ arguments: { projectId: unsettled.projectId, settled: false, statuses: [] },
+ })
+ .pipe(
+ Effect.provideService(
+ McpInvocationContext.McpInvocationContext,
+ clientScope("full-access"),
+ ),
+ Effect.provideService(McpSchema.McpServerClient, client),
+ );
+ expect(result.isError).toBe(false);
+ expect(result.structuredContent).toMatchObject({
+ threads: [{ threadId: unsettled.id, settled: false }],