fix: complete HoloLake Agent and Forgejo desktop runtime

This commit is contained in:
冰朔 2026-08-08 10:39:18 +08:00
commit 46bdd0ca73
15 changed files with 1217 additions and 638 deletions

View file

@ -9,6 +9,7 @@ import AgentChat from './components/AgentChat';
type View = 'editor' | 'history';
export default function App() {
const agentApiBase = window.location.protocol === 'file:' ? 'http://127.0.0.1:3890' : '';
const [tree, setTree] = useState<DocTreeNode[]>([]);
const [currentDoc, setCurrentDoc] = useState<DocContent | null>(null);
const [currentPath, setCurrentPath] = useState<string>('');
@ -181,7 +182,7 @@ export default function App() {
{/* Agent 面板 */}
{agentPanelOpen && (
<aside className="kb-agent-panel">
<AgentChat apiBase="" onDocSelect={openDoc} />
<AgentChat apiBase={agentApiBase} onDocSelect={openDoc} />
</aside>
)}
</div>