Desktop footer context limit ignores effective ModelConfig (GOOSE_CONTEXT_LIMIT), disagrees with compaction
- 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**
Split from #10893. The footer denominator comes from static metadata with a hardcoded 128000 fallback (ui/desktop/src/components/ChatInput.tsx:596-627, :83) and never reads the session's effective ModelConfig, which compaction uses and which honors GOOSE_CONTEXT_LIMIT.
---
**To Reproduce**
Set GOOSE_CONTEXT_LIMIT: 1048576, start a session on a model whose static metadata says 128k: footer shows x / 128k while compaction triggers relative to 1M. Provider-agnostic.
---
**Expected behavior**
Footer and compaction read the same effective limit. Direction: expose the session's effective context_limit over ACP next to the existing usage updates; ChatInput prefers it, static chain as fallback.
Verification: with an override, footer and compaction agree; without, known models keep canonical limits.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bug nằm trong ui/desktop/src/components/ChatInput.tsx, khoảng các dòng 596-627 và 83, nơi mẫu số của footer sử dụng giá trị fallback được hardcode. ModelConfig hiệu dụng của session, có tôn trọng biến môi trường GOOSE_CONTEXT_LIMIT, được compaction sử dụng. Hãy bắt đầu bằng việc tìm nơi context_limit của session được expose qua ACP (Agent Communication Protocol). Cập nhật ChatInput để đọc giá trị này, với metadata tĩnh làm fallback. Xác minh bằng cách đặt GOOSE_CONTEXT_LIMIT thành một giá trị khác và kiểm tra rằng footer và compaction khớp nhau.
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, typescript
- Lĩnh vực
- backend-api-design, frontend, observability
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 65/100