Feature request: let the interactive TUI answer approvals and questions through KAP, like Desktop and kimi web
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.3k
- Forks
- 1.4k
- Merge medio
- 12 h 6 min
- PR fusionados (30 d)
- 596
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MoonshotAI/kimi-code
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MoonshotAI/kimi-code#5539 ·
Los mantenedores suelen responder en 1 día
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directoriesPosiblemente ocupada @markankamaransheogarat-sys la tomó hace 2 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
MoonshotAI/kimi-code#5296 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MoonshotAI/kimi-code#5256 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
MoonshotAI/kimi-code#5062 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
MoonshotAI/kimi-code#5057 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MoonshotAI/kimi-code
Issues similares
-
Add Alice&BotAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
midnightntwrk/midnight-faucet-api#215 ·
Los mantenedores suelen responder en 1 día
-
[功能] 手机端命令执行显示 AI 动作描述Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NanmiCoder/cc-haha#2034 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
mobile prio:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
digitalfabrik/entitlementcard#3324 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día