Skip to content

fix(runtime/provider/tui): advisory gate, request reuse, and gateway fail-fast#54

Merged
phantom5099 merged 1 commit into
mainfrom
fork-pr-413-1776912961
Apr 23, 2026
Merged

fix(runtime/provider/tui): advisory gate, request reuse, and gateway fail-fast#54
phantom5099 merged 1 commit into
mainfrom
fork-pr-413-1776912961

Conversation

@fennoai
Copy link
Copy Markdown

@fennoai fennoai Bot commented Apr 23, 2026

Requested by @phantom5099

Summary

  • downgrade OpenAI-compatible/Anthropic/Gemini local estimate gate policy to advisory
  • reuse prepared provider requests between estimate and generate to avoid duplicate request builds
  • make TUI gateway stream fail-fast on runtime payload version mismatch to prevent repeated error events

…use and stream fail-fast

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: phantom5099 <245659304+phantom5099@users.noreply.github.com>
@phantom5099
Copy link
Copy Markdown
Owner

@xgopilot 给“估算失败”加降级通道。
现在最该补的是:EstimateInputTokens() 失败时,不要直接结束 run,而是发一条诊断事件后跳过 proactive budget gate,继续进入 Generate()。
只有“配置非法、模型非法、driver 非法”这类确定不可恢复错误才继续硬失败。这样才能真正消掉“估算阶段单点故障”

@fennoai
Copy link
Copy Markdown
Author

fennoai Bot commented Apr 23, 2026

codeagent is processing your request, please wait a moment...

@phantom5099 phantom5099 merged commit 3884d4a into main Apr 23, 2026
1 check passed
@fennoai fennoai Bot deleted the fork-pr-413-1776912961 branch April 23, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants