MoonshotAI / MoonshotAI/kimi-code
feat(web): expose an integrated terminal for each session
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
What feature would you like to see?
Add an interactive terminal panel to Kimi Code Web, scoped to the active session and workspace. It should support terminal input/output, resizing, reconnecting, and closing or restarting the terminal so users can run commands without leaving the browser.
Additional information
Much of the groundwork already exists in apps/kimi-web/src/components/Terminal.vue, apps/kimi-web/src/composables/useTerminal.ts, the Web API client, and the server PTY routes. However, Terminal.vue is not mounted in the UI, useTerminal.ts is currently unused by the visible workflow, and the v2 WebSocket terminal_* handling appears unfinished. This request is to finish and expose that existing capability.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing flow through apps/kimi-web/src/components/Terminal.vue and apps/kimi-web/src/composables/useTerminal.ts, then inspect the Web API client and server PTY routes. Check the unfinished v2 WebSocket terminal_* handling and how the visible workflow mounts components. Done means the active session exposes a usable terminal with input/output, resizing, reconnecting, and close or restart behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- full-stack
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100