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(ui): hide Show Tool Calls row until Show Agent Activity is on (#973)

Call White7840c21837b8
diff --git a/ui/src/components/settings/SettingsMessagingPage.tsx b/ui/src/components/settings/SettingsMessagingPage.tsx
index 60550924e..df5c3c131 100644
--- a/ui/src/components/settings/SettingsMessagingPage.tsx
+++ b/ui/src/components/settings/SettingsMessagingPage.tsx
@@ -508,24 +508,31 @@ export const SettingsMessagingPage: React.FC = () => {
}
/>
- <SettingsRow
- title={t('dashboard.showToolCalls')}
- description={t('dashboard.showToolCallsHint')}
- control={
- <ToggleSwitch
- // Default on: absent key reads as enabled (only an explicit false hides).
- enabled={config.ui?.show_tool_calls !== false}
- onClick={() => {
- const next = config.ui?.show_tool_calls === false;
- const nextConfig = {
- ...config,
- ui: { ...(config.ui || {}), show_tool_calls: next },
- };
- void persist(nextConfig, { ui: { show_tool_calls: next } });
- }}
- />
- }
- />
+ {/* Tool-call rows only surface inside the Activity panel, which renders
+ only when Show Agent Activity is on — so this child control has
+ nothing to affect while the parent is off. Display-only linkage: the
+ stored ``show_tool_calls`` value is left untouched, so re-enabling the
+ parent restores the user's prior choice. */}
+ {Boolean(config.ui?.show_agent_activity) && (
+ <SettingsRow
+ title={t('dashboard.showToolCalls')}
+ description={t('dashboard.showToolCallsHint')}
+ control={
+ <ToggleSwitch
+ // Default on: absent key reads as enabled (only an explicit false hides).
+ enabled={config.ui?.show_tool_calls !== false}
+ onClick={() => {
+ const next = config.ui?.show_tool_calls === false;
+ const nextConfig = {
+ ...config,
+ ui: { ...(config.ui || {}), show_tool_calls: next },
+ };
+ void persist(nextConfig, { ui: { show_tool_calls: next } });
+ }}
+ />
+ }
+ />
+ )}
</SettingsPanel>
<SettingsPanel