Skip to content

fix(tui): resolve community image names in sandbox creation#798

Merged
johntmyers merged 1 commit intomainfrom
fix/786-tui-community-image-resolution
Apr 9, 2026
Merged

fix(tui): resolve community image names in sandbox creation#798
johntmyers merged 1 commit intomainfrom
fix/786-tui-community-image-resolution

Conversation

@johntmyers
Copy link
Copy Markdown
Collaborator

Summary

TUI sandbox creation now resolves bare community image names (e.g. "base") into fully-qualified registry references, matching CLI behavior. Previously the TUI passed bare names directly to the server, causing ImagePullBackOff in Kubernetes.

Related Issue

Closes #786

Changes

  • Added openshell_core::image module with shared resolve_community_image() function and DEFAULT_COMMUNITY_REGISTRY constant
  • Refactored CLI resolve_from() to delegate image-name resolution to the shared function (Dockerfile detection stays CLI-only)
  • Added resolve_community_image() call in TUI's spawn_create_sandbox before building SandboxTemplate
  • Added 6 unit tests covering bare names, env override, full references, and trailing-slash trimming

Testing

  • cargo check passes for openshell-core, openshell-cli, openshell-tui
  • Unit tests added (cargo test -p openshell-core -- image::)
  • Local smoke test of TUI sandbox creation
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Extract shared resolve_community_image() into openshell-core so both
CLI and TUI expand bare sandbox names (e.g. "base") to full registry
references. Previously the TUI passed the bare name directly, causing
ImagePullBackOff in Kubernetes.

Closes #786
@johntmyers johntmyers requested a review from a team as a code owner April 9, 2026 22:43
@johntmyers johntmyers self-assigned this Apr 9, 2026
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Apr 9, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@johntmyers johntmyers merged commit 79e6f73 into main Apr 9, 2026
10 checks passed
@johntmyers johntmyers deleted the fix/786-tui-community-image-resolution branch April 9, 2026 23:11
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.

[Bug] TUI create sandbox doesn't resolve community image names like CLI does

2 participants