@azumag/opencode-rate-limit-fallback 1.67.0 → 1.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -158,6 +158,11 @@ export const RateLimitFallback = async ({ client, directory, worktree }) => {
158
158
  if (!config.enabled) {
159
159
  return {};
160
160
  }
161
+ // Disable fallback in headless mode — headless sessions should use their configured model only
162
+ if (isHeadless) {
163
+ logger.info("Headless mode detected — model fallback disabled");
164
+ return {};
165
+ }
161
166
  // Initialize error pattern registry
162
167
  const errorPatternRegistry = new ErrorPatternRegistry(logger);
163
168
  if (config.errorPatterns?.custom) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azumag/opencode-rate-limit-fallback",
3
- "version": "1.67.0",
3
+ "version": "1.68.0",
4
4
  "description": "OpenCode plugin that automatically switches to fallback models when rate limited",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",