Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

1.2 KB
Raw Blame

Web UI Log Bugfixes

Background

Recent Web UI runs show repeated errors in ~/.vibe_remote/logs/vibe_remote.log, notably settings load failures and unclosed aiohttp client sessions during shutdown.

Goals

  • Load channel-based settings without errors or data loss.
  • Eliminate aiohttp client session leaks on shutdown.
  • Keep Slack routing and settings behavior consistent with V2 channel settings.

Solution Outline

  • Make SettingsManager read/write the new config.v2_settings.SettingsStore format (channels map), while preserving current APIs used by handlers.
  • Provide a best-effort close path for Slack async clients and OpenCode HTTP sessions during controller shutdown.
  • Add lightweight migration/compat logic where needed to avoid breaking older settings payloads.

Todo

  • Update SettingsManager to wrap SettingsStore for channel settings (show message types, custom CWD, routing).
  • Adjust SettingsManager serialization/deserialization to tolerate legacy payloads.
  • Add shutdown cleanup to close Slack AsyncWebClient/SocketModeClient sessions.
  • Verify OpenCode HTTP session is closed on shutdown.
  • Run minimal validation (launch service, check log for removed errors).