Skip to content

tui: a created VM is shown in :vms, under the cursor - #1271

Merged
cdalar merged 1 commit into
mainfrom
tui-create-goes-to-vms
Oct 27, 2026
Merged

cdalar merged 1 commit into
mainfrom
tui-create-goes-to-vms

Conversation

@cdalar

@cdalar cdalar commented Oct 27, 2026

Copy link
Copy Markdown
Owner

What

After a VM is created from the TUI, it opens :vms with the new VM under the cursor. This applies wherever create was started: :images, :sizes or :vms. The state filter (0/1/2) and the / filter are cleared so neither hides the new VM. A failed create leaves you on the page you were on.

Testing

  • TestTUICreateGoesToVMs: a create from :images with the paused-only filter on lands on :vms with the new VM selected. A failed create stays on :images. The test fails without the change.
  • go test ./... passes, and golangci-lint is clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ba6Vc6KwaV9dTWbzYVKA78

After onctl create succeeds the tui goes to :vms with the new VM
selected and the state filter off, wherever create was asked from
(:images, :sizes). A failed create stays where it was.
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.14%. Comparing base (952fec9) to head (9ba74a1).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1271      +/-   ##
==========================================
+ Coverage   50.11%   50.14%   +0.02%     
==========================================
  Files          83       83              
  Lines        9761     9764       +3     
==========================================
+ Hits         4892     4896       +4     
+ Misses       4869     4868       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cdalar
cdalar merged commit 69cf3d9 into main Oct 27, 2026
13 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.

1 participant

⌂ 换网址