Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

move Spotify and YouTube settings into the Brain section

[._.]/ Adam Eivye14a888acfed
diff --git a/client/src/App.jsx b/client/src/App.jsx
index 7155d0edf5..cbcdeb5702 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -321,6 +321,11 @@ export default function App() {
{/* Embeddings moved into Models with the rest of the model management
(#4728) — it picks a model, not a preference. */}
<Route path="settings/embeddings" element={<Navigate to="/models/embeddings" replace />} />
+ {/* Spotify/YouTube sync feed the activity Timeline, which lives in
+ Brain — moved alongside it so they show up in the same sidebar
+ section as the data they populate. */}
+ <Route path="settings/spotify" element={<Navigate to="/brain/spotify" replace />} />
+ <Route path="settings/youtube" element={<Navigate to="/brain/youtube" replace />} />
<Route path="settings/:tab" element={<Settings />} />
<Route path="api-reference" element={<Navigate to="/api-reference/catalog" replace />} />
<Route path="api-reference/:tab" element={<ApiExplorer />} />
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsx
index 8fbd712686..93c6f3a91e 100644
--- a/client/src/components/Layout.jsx
+++ b/client/src/components/Layout.jsx
@@ -177,6 +177,8 @@ export const NAV_PRESENTATION = {
'/brain/links': { icon: Link2 },
'/brain/memory': { icon: Database },
'/brain/notes': { icon: FileText },
+ '/brain/spotify': { icon: Music },
+ '/brain/youtube': { icon: Video },
'/rapid-reader': { icon: Zap },
'/songbook': { icon: ListMusic },
'/timeline': { icon: CalendarClock },
@@ -300,10 +302,8 @@ export const NAV_PRESENTATION = {
'/settings/security': { icon: Lock },
'/settings/sharing': { icon: Share2 },
'/settings/signal': { icon: MessageSquare },
- '/settings/spotify': { icon: Music },
'/settings/telegram': { icon: MessageSquare },
'/settings/voice': { icon: Mic },
- '/settings/youtube': { icon: Video },
'/digital-twin/accounts': { icon: Globe },
'/digital-twin/appearance': { icon: Camera },
'/ask': { icon: MessageCircle },
diff --git a/client/src/components/Layout.test.jsx b/client/src/components/Layout.test.jsx
index 5a7f4fed8b..4ba9c87e05 100644
--- a/client/src/components/Layout.test.jsx
+++ b/client/src/components/Layout.test.jsx
@@ -116,8 +116,8 @@ describe('Layout — manifest-derived sidebar structure', () => {
const settingsPaths = [
'/settings/general', '/settings/ai-assignments', '/settings/api-access', '/settings/autofixer',
'/settings/backup', '/settings/code-reviewers', '/settings/database', '/settings/features',
- '/settings/security', '/settings/sharing', '/settings/signal', '/settings/spotify',
- '/settings/telegram', '/settings/voice', '/settings/youtube', '/settings/mortalloom',
+ '/settings/security', '/settings/sharing', '/settings/signal',
+ '/settings/telegram', '/settings/voice', '/settings/mortalloom',
'/openclaw', '/prompts', '/ai'
];
for (const p of settingsPaths) {
diff --git a/client/src/components/brain/constants.js b/client/src/components/brain/constants.js
index 514e7bbb06..dd578b9745 100644
--- a/client/src/components/brain/constants.js
+++ b/client/src/components/brain/constants.js
@@ -1,4 +1,4 @@
-import { MessageSquare, Database, Calendar, Rss, Shield, Users, FolderKanban, Lightbulb, ClipboardList, Settings, Link2, BookOpen, Network, FileText, NotebookPen, Upload, Target, BookText, Music } from 'lucide-react';
+import { MessageSquare, Database, Calendar, Rss, Shield, Users, FolderKanban, Lightbulb, ClipboardList, Settings, Link2, BookOpen, Network, FileText, NotebookPen, Upload, Target, BookText, Music, Video } from 'lucide-react';
// Main navigation tabs.
// `fullBleed: true` marks a tab that fills the available height and owns its
@@ -15,6 +15,8 @@ export const TABS = [
{ id: 'feeds', label: 'Feeds', icon: Rss },
{ id: 'trust', label: 'Trust', icon: Shield },
{ id: 'import', label: 'Import', icon: Upload },
+ { id: 'spotify', label: 'Spotify', icon: Music },
+ { id: 'youtube', label: 'YouTube', icon: Video },
{ id: 'config', label: 'Config', icon: Settings }
];
diff --git a/client/src/components/settings/SpotifyTab.jsx b/client/src/components/brain/tabs/SpotifyTab.jsx
similarity index 97%
rename from client/src/components/settings/SpotifyTab.jsx
rename to client/src/components/brain/tabs/SpotifyTab.jsx
index c932392f37..ccc550eacf 100644
--- a/client/src/components/settings/SpotifyTab.jsx
+++ b/client/src/components/brain/tabs/SpotifyTab.jsx
@@ -1,19 +1,19 @@
import { useEffect, useState } from 'react';
import { useSearchParams } from 'react-router';
import { Save, Loader2, Music, Link2, LogOut, RefreshCw, CheckCircle2, AlertCircle } from 'lucide-react';
-import toast from '../ui/Toast';
-import BrailleSpinner from '../BrailleSpinner';
-import { formatDateTime } from '../../utils/formatters';
-import { useSyncSourceSettings } from '../../hooks/useSyncSourceSettings';
+import toast from '../../ui/Toast';
+import BrailleSpinner from '../../BrailleSpinner';
+import { formatDateTime } from '../../../utils/formatters';
+import { useSyncSourceSettings } from '../../../hooks/useSyncSourceSettings';
import {
getSpotifyStatus,
getSpotifyAuthUrl,
saveSpotifyCredentials,
clearSpotifyAuth,
syncSpotify,
-} from '../../services/api';
+} from '../../../services/api';
-// Settings → Spotify (#2152). Opt-in, machine-local ingestion of Spotify
+// Brain → Spotify (#2152). Opt-in, machine-local ingestion of Spotify
// listening history (recently-played) into the activity timeline. OFF by
// default — requires a user-created Spotify developer app + OAuth connection.
export function SpotifyTab() {
diff --git a/client/src/components/settings/YoutubeTab.jsx b/client/src/components/brain/tabs/YoutubeTab.jsx
similarity index 95%
rename from client/src/components/settings/YoutubeTab.jsx
rename to client/src/components/brain/tabs/YoutubeTab.jsx
index af497caf48..2ee4055c26 100644
--- a/client/src/components/settings/YoutubeTab.jsx
+++ b/client/src/components/brain/tabs/YoutubeTab.jsx
@@ -1,17 +1,17 @@
import { useState } from 'react';
import { Save, Loader2, MonitorPlay, RefreshCw, CheckCircle2, AlertCircle, ShieldQuestion } from 'lucide-react';
-import toast from '../ui/Toast';
-import FormField from '../ui/FormField';
-import BrailleSpinner from '../BrailleSpinner';
-import { formatDateTime } from '../../utils/formatters';
-import { useSyncSourceSettings } from '../../hooks/useSyncSourceSettings';
+import toast from '../../ui/Toast';
+import FormField from '../../ui/FormField';
+import BrailleSpinner from '../../BrailleSpinner';
+import { formatDateTime } from '../../../utils/formatters';
+import { useSyncSourceSettings } from '../../../hooks/useSyncSourceSettings';
import {
getYoutubeStatus,
getYoutubeSetupCheck,
syncYoutube,
-} from '../../services/api';
+} from '../../../services/api';
-// Settings → YouTube (#2153). Opt-in, machine-local ingestion of YouTube watch
+// Brain → YouTube (#2153). Opt-in, machine-local ingestion of YouTube watch
// history into the activity timeline. OFF by default — the YouTube watch-history
// API is gone, so this scrapes the signed-in history page in the managed browser.
// Requires being logged into YouTube there; the Takeout backfill on the Timeline
diff --git a/client/src/components/settings/SettingsTabsHeader.jsx b/client/src/components/settings/SettingsTabsHeader.jsx
index 826dc8a3d3..cae89de024 100644
--- a/client/src/components/settings/SettingsTabsHeader.jsx
+++ b/client/src/components/settings/SettingsTabsHeader.jsx
@@ -25,10 +25,8 @@ export const TABS = [
{ id: 'security', label: 'Security', to: '/settings/security' },
{ id: 'sharing', label: 'Sharing', to: '/settings/sharing' },
{ id: 'signal', label: 'Signal', to: '/settings/signal' },
- { id: 'spotify', label: 'Spotify', to: '/settings/spotify' },
{ id: 'telegram', label: 'Telegram', to: '/settings/telegram' },
- { id: 'voice', label: 'Voice', to: '/settings/voice' },
- { id: 'youtube', label: 'YouTube', to: '/settings/youtube' }
+ { id: 'voice', label: 'Voice', to: '/settings/voice' }
];
export default function SettingsTabsHeader({ activeTab }) {
diff --git a/client/src/pages/Brain.jsx b/client/src/pages/Brain.jsx
index 989f36a479..fd89126733 100644
--- a/client/src/pages/Brain.jsx
+++ b/client/src/pages/Brain.jsx
@@ -24,6 +24,8 @@ const DailyLogTab = lazy(() => import('../components/brain/tabs/DailyLogTab'));
const ConfigTab = lazy(() => import('../components/brain/tabs/ConfigTab'));
const ImportTab = lazy(() => import('../components/brain/tabs/ImportTab'));
const BrainGraph = lazy(() => import('../components/brain/tabs/BrainGraph'));
+const SpotifyTab = lazy(() => import('../components/brain/tabs/SpotifyTab'));
+const YoutubeTab = lazy(() => import('../components/brain/tabs/YoutubeTab'));
export default function Brain() {
const { tab } = useParams();
@@ -77,6 +79,10 @@ export default function Brain() {
return <TrustTab onRefresh={refetch} />;
case 'import':
return <ImportTab />;
+ case 'spotify':
+ return <SpotifyTab />;
+ case 'youtube':
+ return <YoutubeTab />;
case 'config':
return <ConfigTab onRefresh={refetch} />;
default:
diff --git a/client/src/pages/Settings.jsx b/client/src/pages/Settings.jsx
index 37223cf2f4..240b7cf093 100644
--- a/client/src/pages/Settings.jsx
+++ b/client/src/pages/Settings.jsx
@@ -14,8 +14,6 @@ import { MortalLoomTab } from '../components/settings/MortalLoomTab';
import { SecurityTab } from '../components/settings/SecurityTab';
import { SharingTab } from '../components/settings/SharingTab';
import { SignalTab } from '../components/settings/SignalTab';
-import { SpotifyTab } from '../components/settings/SpotifyTab';
-import { YoutubeTab } from '../components/settings/YoutubeTab';
import { VoiceTab } from '../components/settings/VoiceTab';
import SettingsTabsHeader from '../components/settings/SettingsTabsHeader';
@@ -49,8 +47,6 @@ export default function Settings() {
case 'security': return <SecurityTab />;
case 'sharing': return <SharingTab />;
case 'signal': return <SignalTab />;
- case 'spotify': return <SpotifyTab />;
- case 'youtube': return <YoutubeTab />;
case 'voice': return <VoiceTab />;
case 'telegram': return <TelegramTab />;
case 'mortalloom': return <MortalLoomTab />;
diff --git a/docs/features/product-surfaces.md b/docs/features/product-surfaces.md
index e50e1664ee..6b151e4e0e 100644
--- a/docs/features/product-surfaces.md
+++ b/docs/features/product-surfaces.md
@@ -123,7 +123,7 @@ Capture thoughts, build personal memory graphs, model your identity and taste, p
|---|---|---|---|
| **Brain Inbox & Notes** | `/brain/inbox`, `/brain/notes` | Universal thought capture, AI classification (People, Projects, Ideas, Admin), confidence scoring, note editor, and GTD reviews. | [Brain System](./brain-system.md) |
| **Brain Links & Repo Ingest** | `/brain/links` | Link vault with automated malware scanning, web clipping, and repo study triggers. | [Brain System](./brain-system.md) |
-| **YouTube Transcripts & Ingest** | `/brain/config`, `/settings/youtube` | Captures YouTube video transcripts (collapsing auto-caption repetition), downloads audio/video, mirrors markdown to Obsidian, and syncs watch history. | [Brain System](./brain-system.md) |
+| **YouTube Transcripts & Ingest** | `/brain/config`, `/brain/youtube` | Captures YouTube video transcripts (collapsing auto-caption repetition), downloads audio/video, mirrors markdown to Obsidian, and syncs watch history. | [Brain System](./brain-system.md) |
| **Feeds & RSS** | `/brain/feeds` | RSS/Atom feed reader, article capture, and knowledge extraction. | — |
| **Knowledge Graph** | `/brain/graph`, `/wiki/graph` | Interactive visual graph of entities, tags, and cross-document semantic links. | — |
| **Daily Log & Digest** | `/brain/daily-log`, `/brain/digest` | Daily markdown journaling, automated daily summaries, and weekly GTD-style reviews. | [Brain System](./brain-system.md) |
diff --git a/server/lib/navManifest.js b/server/lib/navManifest.js
index 506e463781..aecb61687b 100644
--- a/server/lib/navManifest.js
+++ b/server/lib/navManifest.js
@@ -185,6 +185,11 @@ const RAW_NAV_COMMANDS = [
{ id: 'nav.x', path: '/x', label: 'X', section: 'Comms', aliases: ['x', 'x-com', 'twitter', 'comms-x'], keywords: ['comms', 'social', 'reach', 'engagement', 'shadowban', 'diagnostics'] },
{ id: 'nav.timeline', path: '/timeline', label: 'Timeline', section: 'Brain', aliases: ['activity-timeline', 'activity', 'my-day', 'life-log', 'life-timeline'], keywords: ['human activity', 'life log', 'timeline', 'messages', 'calendar', 'history', 'what did i do', 'daily', 'import', 'backfill', 'whatsapp', 'spotify', 'discord', 'youtube'] },
{ id: 'nav.tribe', path: '/tribe', label: 'Tribe', section: 'Brain', aliases: ['tribe', 'relationships', 'relationship-manager', 'people'], keywords: ['dunbar', 'friends', 'family', 'network', 'social graph', 'care cadence'] },
+ // Moved out of Settings into Brain (alongside Timeline, which these feed) —
+ // ids kept stable since they're opaque, persisted palette-history values;
+ // only the path and section move, per the /models/* precedent above.
+ { id: 'nav.settings.spotify', path: '/brain/spotify', label: 'Spotify', section: 'Brain', previousPaths: ['/settings/spotify'], aliases: ['settings-spotify', 'spotify', 'spotify-settings', 'brain-spotify'], keywords: ['spotify', 'music', 'listening', 'recently played', 'oauth', 'timeline', 'taste', 'media'] },
+ { id: 'nav.settings.youtube', path: '/brain/youtube', label: 'YouTube', section: 'Brain', previousPaths: ['/settings/youtube'], aliases: ['settings-youtube', 'youtube', 'youtube-settings', 'brain-youtube'], keywords: ['youtube', 'watch history', 'video', 'scrape', 'takeout', 'timeline', 'taste', 'media'] },
{ id: 'nav.devtools.agents', path: '/devtools/agents', label: 'AI Agents', section: 'Dev Tools', aliases: ['ai-agents', 'devtools'] },
{ id: 'nav.browser', path: '/browser', label: 'Browser', section: 'Dev Tools', aliases: ['browser'] },
@@ -323,10 +328,8 @@ const RAW_NAV_COMMANDS = [
{ id: 'nav.settings.security', path: '/settings/security', label: 'Security', section: 'Settings', aliases: ['settings-security', 'login-password', 'auth-password', 'password-settings'], keywords: ['password', 'login', 'auth', 'sign-in', 'lock', 'tailnet', 'sidecar'] },
{ id: 'nav.settings.sharing', path: '/settings/sharing', label: 'Sharing', section: 'Settings', aliases: ['settings-sharing', 'sharing-settings'], keywords: ['display name', 'bio', 'attribution', 'identity', 'source'] },
{ id: 'nav.settings.signal', path: '/settings/signal', label: 'Signal', section: 'Settings', aliases: ['settings-signal', 'signal', 'signal-settings'], keywords: ['signal', 'signal desktop', 'messages', 'sqlcipher', 'chat', 'tribe', 'timeline', 'encrypted', 'keychain'] },
- { id: 'nav.settings.spotify', path: '/settings/spotify', label: 'Spotify', section: 'Settings', aliases: ['settings-spotify', 'spotify', 'spotify-settings'], keywords: ['spotify', 'music', 'listening', 'recently played', 'oauth', 'timeline', 'taste', 'media'] },
{ id: 'nav.settings.telegram', path: '/settings/telegram', label: 'Telegram', section: 'Settings', aliases: ['settings-telegram', 'telegram'] },
{ id: 'nav.settings.voice', path: '/settings/voice', label: 'Voice', section: 'Settings', aliases: ['settings-voice', 'voice', 'voice-settings'], keywords: ['mic', 'microphone', 'speech', 'tts', 'whisper', 'kokoro'] },
- { id: 'nav.settings.youtube', path: '/settings/youtube', label: 'YouTube', section: 'Settings', aliases: ['settings-youtube', 'youtube', 'youtube-settings'], keywords: ['youtube', 'watch history', 'video', 'scrape', 'takeout', 'timeline', 'taste', 'media'] },
{ id: 'nav.ambient', path: '/ambient', label: 'Ambient', section: 'Dev Tools', aliases: ['ambient', 'ambient-mode', 'ambient mode'], keywords: ['idle', 'background', 'display', 'screensaver', 'fullscreen'] },
{ id: 'nav.capabilities', path: '/capabilities', label: 'Capabilities', section: 'Dev Tools', aliases: ['capabilities', 'capability-map', 'integrations'], keywords: ['status', 'setup', 'checklist', 'connected systems', 'integrations', 'providers', 'health overview'] },
diff --git a/server/routes/spotify.js b/server/routes/spotify.js
index f9580fb7d5..3b00902b0e 100644
--- a/server/routes/spotify.js
+++ b/server/routes/spotify.js
@@ -33,12 +33,12 @@ router.get('/auth/url', asyncHandler(async (req, res) => {
}));
// OAuth redirect target — hit by a BROWSER redirect from Spotify, not the SPA —
-// so render every outcome as a redirect to the settings tab (which toasts the
-// oauthError param) instead of the JSON envelope the middleware would send.
+// so render every outcome as a redirect to the Brain Spotify tab (which toasts
+// the oauthError param) instead of the JSON envelope the middleware would send.
router.get('/oauth/callback', asyncHandler(async (req, res) => {
const settingsUrl = (error) => (error
- ? `/settings/spotify?oauthError=${encodeURIComponent(error)}`
- : '/settings/spotify?oauthConnected=1');
+ ? `/brain/spotify?oauthError=${encodeURIComponent(error)}`
+ : '/brain/spotify?oauthConnected=1');
const { code, error: authError } = req.query;
if (authError) return res.redirect(settingsUrl(String(authError)));
if (!code) return res.redirect(settingsUrl('Missing authorization code'));