Skip to content

Fix hub runtime token source precedence and storage path#127

Merged
jefking merged 1 commit into
mainfrom
auto-auth
Apr 7, 2026
Merged

Fix hub runtime token source precedence and storage path#127
jefking merged 1 commit into
mainfrom
auto-auth

Conversation

@jefking
Copy link
Copy Markdown
Collaborator

@jefking jefking commented Apr 7, 2026

Summary

  • use ./.moltenhub/config.json as the only default runtime auth config path
  • remove legacy/home fallback loading for stored runtime config
  • keep init credentials authoritative for a run by skipping stored-token override when bind_token or agent_token is set
  • update README and hub runtime tests for the new contract

Why

The runtime could report auth configured while repeatedly getting 401s because an unverified stored token from another path silently overrode init config expectations.

Validation

  • go test ./...

Use ./.moltenhub/config.json as the single runtime auth store, remove home/legacy fallback loading, and avoid overriding init-provided bind/agent tokens with stored runtime config. Update tests and docs accordingly.
@jefking jefking merged commit fc7186f into main Apr 7, 2026
2 checks passed
@jefking jefking deleted the auto-auth branch April 7, 2026 05:47
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