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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
feat(discord): make thread auto-archive duration configurable (default 7d)
qihan-bot394e32117663
diff --git a/config/v2_config.py b/config/v2_config.pyindex f2c3d4413..fd5b865dd 100644--- a/config/v2_config.py+++ b/config/v2_config.py@@ -52,11 +52,23 @@ class DiscordConfig(BaseIMConfig):guild_allowlist: Optional[List[str]] = Noneguild_denylist: Optional[List[str]] = Nonerequire_mention: bool = False+ # Auto-archive duration (minutes) for threads created by vibe-remote.+ # Discord only accepts 60, 1440, 4320, or 10080 (1h / 1d / 3d / 7d).+ # Defaults to 10080 (7d) to match Discord's longest native inactivity window+ # rather than aggressively archiving idle sessions after 1 hour.+ thread_auto_archive_minutes: int = 10080def validate(self) -> None:# Allow empty token for initial setupif self.bot_token and len(self.bot_token.strip()) < 10:raise ValueError("Invalid Discord bot token format")+ allowed_archive = {60, 1440, 4320, 10080}+ if self.thread_auto_archive_minutes not in allowed_archive:+ raise ValueError(+ "Invalid Discord thread_auto_archive_minutes "+ f"{self.thread_auto_archive_minutes!r}; must be one of "+ f"{sorted(allowed_archive)}"+ )@dataclassdiff --git a/modules/im/discord.py b/modules/im/discord.pyindex e6b0ff390..e14130a5d 100644--- a/modules/im/discord.py+++ b/modules/im/discord.py@@ -849,7 +849,10 @@ class DiscordBot(BaseIMClient):if snippet:snippet = snippet[:50]name = snippet or "vibe-remote session"- thread = await message.create_thread(name=name, auto_archive_duration=60)+ thread = await message.create_thread(+ name=name,+ auto_archive_duration=self.config.thread_auto_archive_minutes,+ )return threadexcept Exception as err:logger.warning("Failed to create thread: %s", err)