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
fix: Apply custom working directory to new Claude sessions
cyhhaoa7a45b596cd3
diff --git a/core/controller.py b/core/controller.pyindex e8b059977..e7e06a445 100644--- a/core/controller.py+++ b/core/controller.py@@ -206,10 +206,15 @@ Use the buttons below to manage your Claude Code sessions, or simply type any me# Check if we have a saved Claude session_id to resumeclaude_session_id = self.settings_manager.get_claude_session_id(context.user_id, session_id)+ # Get user's custom CWD from settings if available+ settings_key = self._get_settings_key(context)+ custom_cwd = self.settings_manager.get_custom_cwd(settings_key)+ working_directory = custom_cwd if custom_cwd else self.config.claude.cwd+# Create new Claude SDK client with resume if availableoptions = ClaudeCodeOptions(permission_mode=self.config.claude.permission_mode,- cwd=self.config.claude.cwd,+ cwd=working_directory,system_prompt=self.config.claude.system_prompt,# Use resume instead of continue_conversationresume=claude_session_id if claude_session_id else None@@ -331,16 +336,6 @@ Use the buttons below to manage your Claude Code sessions, or simply type any me# Get sessionsession = await self.session_manager.get_or_create_session(context.user_id, context.channel_id)- # Get user's CWD from settings if available- settings_key = self._get_settings_key(context)- custom_cwd = self.settings_manager.get_custom_cwd(settings_key)-- # Update Claude options with custom CWD- if custom_cwd:- self.claude_client.options.cwd = custom_cwd- else:- self.claude_client.options.cwd = self.config.claude.cwd-# Get the client for this sessionclient = session.claude_clients[session_id]