Skip to content

set working dir properly#2777

Merged
krissetto merged 1 commit into
docker:mainfrom
krissetto:fix-working-dir-opening-new-tui-session
May 13, 2026
Merged

set working dir properly#2777
krissetto merged 1 commit into
docker:mainfrom
krissetto:fix-working-dir-opening-new-tui-session

Conversation

@krissetto
Copy link
Copy Markdown
Contributor

when opening a new tab in a new working dir in the TUI, i noticed my agents freaking out and doing weird stuff in the wrong directories, only to find out they we're getting the wrong working dir in their environment info

this must've gotten lost during some refactor, idk

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@krissetto krissetto requested a review from a team as a code owner May 13, 2026 09:17
Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The fix is correct and well-targeted. runtime.WithWorkingDir(runConfig.WorkingDir) was missing from the runtimeOpts call, meaning all new TUI sessions inherited a stale or empty working directory. The one-line addition restores the intended behavior.

The new test (TestRuntimeOptsPassesRunConfigWorkingDirToRuntime) exercises the happy path end-to-end and gives good regression coverage for the fix.

No bugs were found in the changed code.

@krissetto krissetto merged commit d8c86bb into docker:main May 13, 2026
7 of 8 checks passed
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.

3 participants