@@ -2601,6 +2601,7 @@ describe("ClaudeAdapterV2 MCP credential channel", () => {
26012601 ...ClaudeAdapterV2.makeClaudeQueryOptions({
26022602 modelSelection: CLAUDE_TEST_MODEL_SELECTION,
26032603 nativeThreadId: "native-thread-claude-mcp-channel",
2604+ title: "Existing T3 title",
26042605 resume: false,
26052606 cwd: null,
26062607 environment: { PATH: "/usr/bin" },
@@ -2655,7 +2656,12 @@ describe("ClaudeAdapterV2 MCP credential channel", () => {
26552656 subtype: "mcp_set_servers",
26562657 servers: { "t3-code": t3McpServer },
26572658 });
2659+ assert.deepInclude(
2660+ cli.controlRequests.find((request) => Reflect.get(request, "subtype") === "initialize"),
2661+ { title: "Existing T3 title" },
2662+ );
26582663 const spawned = JSON.stringify(cli.spawns);
2664+ assert.notInclude(spawned, "--title");
26592665 assert.notInclude(spawned, "--mcp-config");
26602666 assert.notInclude(spawned, "dummy-mcp-credential");
26612667 }),
@@ -2745,6 +2751,7 @@ describe("ClaudeAdapterV2 native session identity", () => {
27452751 assert.equal(openedQueries.length, 1);
27462752 assert.equal(openedQueries[0]?.options.resume, "native-session-identity");
27472753 assert.equal(openedQueries[0]?.options.sessionId, undefined);
2754+ assert.equal(openedQueries[0]?.options.title, "Claude attachment test");
27482755 }),
27492756 );
27502757
@@ -2753,6 +2760,7 @@ describe("ClaudeAdapterV2 native session identity", () => {
27532760 const openedQueries = yield* openTurnWithOrdinal(4, false);
27542761 assert.equal(openedQueries[0]?.options.sessionId, "native-session-identity");
27552762 assert.equal(openedQueries[0]?.options.resume, undefined);
2763+ assert.equal(openedQueries[0]?.options.title, "Claude attachment test");
27562764 }),
27572765 );
27582766});
0 commit comments