Skip to content

fix(mecatui): persist ToolHive provider default - #2043

Merged
ChrisJBurns merged 1 commit into
mainfrom
fix-toolhive-default-provider
Oct 1, 2026
Merged

ChrisJBurns merged 1 commit into
mainfrom
fix-toolhive-default-provider

Conversation

@ChrisJBurns

Copy link
Copy Markdown
Contributor

Summary

  • Continue ToolHive provider setup into the deployment-default prompt instead of returning after external login.
  • Add a regression test for the reported option 5 workflow.
  • Document that guided setup offers default selection for ToolHive.

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR,
    and the in-PR plan declares **Expected tasks:** 1, a non-placeholder
    **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary
    interface change (None — rationale; workflow-only meta-changes may review process
    docs/skills here)
  • Spike / Routine / Cleanup — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Routine
  • Classification rationale: Restores the established provider-setup follow-up for the existing external ToolHive authentication method; no new durable decision or interface is introduced.
  • Decision record: None — this repair conforms to the existing unified provider-command and ToolHive default-selection decisions.
  • Human waiver of spine: No
  • Acceptance plan: N/A — Routine repair
  • Human decisions resolved and recorded: N/A — no new behavior decision
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: Routine work is acceptance-plan exempt.

Interface conformance

  • No interface changes. ToolHive setup now reaches the existing set-default workflow used by other provider authentication methods.

Issue relationship

No linked issue.

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Fast offline test suite (task test)
  • Pre-review race suite (task test:race)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Additional focused checks:

  • go test ./cmd/mecatui
  • go test -race ./cmd/mecatui
  • go test ./cmd/mecatui -run '^TestProviderSetupToolHiveMenuSelectionOffersDeploymentDefault$'

Repository-wide task test reaches and passes cmd/mecatui, then fails in unrelated microVM fixture/socket tests. task lint reports three existing SA4023 findings in cmd/mecatl-executor and internal/executionexecutor.

Changes

File Change
cmd/mecatui/provider_setup.go Route external ToolHive login through the existing default-selection follow-up.
cmd/mecatui/provider_setup_test.go Reproduce option 5 and verify the default update is persisted.
cmd/mecatui/provider_status.go Name the external authentication method shared by status and setup routing.
user-docs/features/choose-models.md Describe guided default selection after ToolHive login.

User-facing change

Choosing ToolHive in mecatui providers setup now offers to save ToolHive as the embedded deployment default. Accepting that prompt prevents configured API-key providers from winning the automatic provider-preference ladder.

Special notes for reviewers

The ToolHive configuration still controls availability and credential lifecycle. This change only restores the explicit default-selection prompt and persistence step after login.

@ChrisJBurns

Copy link
Copy Markdown
Contributor Author

/retest

@ChrisJBurns
ChrisJBurns merged commit 65894e5 into main Oct 1, 2026
63 of 64 checks passed
@ChrisJBurns
ChrisJBurns deleted the fix-toolhive-default-provider branch October 1, 2026 10:58
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 7, 2026
2 tasks

This branch was successfully deployed

1 active deployment
Preview — 778fda9a Deployed Oct 1, 2026 by vercel[bot]
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.

2 participants