Skip to content

Retry failed workspace setup and anchor local roots#111

Merged
frantic-openai merged 2 commits into
mainfrom
codex/fix-workspace-setup-paths
Jul 20, 2026
Merged

Retry failed workspace setup and anchor local roots#111
frantic-openai merged 2 commits into
mainfrom
codex/fix-workspace-setup-paths

Conversation

@frantic-openai

Copy link
Copy Markdown
Collaborator

Context

Failed new-workspace bootstrap was skipped on retry, and relative local roots followed launcher cwd instead of the selected workflow file.

TL;DR

Retry failed bootstrap cleanly and anchor local roots to WORKFLOW.md.

Summary

  • Remove newly created partial workspaces when after_create fails.
  • Resolve local relative roots from the selected workflow directory.
  • Keep remote roots raw and use the local root in app-server validation.
  • Add regressions for bootstrap retry and explicit workflow paths.

Alternatives

  • Marker files and global cwd changes were unnecessary; one local root helper keeps the fix small.

Test Plan

  • make -C elixir all
  • mise exec -- mix test test/symphony_elixir/workspace_and_config_test.exs:60
  • mise exec -- mix test test/symphony_elixir/workspace_and_config_test.exs:244

frantic-openai and others added 2 commits July 20, 2026 14:31
Summary:
- Remove newly created partial workspaces when after_create fails.
- Resolve local relative workspace roots from the selected workflow file.
- Keep remote workspace roots raw while sharing one local root helper.
- Add regressions for bootstrap retry and explicit workflow paths.

Rationale:
- A failed bootstrap should not turn into a reusable incomplete workspace.
- Launching a workflow from another directory must not silently move local
  workspaces under the launcher cwd.

Tests:
- mise exec -- mix test test/symphony_elixir/workspace_and_config_test.exs:60
- mise exec -- mix test test/symphony_elixir/workspace_and_config_test.exs:244
- mise exec -- mix test test/symphony_elixir/workspace_and_config_test.exs
- mise exec -- mix test test/symphony_elixir/app_server_test.exs
- HEX_HOME=/private/tmp/symphony-hex mise exec -- make -C elixir all

Co-authored-by: Codex <codex@openai.com>
…etup-paths

# Conflicts:
#	elixir/lib/symphony_elixir/workspace.ex
@frantic-openai
frantic-openai merged commit cbd2158 into main Jul 20, 2026
2 checks passed
@frantic-openai
frantic-openai deleted the codex/fix-workspace-setup-paths branch July 20, 2026 22:14
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