Skip to content

[codex] Report the exec-server working directory - #29666

Merged
rasmusrygaard merged 2 commits into
mainfrom
dev/rasmus/report-exec-server-cwd
Jun 23, 2026
Merged

[codex] Report the exec-server working directory#29666
rasmusrygaard merged 2 commits into
mainfrom
dev/rasmus/report-exec-server-cwd

Conversation

@rasmusrygaard

Copy link
Copy Markdown
Contributor

Summary

  • add the exec-server working directory to environment/info as an optional PathUri
  • populate it from the executor process's current directory
  • preserve compatibility with older responses that omit cwd

Why

Remote clients currently have no executor-native default working directory. This forces callers such as app-server-backend to assume /workspace, which fails for laptop environments. Reporting the cwd alongside the detected shell lets clients use the path convention and location of the actual executor.

Impact

This is backward-compatible: the new response field is optional, and clients can continue handling responses from older exec servers. A follow-up app-server-backend change will consume the value for cwd-less command/exec requests.

Validation

  • just test -p codex-exec-server (275 passed, 2 skipped)

@rasmusrygaard
rasmusrygaard requested a review from jif-oai June 23, 2026 17:01
@rasmusrygaard
rasmusrygaard force-pushed the dev/rasmus/report-exec-server-cwd branch from 6b7962f to 9ffd084 Compare June 23, 2026 17:14
rasmusrygaard added a commit that referenced this pull request Jun 23, 2026
rasmusrygaard added a commit that referenced this pull request Jun 23, 2026
@rasmusrygaard
rasmusrygaard force-pushed the dev/rasmus/report-exec-server-cwd branch from 265f480 to 83d7b82 Compare June 23, 2026 18:14
rasmusrygaard added a commit that referenced this pull request Jun 23, 2026
@rasmusrygaard
rasmusrygaard force-pushed the dev/rasmus/report-exec-server-cwd branch from 83d7b82 to 7671489 Compare June 23, 2026 18:39
@rasmusrygaard
rasmusrygaard force-pushed the dev/rasmus/report-exec-server-cwd branch from 7671489 to 90acccd Compare June 23, 2026 19:14
@rasmusrygaard
rasmusrygaard marked this pull request as ready for review June 23, 2026 19:45
@rasmusrygaard
rasmusrygaard merged commit 66f0220 into main Jun 23, 2026
31 checks passed
@rasmusrygaard
rasmusrygaard deleted the dev/rasmus/report-exec-server-cwd branch June 23, 2026 20:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants