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.

fix(config): default duration display off

cyh60795dd965bc
diff --git a/config/v2_compat.py b/config/v2_compat.py
index 0f4ae43a5..d79a6b504 100644
--- a/config/v2_compat.py
+++ b/config/v2_compat.py
@@ -48,7 +48,7 @@ class AppCompatConfig:
wechat: Optional[WeChatConfig] = None
codex: Optional[CodexCompatConfig] = None
opencode: Optional[OpenCodeCompatConfig] = None
- show_duration: bool = True
+ show_duration: bool = False
include_user_info: bool = True
reply_enhancements: bool = True
default_backend: str = "opencode"
diff --git a/config/v2_config.py b/config/v2_config.py
index b923a94e2..7103dbe31 100644
--- a/config/v2_config.py
+++ b/config/v2_config.py
@@ -194,7 +194,7 @@ class V2Config:
ui: UiConfig = field(default_factory=UiConfig)
update: UpdateConfig = field(default_factory=UpdateConfig)
ack_mode: str = "typing"
- show_duration: bool = True # Show task duration in result messages
+ show_duration: bool = False # Show task duration in result messages
include_user_info: bool = True # Prepend user identity to agent messages
reply_enhancements: bool = True # Enable file sending & quick-reply buttons
language: str = "en" # Global language setting (see vibe/i18n)
@@ -347,9 +347,9 @@ class V2Config:
if ack_mode not in {"reaction", "message", "typing"}:
raise ValueError("Config 'ack_mode' must be 'reaction', 'message', or 'typing'")
- show_duration = payload.get("show_duration", True)
+ show_duration = payload.get("show_duration", False)
if not isinstance(show_duration, bool):
- show_duration = True
+ show_duration = False
include_user_info = payload.get("include_user_info", True)
if not isinstance(include_user_info, bool):
diff --git a/skills/use-vibe-remote/SKILL.md b/skills/use-vibe-remote/SKILL.md
index 5e4ad97e0..7850d15c3 100644
--- a/skills/use-vibe-remote/SKILL.md
+++ b/skills/use-vibe-remote/SKILL.md
@@ -2,7 +2,7 @@
name: use-vibe-remote
slug: use-vibe-remote
description: Safely inspect and modify local Vibe Remote configuration, routing, runtime settings, scheduled tasks, and operational state.
-version: 0.1.2
+version: 0.1.3
---
# Use Vibe Remote
@@ -105,7 +105,7 @@ Current top-level structure:
"ui": {},
"update": {},
"ack_mode": "reaction",
- "show_duration": true,
+ "show_duration": false,
"include_user_info": true,
"reply_enhancements": true,
"language": "en"
diff --git a/tests/test_api_save_config_merge.py b/tests/test_api_save_config_merge.py
index 8341273ee..9ec34aea3 100644
--- a/tests/test_api_save_config_merge.py
+++ b/tests/test_api_save_config_merge.py
@@ -98,6 +98,17 @@ def test_save_config_merges_partial_payload(monkeypatch, tmp_path):
assert updated.runtime.default_cwd == "/tmp/workdir"
+def test_save_config_defaults_show_duration_to_false_for_new_config(monkeypatch, tmp_path):
+ monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))
+
+ payload = _full_config_payload()
+ payload.pop("show_duration")
+
+ created = api.save_config(payload)
+
+ assert created.show_duration is False
+
+
def test_save_config_accepts_typing_ack_mode(monkeypatch, tmp_path):
monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))
diff --git a/ui/src/components/Wizard.tsx b/ui/src/components/Wizard.tsx
index e88d9d0d3..00daea323 100644
--- a/ui/src/components/Wizard.tsx
+++ b/ui/src/components/Wizard.tsx
@@ -100,7 +100,7 @@ const buildConfigPayload = (data: any) => {
update: data.update,
// Preserve ack_mode
ack_mode: data.ack_mode,
- show_duration: data.show_duration,
+ show_duration: data.show_duration ?? false,
// Preserve language
language: data.language,
};
@@ -110,7 +110,7 @@ export const Wizard: React.FC = () => {
const { t } = useTranslation();
const api = useApi();
const [currentStep, setCurrentStep] = useState(0);
- const [data, setData] = useState<any>({});
+ const [data, setData] = useState<any>({ show_duration: false });
const [loaded, setLoaded] = useState(false);
const steps = React.useMemo(() => {
diff --git a/ui/src/components/steps/Summary.tsx b/ui/src/components/steps/Summary.tsx
index 9b2f7c77b..aa89d8e90 100644
--- a/ui/src/components/steps/Summary.tsx
+++ b/ui/src/components/steps/Summary.tsx
@@ -426,7 +426,7 @@ const buildConfigPayload = (data: any) => {
} : undefined,
// Preserve ack_mode
ack_mode: data.ack_mode,
- show_duration: data.show_duration,
+ show_duration: data.show_duration ?? false,
// Preserve language
language: data.language,
};