File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,7 +192,10 @@ import { ensureRuntimeRefreshGuardian } from "./lib/runtime/refresh-guardian.js"
192192import { ensureRuntimeSessionAffinity } from "./lib/runtime/session-affinity.js" ;
193193import { getRuntimeStatusMarker } from "./lib/runtime/status-marker.js" ;
194194import { showRuntimeToast } from "./lib/runtime/toast.js" ;
195- import { applyRuntimeUiOptions } from "./lib/runtime/ui-runtime.js" ;
195+ import {
196+ applyRuntimeUiOptions ,
197+ resolveRuntimeUiOptions ,
198+ } from "./lib/runtime/ui-runtime.js" ;
196199import { SessionAffinityStore } from "./lib/session-affinity.js" ;
197200import { registerCleanup } from "./lib/shutdown.js" ;
198201import {
@@ -408,7 +411,10 @@ export const OpenAIOAuthPlugin: Plugin = async ({ client }: PluginInput) => {
408411 } ;
409412
410413 const resolveUiRuntime = ( ) : UiRuntimeOptions => {
411- return applyUiRuntimeFromConfig ( loadPluginConfig ( ) ) ;
414+ return resolveRuntimeUiOptions ( {
415+ loadPluginConfig,
416+ applyUiRuntimeFromConfig,
417+ } ) ;
412418 } ;
413419
414420 const getStatusMarker = (
Original file line number Diff line number Diff line change @@ -19,3 +19,10 @@ export function applyRuntimeUiOptions<TConfig>(
1919 glyphMode : deps . getCodexTuiGlyphMode ( pluginConfig ) ,
2020 } ) ;
2121}
22+
23+ export function resolveRuntimeUiOptions < TConfig > ( deps : {
24+ loadPluginConfig : ( ) => TConfig ;
25+ applyUiRuntimeFromConfig : ( config : TConfig ) => UiRuntimeOptions ;
26+ } ) : UiRuntimeOptions {
27+ return deps . applyUiRuntimeFromConfig ( deps . loadPluginConfig ( ) ) ;
28+ }
You can’t perform that action at this time.
0 commit comments