aaif-goose / aaif-goose/goose

GOOSE_CLI_SHOW_THINKING not working for DeepSeek model through OpenRouter

Đang mở
#11,138 2 bình luận 0 reaction 1 người được giao Được @jbg nhận Xem trên GitHub
Ngôn ngữ chính
Rust
Star
54.2k
Fork
6.2k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
240

Mô tả

**Describe the bug**

As the title says, after setting GOOSE_CLI_SHOW_THINKING=1 and then starting a session with DeepSeek V4 Flash 0731 (through OpenRouter), I do not see the thinking tokens in the CLI. I confirmed that the this model exposes reasoning tokens as navigating to the same session in the Goose Desktop App shows the "thinking" toggle which when clicked shows the reasoning tokens that are missing in the CLI.

---

**To Reproduce**
Steps to reproduce the behavior:
1. Start TTY and do export GOOSE_CLI_SHOW_THINKING=1
2. (Optional) goose configure in terminal and set your provider and model to open router -> DeepSeek V4 Flash 0731
3. Run goose session in the terminal and ask a question

---

**Expected behavior**

I should be able to see the same tokens that I see in the GUI in the terminal as well.

---

**Please provide the following information**
- **OS & Arch:** Fedora 44
- **Interface:** CLI
- **Version:** 1.45
- **Extensions enabled:** None
- **Provider & Model:** DeepSeek V4 Flash 0731 (through OpenRouter)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Look for the CLI output handling code, likely in a module like `cli/src/output.rs` or `cli/src/session.rs`. Search for the environment variable `GOOSE_CLI_SHOW_THINKING` and how it controls the display of reasoning tokens. Compare the CLI's token handling with the desktop app's implementation to see where the DeepSeek/OpenRouter stream parsing differs. Run the CLI with debugging to trace the token flow.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust, shell
Lĩnh vực
ai, cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
65/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.