Skip to content

Commit 3cd66e8

Browse files
committed
Revert "Use Kimi K2.6 for free and lite (#561)"
This reverts commit 37020fe.
1 parent c68b19d commit 3cd66e8

32 files changed

Lines changed: 125 additions & 203 deletions

File tree

agents/__tests__/editor.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ describe('editor agent', () => {
6767
expect(glmEditor.model).toBe('z-ai/glm-5.1')
6868
})
6969

70-
test('creates kimi editor', () => {
71-
const kimiEditor = createCodeEditor({ model: 'kimi' })
72-
expect(kimiEditor.model).toBe('moonshotai/kimi-k2.6')
73-
})
74-
7570
test('creates minimax editor', () => {
7671
const minimaxEditor = createCodeEditor({ model: 'minimax' })
7772
expect(minimaxEditor.model).toBe('minimax/minimax-m2.7')
@@ -89,12 +84,6 @@ describe('editor agent', () => {
8984
expect(glmEditor.instructionsPrompt).not.toContain('</think>')
9085
})
9186

92-
test('kimi editor does not include think tags in instructions', () => {
93-
const kimiEditor = createCodeEditor({ model: 'kimi' })
94-
expect(kimiEditor.instructionsPrompt).not.toContain('<think>')
95-
expect(kimiEditor.instructionsPrompt).not.toContain('</think>')
96-
})
97-
9887
test('minimax editor does not include think tags in instructions', () => {
9988
const minimaxEditor = createCodeEditor({ model: 'minimax' })
10089
expect(minimaxEditor.instructionsPrompt).not.toContain('<think>')

agents/base2/base2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function createBase2(
2525
const isFree = mode === 'free' || mode === 'lite'
2626

2727
const isSonnet = false
28-
const model = isFree ? 'moonshotai/kimi-k2.6' : 'anthropic/claude-opus-4.7'
28+
const model = isFree ? 'z-ai/glm-5.1' : 'anthropic/claude-opus-4.7'
2929

3030
return {
3131
publisher,

agents/editor/editor-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createCodeEditor } from './editor'
33
import type { AgentDefinition } from '../types/agent-definition'
44

55
const definition: AgentDefinition = {
6-
...createCodeEditor({ model: 'kimi' }),
6+
...createCodeEditor({ model: 'glm' }),
77
id: 'editor-lite',
88
}
99
export default definition

agents/editor/editor.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { publisher } from '../constants'
44
import type { AgentDefinition } from '../types/agent-definition'
55

66
export const createCodeEditor = (options: {
7-
model: 'gpt-5' | 'opus' | 'glm' | 'kimi' | 'minimax'
7+
model: 'gpt-5' | 'opus' | 'glm' | 'minimax'
88
}): Omit<AgentDefinition, 'id'> => {
99
const { model } = options
1010
return {
@@ -14,8 +14,6 @@ export const createCodeEditor = (options: {
1414
? 'openai/gpt-5.1'
1515
: options.model === 'minimax'
1616
? 'minimax/minimax-m2.7'
17-
: options.model === 'kimi'
18-
? 'moonshotai/kimi-k2.6'
1917
: options.model === 'glm'
2018
? 'z-ai/glm-5.1'
2119
: 'anthropic/claude-opus-4.7',
@@ -69,7 +67,7 @@ OR for new files or major rewrites:
6967
}
7068
</codebuff_tool_call>
7169
72-
${model === 'gpt-5' || model === 'glm' || model === 'kimi' || model === 'minimax'
70+
${model === 'gpt-5' || model === 'glm' || model === 'minimax'
7371
? ''
7472
: `Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes.
7573

agents/reviewer/code-reviewer-lite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createReviewer } from './code-reviewer'
55
const definition: SecretAgentDefinition = {
66
id: 'code-reviewer-lite',
77
publisher,
8-
...createReviewer('moonshotai/kimi-k2.6'),
8+
...createReviewer('z-ai/glm-5.1'),
99
}
1010

1111
export default definition

agents/types/agent-definition.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ export type ModelName =
423423
// Other open source models
424424
| 'moonshotai/kimi-k2'
425425
| 'moonshotai/kimi-k2:nitro'
426-
| 'moonshotai/kimi-k2.6'
427426
| 'z-ai/glm-5'
428427
| 'z-ai/glm-5.1'
429428
| 'z-ai/glm-4.6'

cli/src/components/freebuff-model-selector.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react'
55
import { Button } from './button'
66
import {
77
FALLBACK_FREEBUFF_MODEL_ID,
8-
FREEBUFF_KIMI_MODEL_ID,
8+
FREEBUFF_GLM_MODEL_ID,
99
FREEBUFF_MODELS,
1010
getFreebuffDeploymentAvailabilityLabel,
1111
isFreebuffModelAvailable,
@@ -25,8 +25,8 @@ import {
2525
import type { KeyEvent } from '@opentui/core'
2626

2727
const FREEBUFF_MODEL_SELECTOR_MODELS = [
28-
...FREEBUFF_MODELS.filter((model) => model.id === FREEBUFF_KIMI_MODEL_ID),
29-
...FREEBUFF_MODELS.filter((model) => model.id !== FREEBUFF_KIMI_MODEL_ID),
28+
...FREEBUFF_MODELS.filter((model) => model.id === FREEBUFF_GLM_MODEL_ID),
29+
...FREEBUFF_MODELS.filter((model) => model.id !== FREEBUFF_GLM_MODEL_ID),
3030
]
3131

3232
/**
@@ -72,7 +72,7 @@ export const FreebuffModelSelector: React.FC = () => {
7272
// unavailable (e.g. deployment hours close while the picker is open),
7373
// swap to the always-available fallback so Enter doesn't POST a model
7474
// the server will immediately reject. In-memory only — the user's saved
75-
// preference (e.g. Kimi) is preserved for the next launch.
75+
// preference (e.g. GLM) is preserved for the next launch.
7676
if (
7777
(session?.status === 'none' || !session) &&
7878
!isFreebuffModelAvailable(selectedModel, new Date(now))

cli/src/components/waiting-room-screen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export const WaitingRoomScreen: React.FC<WaitingRoomScreenProps> = ({
260260
<span>Elapsed </span>
261261
{formatElapsed(elapsedMs)}
262262
</text>
263-
{/* Per-model session quota (e.g. Kimi K2.6 caps at 5/12h). Only
263+
{/* Per-model session quota (e.g. GLM 5.1 caps at 5/12h). Only
264264
rendered for rate-limited models so the Minimax queue stays
265265
clutter-free. */}
266266
{session.rateLimit && (
@@ -343,7 +343,7 @@ export const WaitingRoomScreen: React.FC<WaitingRoomScreenProps> = ({
343343
</>
344344
)}
345345

346-
{/* Per-model session quota exhausted (e.g. 5+ Kimi sessions in the
346+
{/* Per-model session quota exhausted (e.g. 5+ GLM sessions in the
347347
last 12h). Terminal for this run — the user can exit and come
348348
back once the oldest session in the window rolls off. */}
349349
{session?.status === 'rate_limited' && (

cli/src/hooks/use-freebuff-session.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function callSession(
104104
return body
105105
}
106106
}
107-
// 429 from POST is the per-model session-quota reject (e.g. too many Kimi
107+
// 429 from POST is the per-model session-quota reject (e.g. too many GLM
108108
// sessions in the last 12h). Terminal for the current poll — the CLI shows
109109
// a screen explaining the limit and when the user can try again. The 429
110110
// status (rather than 200) keeps older CLIs in their error path so they
@@ -442,9 +442,9 @@ export function useFreebuffSession(): UseFreebuffSessionResult {
442442
}
443443
if (next.status === 'model_unavailable') {
444444
// Server says the requested model isn't available right now (e.g.
445-
// Kimi outside deployment hours). Flip to the always-available
445+
// GLM outside deployment hours). Flip to the always-available
446446
// fallback for this run. In-memory only — `setSelectedModel`
447-
// doesn't persist, so the user's saved preference (e.g. Kimi)
447+
// doesn't persist, so the user's saved preference (e.g. GLM)
448448
// is preserved for their next launch during deployment hours.
449449
useFreebuffModelStore
450450
.getState()

common/src/__tests__/freebuff-models.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import { describe, expect, test } from 'bun:test'
22

33
import {
4-
DEFAULT_FREEBUFF_MODEL_ID,
5-
FREEBUFF_KIMI_MODEL_ID,
64
getFreebuffDeploymentAvailabilityLabel,
75
isFreebuffDeploymentHours,
86
} from '../constants/freebuff-models'
97

108
describe('freebuff model availability', () => {
11-
test('defaults to Kimi K2.6', () => {
12-
expect(DEFAULT_FREEBUFF_MODEL_ID).toBe(FREEBUFF_KIMI_MODEL_ID)
13-
})
14-
159
test('formats the close time in the user local timezone while deployment is open', () => {
1610
expect(
1711
getFreebuffDeploymentAvailabilityLabel(new Date('2026-01-05T18:00:00Z'), {

0 commit comments

Comments
 (0)