Skip to content

Override kimi baseUrl, warming of exseed context limit #4368

Description

@bruce6135

Description

Steps to reproduce

step1, The file ~\.codewhale\config.toml add following setting:
[providers.moonshot]
api_key = "sk-kimi-xxxxx"
base_url = "https://api.kimi.com/coding/v1"
step2, choose kimi-k2.7-code as current model, start a new conversasion, typing some words, the bottom shows warming msg: Emergency context compaction failed to reduce request below model limit (estimate ~21179 tokens, budget ~1024).

remark: the conversation is able to run in normal way, but every time I typing some words, it show the warming msg at bottom.

Expected behavior

Actual behavior

Impact

Environment

  • OS: win10 x86/64
  • codewhale version: 0.8.67
  • Install method:
  • codewhale doctor summary:

Version Information:
codewhale-tui: 0.8.67
rust: rustc 1.94.0 (4a4ef493e 2026-03-02)

Updates:
· current: v0.8.67
✓ latest: v0.8.67
Already up to date.

  • Model/provider: kimi-k2.7-code / kimi coding plan
  • Terminal app: win's 终端
  • Shell:

<

Logs, screenshots, or recordings

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requesttuiTerminal UI behavior, rendering, or interactionv0.9.0Targeting v0.9.0workflow-runtimeWorkflow IR, executor, control flow, and replay runtime

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions