Feature request: let the interactive TUI answer approvals and questions through KAP, like Desktop and kimi web
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- cli
Hướng nghiên cứu
Start by tracing the interactive TUI session lifecycle, its pending interaction handling, the existing interactions routes, and registration under server/instances/. The issue specifies a loopback server, the existing token, and product: "kimi-code-cli", with an optional config key. Done means external clients can list and answer the TUI session’s pending interactions through those routes, while the native panel remains usable and the first answer wins.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What feature would you like to see?
Let the interactive TUI (kimi) answer pending approvals and questions through KAP, the same way Kimi Code Desktop and kimi web / kimi rc already do.
When Desktop or kimi web hosts a session, an external tool can list its pending interactions with GET /api/v1/sessions/{id}/interactions and answer one with POST /api/v1/sessions/{id}/interactions/{interaction_id}. I build Vibe Island, a macOS notch panel for coding agents, and we use this to show approve / reject / answer buttons there next to the native card. Whichever side answers first wins, and the other side gets 40902. It works well.
The TUI has no equivalent:
- It doesn't start a server or register anything under
server/instances/. - Its pending interactions live only in its own process, so the Desktop server returns an empty list for a session the TUI is running.
:takeovermoves the lock, not the pending approval. PermissionRequesthooks are fire-and-forget, so a hook can't answer either.
The only thing an external tool can do today is type keys into the terminal, which has no request identity and can land in the wrong place.
Proposal: while a TUI session is running, expose only the existing interactions routes (GET .../interactions, POST .../interactions/{interaction_id}) on a loopback server, using the same token. Register it in server/instances/ with product: "kimi-code-cli". The native TUI panel stays exactly as it is, and the first answer wins, as on Desktop. Opt-in behind a config key is fine.
External tools could then use one client for Desktop, kimi web and the TUI.
Additional information
- Related: #1326 and #2960 (let hooks decide approvals), #2736 (attach to a live session).
- This request is narrower. It adds no new protocol and no new decision semantics; it reuses the KAP interaction schema.
- The answer is bound to the exact pending request (
interaction_idis the sameapproval_<uuid>asPermissionRequest.id), which is the binding concern raised in #1326. - It doesn't touch prompts, shell or files.
- Tested on macOS with Kimi Code Desktop 1.5.0 (core 2.8.0) and Kimi Code CLI 2.7.3.
- Ngôn ngữ chính
- TypeScript
- Star
- 8.3k
- Fork
- 1.4k
- Merge trung bình
- 12 giờ 6 phút
- Pull request đã merge (30 ngày)
- 596
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MoonshotAI/kimi-code
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MoonshotAI/kimi-code#5539 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directoriesCó thể đã có người làm @markankamaransheogarat-sys đã nhận 2 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MoonshotAI/kimi-code#5296 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MoonshotAI/kimi-code#5256 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MoonshotAI/kimi-code#5062 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
MoonshotAI/kimi-code#5057 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MoonshotAI/kimi-code
Issue tương tự
-
Add Alice&BotĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
midnightntwrk/midnight-faucet-api#215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[功能] 手机端命令执行显示 AI 动作描述Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NanmiCoder/cc-haha#2034 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
mobile prio:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
digitalfabrik/entitlementcard#3324 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày