MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / setManualMode

Function setManualMode

lib/tui/modals.tsx:83–92  ·  view source on GitHub ↗
(
    api: TuiApi,
    config: PluginConfig,
    sessionID: string | null | undefined,
    enabled: boolean,
)

Source from the content-addressed store, hash-verified

81}
82
83async function setManualMode(
84 api: TuiApi,
85 config: PluginConfig,
86 sessionID: string | null | undefined,
87 enabled: boolean,
88) {
89 if (!sessionID) return
90 await saveManualModeSetting(sessionID, enabled, logger)
91 openPanelModal(api, config)
92}

Callers 1

openPanelModalFunction · 0.85

Calls 2

saveManualModeSettingFunction · 0.90
openPanelModalFunction · 0.85

Tested by

no test coverage detected