mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-11-09 01:38:56 +00:00
Add kimi --default-workspace to work in the shared default workspace instead of the current directory. Both the interactive shell and print mode resolve the folder through the engine before the session starts and change into it, keeping PWD in sync; when the folder cannot be used, startup fails with its path and reason. Resume hints become kimi --default-workspace -r <id> for such sessions. The session picker labels sessions in the default workspace as "Default workspace" and copies a resume command without a cd for them. kimi doctor reports the location and whether it can be used. The stty lookup excludes both the launch directory and the new working directory, so a binary planted in either is never executed. The SDK gains KimiHarness.ensureDefaultWorkspace(), getDefaultWorkspacePath() and getDefaultWorkspaceStatus(), maps default_workspace.unavailable to a KimiError, and exports workspaceRootKey and DEFAULT_WORKSPACE_PROBLEM_MESSAGES. |
||
|---|---|---|
| .. | ||
| catalog.test.ts | ||
| config.test.ts | ||
| kimi-code-model-provider.test.ts | ||
| list-sessions.test.ts | ||
| mcp-auth-status-server.ts | ||
| replay.test.ts | ||
| sdk-rpc-client-v2.test.ts | ||
| session-approval-handler.test.ts | ||
| session-event-types.test.ts | ||
| session-event-wiring.test.ts | ||
| session-goal.test.ts | ||
| session-prompt-events.test.ts | ||
| session-prompt-input.test.ts | ||
| session-question-handler.test.ts | ||
| session-runtime-helpers.ts | ||
| session-skills.test.ts | ||
| telemetry.ts | ||
| test-identity.ts | ||