Skip to content

[codex] fix root workspace guard#1254

Open
flyzstu wants to merge 1 commit into
XiaomiMiMo:mainfrom
flyzstu:codex/fix-root-workspace-guard
Open

[codex] fix root workspace guard#1254
flyzstu wants to merge 1 commit into
XiaomiMiMo:mainfrom
flyzstu:codex/fix-root-workspace-guard

Conversation

@flyzstu

@flyzstu flyzstu commented Jun 23, 2026

Copy link
Copy Markdown

Summary

  • allow projects under the user's home directory instead of rejecting the entire home subtree
  • keep blocking direct access to the home directory itself, filesystem root, and high-risk system directory trees
  • add regression coverage for the home-directory case

Root cause

The 0.1.2 security hardening treated /root and other home directories as forbidden trees, so running mimo from /root/ failed during Instance.provide initialization.

Validation

  • static review of startup directory guards and related trust checks
  • added regression test coverage for home vs home subdirectory behavior
  • attempted local bun test and bun typecheck, but the environment is missing workspace dependencies (@opentui/solid/preload, tsgo)

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