Skip to content

refactor(agent): unify effective run cwd#54

Merged
jomeswang merged 1 commit into
mainfrom
codex/remove-workspace-root-contract
Jul 19, 2026
Merged

refactor(agent): unify effective run cwd#54
jomeswang merged 1 commit into
mainfrom
codex/remove-workspace-root-contract

Conversation

@jomeswang

Copy link
Copy Markdown
Contributor

What changed

  • Remove workspace-root fallback and template exports.
  • Compute one effectiveRunCwd for detection, composer options, skills, execution, compaction, environment, and session permissions.
  • Keep participant persistence as an additional allowed directory only.
  • Add standalone and managed cwd regression tests.

Why

Managed runs previously detected an Agent in one directory and launched it in another, which caused capability and file permission mismatches.

Risks

Callers can no longer steer execution through GROUP_CHAT_WORKSPACE aliases.

Verification

  • typecheck
  • 10 focused effective-cwd and package tests
  • actual Tutti package build
  • git diff --check

@jomeswang
jomeswang marked this pull request as ready for review July 19, 2026 14:33

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@jomeswang
jomeswang merged commit b11f581 into main Jul 19, 2026
5 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.

1 participant