fix(usage): resolve transcript dirs from providerInstances #6312
ClosedThYpHo0n(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/6312/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -85,3 +88,18 @@8588 const ScanCacheJson = Schema.fromJsonString(Schema.Unknown as unknown as Schema.Codec<unknown>);8689 const decodeScanCacheFile = Schema.decodeUnknownEffect(ScanCacheJson);8790 const encodeScanCacheFile = Schema.encodeEffect(ScanCacheJson);91+const decodeCodexSettings = Schema.decodeUnknownOption(CodexSettings);92+const decodeClaudeSettings = Schema.decodeUnknownOption(ClaudeSettings);93+94+export const resolveTranscriptDirsForSettings = Effect.fn(95+ "UsageService.resolveTranscriptDirsForSettings",96+)(function* (settings: ServerSettingsConfig) {97+ const fileSystem = yield* FileSystem.FileSystem;98+ const path = yield* Path.Path;99+ const codexConfigs = [settings.providers.codex];100+ const claudeConfigs = [settings.providers.claudeAgent];101+102+ for (const instance of Object.values(settings.providerInstances)) {103+ if (instance.enabled === false) continue;104+ if (instance.driver === "codex") {105+ const config = decodeCodexSettings(instance.config ?? {});
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
31909698-3eb2-408b-8902-438c825f32cbYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share