Skip to content

fix: renew Relay credentials and simplify manual dispatch - #3995

Merged
bobleer merged 7 commits into
openBitFun:mainfrom
bobleer:bob/dispatch-ui-account-renewal
Nov 18, 2026
Merged

bobleer merged 7 commits into
openBitFun:mainfrom
bobleer:bob/dispatch-ui-account-renewal

Conversation

@bobleer

@bobleer bobleer commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • The manual dispatch picker offers local execution and configured SSH hosts with an existing compatible CLI. Remove SSH installation, upgrade, account provisioning and daemon bootstrap. The Agent retains same-account target discovery and dispatch, and existing jobs retain their observer and control paths.
  • Desktop and CLI check their 30-day Relay device credential at startup and every seven days. They renew with the original signed-in host identity when under 15 days remain, and retry temporary failures after an hour. Older records with unknown issue times are checked on startup. An authenticated Relay connection supplies missing device IDs. Hosts recover a requested routing connection after rotation, and explicit logout revokes live predecessor credentials across processes.
  • IM bot chats and in-flight remote turns share a renewable 24-hour delegation. Renew on use at 12 hours. A device-list HTTP 401 refreshes and retries the read once.

Compatibility

Uses existing Relay APIs. A host with only a provisioned device token needs its own account login to renew. A rejected device credential requires sign-in again. Existing preparation journals, probe payloads and older target-list request shapes remain readable.

Verification

  • Built the macOS Desktop, CLI and application server with cargo check --locked -p openbitfun-cli -p openbitfun-desktop -p openbitfun-server.
  • Ran the dispatch Web UI and logger tests, the Web UI type check, focused Rust tests for credential renewal, bot routing, SSH transport, dispatch controller and Agent target selection, and the capability, i18n, repository hygiene and crate-boundary checks.
  • Exercised both Desktop and CLI credential exchange through the production client with isolated account and Relay loopback endpoints. Each host minted one device credential with the original device ID and key, persisted it, and skipped a second exchange on a fresh check. Separately verified delegated device-list HTTP 401 recovery and explicit logout from a stale host.
  • Verified read-only SSH target probing against an existing Linux CLI (1.0.10, dispatch protocol 6). Windows and Linux Desktop were not exercised interactively.

@bobleer
bobleer merged commit 15fd95d into openBitFun:main Nov 18, 2026
14 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