Skip to content

feat(shell): add pseudo-cwd for shell mode - #768

Closed
JessyTsui wants to merge 2 commits into
MoonshotAI:mainfrom
JessyTsui:feat/shell-pseudo-cwd
Closed

feat(shell): add pseudo-cwd for shell mode#768
JessyTsui wants to merge 2 commits into
MoonshotAI:mainfrom
JessyTsui:feat/shell-pseudo-cwd

Conversation

@JessyTsui

@JessyTsui JessyTsui commented Jan 28, 2026

Copy link
Copy Markdown

Related Issue

Resolves #766

Description

Add a pseudo‑cwd for shell mode. The shell now tracks a current directory, updates
it on cd, and passes it as cwd when running subsequent shell commands. This
keeps agent workdir unchanged while making shell usage feel consistent.

Tests:

  • Manual verification via a small script: cd then pwd outputs the new directory.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue.
  • I have added tests that prove my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Open with Devin

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View issue and 4 additional flags in Devin Review.

Open in Devin Review

Comment thread src/kimi_cli/ui/shell/__init__.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat]: Shell mode: add pseudo-cwd so cd affects subsequent commands

1 participant