@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.
- package/dist/index.js +5 -0
- 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