fix: add missing /api/logs route, remove debug logging
- Copy /api/logs route from main repo (was never synced) - Remove debug console.log statements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
c562f69efa
commit
3e89407a53
@@ -47,9 +47,7 @@ export function LocalKeyGate({ children }: LocalKeyGateProps) {
|
||||
}
|
||||
|
||||
const openApiKeySettings = () => {
|
||||
console.log('[LocalKeyGate] openApiKeySettings clicked');
|
||||
if (typeof window !== 'undefined') {
|
||||
console.log('[LocalKeyGate] Dispatching settings:open event');
|
||||
window.dispatchEvent(new CustomEvent('settings:open', { detail: { tab: 'apikeys' } }));
|
||||
}
|
||||
};
|
||||
@@ -82,10 +80,7 @@ export function LocalKeyGate({ children }: LocalKeyGateProps) {
|
||||
</button>
|
||||
<button
|
||||
style={{ ...buttonStyle, background: '#1f2933', color: '#e5e7eb' }}
|
||||
onClick={() => {
|
||||
console.log('[LocalKeyGate] Dismiss clicked');
|
||||
setHasKeys(true);
|
||||
}}
|
||||
onClick={() => setHasKeys(true)}
|
||||
>
|
||||
Dismiss
|
||||
</button>
|
||||
|
||||
@@ -115,12 +115,10 @@ export default function ThreePanelLayout() {
|
||||
// Listen for settings:open events (from LocalKeyGate)
|
||||
useEffect(() => {
|
||||
const handleSettingsOpen = (e: CustomEvent<{ tab?: SettingsTab }>) => {
|
||||
console.log('[ThreePanelLayout] settings:open event received', e.detail);
|
||||
setSettingsInitialTab(e.detail?.tab || 'apikeys');
|
||||
setShowSettings(true);
|
||||
};
|
||||
window.addEventListener('settings:open', handleSettingsOpen as EventListener);
|
||||
console.log('[ThreePanelLayout] settings:open listener registered');
|
||||
return () => window.removeEventListener('settings:open', handleSettingsOpen as EventListener);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user