Skip to content

Stabilize Sovereign gateway, uptime, model drift, and thinking rendering#1

Merged
HexaField merged 5 commits intomainfrom
integration/sovereign-apr14-fixes
Apr 14, 2026
Merged

Stabilize Sovereign gateway, uptime, model drift, and thinking rendering#1
HexaField merged 5 commits intomainfrom
integration/sovereign-apr14-fixes

Conversation

@HexaField
Copy link
Copy Markdown
Owner

This PR bundles the April 14 Sovereign reliability fixes into one merge-ready branch.

Included:

  • fix live thinking work item boundaries in watched threads
  • harden launchd uptime and guarded reloads
  • fix OpenClaw gateway handshake/token precedence so backend reconnects cleanly
  • guard session-info against drift to unconfigured fallback models

Manual verification completed locally:

  • Sovereign service healthy under launchd
  • gateway backend connected (/api/system/watchdog ok)
  • watched-thread thinking items preserved as separate steps
  • guarded build/reload preserves uptime on failure

Notes:

  • full pnpm check still has unrelated pre-existing client TypeScript errors
  • package-level pnpm test discovery remains misconfigured in the workspace and is not introduced by this PR

Hex added 5 commits April 14, 2026 17:21
…cross restarts

Removes:
- resetGptSessionsToDefault() function and its boot-time invocation
- POST /api/models/reset-gpt endpoint
- Associated tests

Users' deliberate GPT model selections are no longer overwritten on server restart.
When /api/threads/:key/session-info returns a model not in the configured
model list (openclaw.json agents.defaults.models), it now rewrites the
session to the configured default model. This prevents silent drift to
GPT fallback models that aren't configured.

Implements specs/model-fallback-guard.md. Adds 4 test cases covering
drift rewrite, configured model passthrough, missing config, and missing
sessions data.
@HexaField HexaField merged commit f8734e9 into main Apr 14, 2026
1 check failed
@HexaField HexaField deleted the integration/sovereign-apr14-fixes branch April 14, 2026 11:05
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