Skip to content

ask_choice allowCustom not rendered in TUI picker #2382

@Picard-ljh

Description

@Picard-ljh

现象

调用 ask_choice 时传 allowCustom: true,TUI 只渲染了 A/B/C 按钮,没有底部自定义输入框。

协议层排查(已确认正常)

  1. src/tools/choice.ts — 参数定义包含 allowCustom,三种返回值(pick / text / cancel)都处理了
  2. src/core/pause-gate.ts — allowCustom 正常穿过协议门,ChoiceVerdict 包含 type: "text" 分支
  3. 后端正确返回了 user picked / user answered / user cancelled

预期

allowCustom: true 时,选择器底部应渲染一个文本框,允许用户输入自定义回复而非仅四选一。

环境

  • Reasonix 最新版(latest npm)
  • Windows + 终端 TUI
  • DeepSeek 后端

Metadata

Metadata

Assignees

No one assigned

    Labels

    v1Legacy TypeScript line (0.x) — v1 branch, maintenance only

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions