Skip to content

feat(workspace): add coordinated workspace mode#51

Merged
nettee merged 8 commits into
mainfrom
workspace-mode
Jun 7, 2026
Merged

feat(workspace): add coordinated workspace mode#51
nettee merged 8 commits into
mainfrom
workspace-mode

Conversation

@nettee

@nettee nettee commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • add Workspace Mode config and refs via wtk workspace init/add
  • route mode-aware worktree operations across linked repositories
  • add aggregate workspace status, docs, Zest notes, and E2E coverage

Verification

  • cargo fmt && cargo test

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b334c4af1a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/workspace.rs
Comment thread src/workspace.rs Outdated
Generated-By: looper 0.9.6 (runner=fixer, agent=codex)
@nettee

nettee commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

Looper fixer round complete6d62ae2

  • ✅ Review comment on src/workspace.rs:310 (@chatgpt-codex-connector) — thread
    • Updated src/workspace.rs so workspace remove stops treating a successfully removed worktree as rollbackable before attempting branch deletion, leaving refs on the main worktree after a visible partial failure. Added an e2e regression in tests/e2e.rs covering failed --delete-branch cleanup.
  • ✅ Review comment on src/workspace.rs (@chatgpt-codex-connector) — thread
    • Updated src/workspace.rs so send-out now calls rollback_all when switching a later repository to the requested base fails after earlier repositories were already mutated. Added an e2e regression in tests/e2e.rs that exercises the later-switch failure and confirms the earlier repo is restored.

🔁 Powered by Looper · runner=fixer · agent=codex · An autonomous AI dev team for your GitHub repos.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d62ae2a77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/workspace.rs Outdated
Comment thread src/workspace.rs
Generated-By: looper 0.9.6 (runner=fixer, agent=codex)
@nettee

nettee commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

Looper fixer round completeb89ca71

  • ✅ Review comment on src/workspace.rs (@chatgpt-codex-connector) — thread
    • Updated src/workspace.rs so Workspace Mode bring-in records rollback actions per repository, recreates removed linked worktrees, restores refs, and switches earlier main worktrees back if a later remove or switch fails. Added an E2E regression in tests/e2e.rs covering a locked linked worktree failure.
  • ✅ Review comment on src/workspace.rs:251 (@chatgpt-codex-connector) — thread
    • Updated src/workspace.rs so Workspace Mode wtk new now runs the existing linked-worktree initialization path after creating and surfacing each worktree, preserving ignored .env copies and pnpm setup. Added an E2E regression in tests/e2e.rs covering both behaviors.

🔁 Powered by Looper · runner=fixer · agent=codex · An autonomous AI dev team for your GitHub repos.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b89ca71d28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/workspace.rs Outdated
Generated-By: looper 0.9.6 (runner=fixer, agent=codex)
@nettee

nettee commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

Looper fixer round completed48763b

  • ✅ Review comment on src/workspace.rs (@chatgpt-codex-connector) — thread
    • Wrapped wtk new workspace initialization failures in rollback_all and made rollback worktree removal forceful in src/workspace.rs. Added an E2E regression in tests/e2e.rs that fails pnpm install in a later repo and verifies refs, branches, and linked worktrees are restored.

🔁 Powered by Looper · runner=fixer · agent=codex · An autonomous AI dev team for your GitHub repos.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d48763b93f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/workspace.rs
Comment thread src/workspace.rs
Generated-By: looper 0.9.6 (runner=fixer, agent=codex)
@nettee

nettee commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

Looper fixer round completeb6dd88e

  • ✅ Review comment on src/workspace.rs:400 (@chatgpt-codex-connector) — thread
    • Updated src/workspace.rs so Workspace Mode send_out snapshots per-repo send-out init state, applies ignored .env and specs/change/active copies, and runs pnpm setup before success. Added tests/e2e.rs coverage for env/spec copying and pnpm execution across workspace refs.
  • ✅ Review comment on src/workspace.rs:274 (@chatgpt-codex-connector) — thread
    • Updated src/workspace.rs so failed Workspace Ref writes during send_out call rollback_all instead of returning early, unwinding created worktrees and branch switches. Added tests/e2e.rs coverage that makes refs/ unwritable and verifies refs, branches, and worktrees are restored.

🔁 Powered by Looper · runner=fixer · agent=codex · An autonomous AI dev team for your GitHub repos.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6dd88e3e7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/workspace.rs Outdated
Generated-By: looper 0.9.6 (runner=fixer, agent=codex)
@nettee

nettee commented Jun 7, 2026

Copy link
Copy Markdown
Owner Author

Looper fixer round complete3099a5f

  • ✅ Review comment on src/workspace.rs (@chatgpt-codex-connector) — thread
    • Wrapped the final write_ref in bring_in with rollback_all(...) error handling in src/workspace.rs so failed ref rewrites unwind prior mutations, and added a Unix e2e regression in tests/e2e.rs that forces that failure path.

🔁 Powered by Looper · runner=fixer · agent=codex · An autonomous AI dev team for your GitHub repos.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@nettee nettee merged commit 23fabec into main Jun 7, 2026
2 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.

Support parent-directory worktree mode and linked worktrees across multiple repos

1 participant