Fixed
-
Router forwards
prompt_cache_keyto NVIDIA -> HTTP 400 (fixes #160). Clients using OpenAI JS SDK (pi agent) setprompt_cache_keyto session UUID for prompt caching; NVIDIA rejects it withUnsupported parameter(s): prompt_cache_key. Addedprompt_cache_keytoSTRIP_PARAMSinsrc/core/schema-normalizer.jsand addednvidia: normalizeNvidia(strip + orphan tool drop) toPROVIDER_NORMALIZERSsonormalizeRequestBody(body, 'nvidia')now strips the hint before forwarding. Verified with direct replay againstintegrate.api.nvidia.comandpnpm test813/813. Thanks @pelvity. -
Config
pingIntervalnot respected at startup (fixes #155). TUI always started in speed mode (2s) ignoringsettings.pingIntervaland--ping-interval. Nowsrc/tui/tui-state.jscreateTuiState()derivesinitialIntervalfromconfig.settings.pingInterval(already merged from CLI insrc/tui/app.js:283) and maps to mode viaintervalToPingMode(30000 -> slow, 10000 -> normal, 4000 -> forced, <=3000 -> speed). SetspingModeSourcetoconfigvsstartupand only setsspeedModeUntilwhen initial mode is speed. Users with 30s interval no longer burn quota on startup burst. Thanks @BetterToAutomateTheWorld. -
jcode configuration option for CLI and web (fixes #145). CLI Z cycle already had
jcodebut launch hung (stdin left in raw mode, REPL appeared frozen) and web had no jcode option at all.- CLI hang:
src/tui/key-handler.jslaunchSelectedModelnow callsstopUi({ resetRawMode: true })(wasstopUi()with raw mode still enabled) andsrc/core/tool-launchers.jsspawnCommanddefensively resetsstdin.setRawMode(false)before handing TTY to child. - Web: Added
jcodetoINSTALL_TARGET_MODESinsrc/core/endpoint-installer.js(now 15 targets,jcodeafterpito matchTOOL_MODE_ORDERorder) with env-based installer (~/.fcm-jcode-env), mirrored inweb/src/utils/m3.jsINSTALL_ENDPOINT_TOOL_MODES, and fixedweb/src/hooks/useToolMode.jscycle bug (TOOL_MODE_ORDER->INSTALL_ENDPOINT_TOOL_MODES). Web/api/tool-modenow acceptsjcodewithout 422 and dropdown/cycle shows it. Thanks @plahakps.
- CLI hang:
Changed
src/core/schema-normalizer.jsJSDoc now exportsnormalizeNvidiaand clarifies per-provider normalization.web/src/utils/m3.jsandsrc/core/endpoint-installer.jstool order now matches CLI'sTOOL_MODE_ORDER(opencode -> pi -> jcode -> opencode-desktop ...).
Tests
- 813/813 passing. Updated
test/test.jsendpoint install target expectation to includejcode.