Skip to content

refactor: resolve a step's space in one place - #258

Merged
matt-richardson merged 1 commit into
mainfrom
mr/extract-space-selection
Oct 12, 2026
Merged

matt-richardson merged 1 commit into
mainfrom
mr/extract-space-selection

Conversation

@matt-richardson

Copy link
Copy Markdown
Contributor

Why

Split out of #239 to make it smaller. The agent read the space name in 13 places across the legacy *BuildProcess classes and the Go CLI command builders. #239 changes every one of them to prefer a space id. With the lookup in SpaceSelection, #239 changes one class instead of those eight files.

Notes

  • The two CLI paths still treat "no space set" differently, as before. The legacy CLI omits --space, and the Go CLI sends Default. resolve and resolveOrDefault keep that difference.
  • One behaviour change: the space name is now trimmed. A whitespace-only name used to reach the legacy CLI as --space " " and now omits --space. A name with surrounding spaces is now sent without them on both paths.
  • ./gradlew build test passes.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@matt-richardson
matt-richardson merged commit d6622f0 into main Oct 12, 2026
7 checks passed
@matt-richardson
matt-richardson deleted the mr/extract-space-selection branch October 12, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants