فهرست منبع

chore: clean up stale JSDoc and verbose comment

Michael Henke 1 ماه پیش
والد
کامیت
1d36206c42
2فایلهای تغییر یافته به همراه2 افزوده شده و 10 حذف شده
  1. 1 7
      src/hooks/foreground-fallback/index.test.ts
  2. 1 3
      src/hooks/foreground-fallback/index.ts

+ 1 - 7
src/hooks/foreground-fallback/index.test.ts

@@ -6,13 +6,7 @@ import {
   isRateLimitError,
 } from './index';
 
-// ACCEPTANCE GAP: the live behavior this suite supports (a model switched via
-// /model empties the agent's chain so a rate-limit error surfaces instead of
-// falling back, plus the "[plugin] disabled fallback chain for model-switched
-// agent" log line) is only verified end-to-end by manually switching a model
-// in a running OpenCode session and forcing a 429. There is no CI harness
-// that triggers a real rate-limit through the config() hook, so that
-// acceptance path is NOT covered by automated tests.
+// ACCEPTANCE GAP: config() hook behaviour is not covered by CI — verify live.
 
 type ForegroundFallbackClient = ConstructorParameters<
   typeof ForegroundFallbackManager

+ 1 - 3
src/hooks/foreground-fallback/index.ts

@@ -204,9 +204,7 @@ export class ForegroundFallbackManager {
   /**
    * Disable the fallback chain for a specific agent.
    * After calling this, rate-limit errors for that agent surface instead of
-   * silently falling back through the chain. This is called automatically by
-   * the config() hook when a user selects a model via /model that differs
-   * from the chain's primary model.
+   * silently falling back through the chain.
    */
   disableChain(agentName: string): void {
     // Keep the key present (known agent, no chain) rather than deleting it,