Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): hook-linked skills appear in the picker after session start #19816

Closedcaitlon(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/19816/headopened View on GitHub

Showing 6 changed files with 105 additions and 3 deletions (loading 3).

x
0 of 6 viewed, 6 left
76 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -2437,6 +2437,7 @@
toolUseId: string,
) => Effect.Effect<boolean, ClaudeAdapterV2.ClaudeAgentSdkQueryRunnerError>;
readonly environment?: NodeJS.ProcessEnv;
+ readonly onSessionInit?: (cwd: string) => Effect.Effect<void>;
readonly subagentLaunchToolUseId?: string;
readonly nativeSessionId?: string;
readonly settings?: ClaudeSettings;
@@ -2490,6 +2491,7 @@
path: yield* Path.Path,
crypto: yield* Crypto.Crypto,
idAllocator,
+ ...(options?.onSessionInit === undefined ? {} : { onSessionInit: options.onSessionInit }),
continuationRequests: {
offer: (request) =>
Effect.sync(() => {
@@ -3279,6 +3281,80 @@
+ it.effect("reports the session cwd once per process, when the CLI's first init arrives", () =>
+ Effect.gen(function* () {
+ const initCwds: Array<string> = [];
+ const harness = yield* makeWakeHarnessWithOptions({
+ close: (messages) => Queue.shutdown(messages),
+ freshQueueOnReopen: true,
+ onSessionInit: (cwd) =>
+ Effect.sync(() => {