Skip to content

tui remember provider - #1277

Merged
cdalar merged 1 commit into
mainfrom
tui-remember-provider
Oct 27, 2026
Merged

cdalar merged 1 commit into
mainfrom
tui-remember-provider

Conversation

@cdalar

@cdalar cdalar commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Bare onctl without -p/ONCTL_CLOUD asked for the provider on every start. The provider picked in the tui (or switched to with :provider) is now saved to ~/.onctl/tui-provider, and the next tui opens on it.

  • -p and ONCTL_CLOUD still take precedence.
  • An unknown name in the file falls back to the providers list.
  • Only the tui reads it; other commands (onctl ls etc.) are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ba6Vc6w8AFAicZLgdHKAbv

Bare onctl without -p or ONCTL_CLOUD asked for the provider every time.
The one picked in the tui (or switched to with :provider) is now kept in
~/.onctl/tui-provider and the next tui opens on it; -p and ONCTL_CLOUD
still win, and an unknown name in the file falls back to asking.

Claude-Session: https://claude.ai/code/session_01Ba6Vc6w8AFAicZLgdHKAbv
@cdalar
cdalar merged commit e70503d into main Oct 27, 2026
12 checks passed
@cdalar
cdalar deleted the tui-remember-provider branch October 27, 2026 19:18
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.73%. Comparing base (a489bc2) to head (78b1826).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
cmd/tui.go 81.81% 4 Missing ⚠️
cmd/root.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1277      +/-   ##
==========================================
+ Coverage   50.67%   50.73%   +0.06%     
==========================================
  Files          83       83              
  Lines        9840     9863      +23     
==========================================
+ Hits         4986     5004      +18     
- Misses       4854     4859       +5     

☔ 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.

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

⌂ 换网址