Repository navigation
Conversation
allozaur
force-pushed
the
allozaur/feat/chat-only-build
branch
from
November 24, 2026 12:18
59eae48 to
1067294
Compare
llama-server refuses browser requests whose Origin does not match its own host unless --cors-origins allows it, and the Vite proxy forwarded the page's Origin (localhost:5173, or a LAN or Tailscale address). Loading a model, saving tools and /v1 calls failed with 403 under `vite dev`. The proxy now calls the server with its own Host and no Origin, WebSocket upgrades included. Sec-Fetch-Site still passes through, so requests from other sites stay refused. Assisted-by: Claude (Opus 5.5 Medium)
ROUTES holds the app's route ids, as page.route.id reports them, in place of hash strings and the separate *_ROUTE_ID constants. Every link and goto() goes through resolve() from $app/paths, which checks the route exists and returns its URL (#/models with the hash router). RouterService resolves the routes that take params: a chat, a project, a project's chat or new chat, and an extension's page. Tab links, sidebar items and extension navigation items carry the resolved URL's type, and checks for the current page compare page.route.id instead of the hash. svelte/no-navigation-without-resolve is on again, with type information for the app's modules so a URL typed as ResolvedPathname passes. Links that leave the app say so with rel="external"; the deep-link cleanups, which change the current page's own query, are marked as such. Assisted-by: Claude (Opus 5.5 Medium)
…tures Llama Chat showed its tools, MCP and agentic settings and ran the agentic loop for every server. Now it does so only for a llama-server that offers its built-in tools or its proxy, which --agent turns on together; the app reads this from /props and /tools. Without them it is a plain chat: a message and its reply, with reasoning when the model gives it. The chat store sends the classic request, the tools store has no tools and the MCP store connects to no server, so the tools menu, the working folder, the MCP entry and page, and the Tools and Agentic settings are gone. Tool calls in earlier conversations still display. The Show MCP setting moves from General to the Agentic settings, with the rest of what agent mode adds. VITE_PUBLIC_AGENTIC=false builds an app that is a plain chat for every server, and leaves Llama Harness's loop out of the bundle: the harness gets a ./trace entry with the phrasing alone, and Vite resolves the package to a small stub that re-exports it. A CI job builds the variant and checks the loop is not in it. Assisted-by: Claude (Opus 5.5 Medium)
allozaur
force-pushed
the
allozaur/feat/chat-only-build
branch
from
November 24, 2026 13:57
1067294 to
568bd48
Compare
allozaur
changed the base branch from
allozaur/refactor/llama-harness-package
to
allozaur/refactor/ui-typed-routes-and-dev-proxy
November 24, 2026 13:58
allozaur
force-pushed
the
allozaur/refactor/ui-typed-routes-and-dev-proxy
branch
from
November 24, 2026 14:10
f2bcb0e to
2497365
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Llama Chat becomes a plain chat, a message and its reply, unless llama-server is started with its agent features (
--agent). It can also be built as a chat-only app that never has them.Additional information
The fork's copy of upstream draft ggml-org#32949, which has the demos and the diagram. Part of the fork stack, above #125. The MCP layer (#61) still composes its extension by the build flag only, so on a server without agent features its sidebar entry and page stay while tools and server connections are off.
This changes what users see today: Llama Chat served by a llama-server without
--agent,--toolsor--ui-mcp-proxyno longer offers browser-side tools or MCP servers. Starting the server with--agentbrings everything back.The switch in the UI is a convenience, not a security boundary: llama-server refusing tools is what protects the machine.
Known gaps: the harness is still downloaded by a plain chat that runs on a full build (about 8 KB of 8.3 MB); only the chat-only build leaves it out. Sending a message was not tried in either mode.
What changed
agenticMode.enabled(stores/agentic-mode.svelte.ts) is true when the build has the agentic features and the server offers them. The app reads that from what llama-server already reports, with no server change:/propssays whether the proxy is on (cors_proxy_enabled), and/toolslists the built-in tools or answers 403.#/mcp-serversgoes to the start page), the Tools and Agentic settings sections and the Show MCP setting. The add button's tooltip no longer names tools or MCP.VITE_PUBLIC_AGENTIC=false npm run buildmakes an app that is a plain chat for every server, andnpm run dev:chat-onlyruns the dev server the same way. Llama Harness gets a./traceentry with the trace phrasing alone, and in this build Vite resolves@ggml-org/llama-harnessto a small stub that re-exports it, so the loop is not in the bundle.--agent.Testing
ui/apps/chat:npm run check,npm run lint,npm run check:design, the 933 unit tests, the 349 client tests and the 187 Storybook tests pass.chat-only-build.test.tscovers the build flag, agent mode for a server with and without tools or the proxy, the settings sections, the sidebar and the tools store.ui/lib/harness:npm run check,npm testandnpm run prepack(build and publint) pass with the new./traceentry.--agent: the add button offers files and prompts only, the sidebar has no MCP entry, and the only console error is the 403 from/tools;--agent: the tools menu, the working folder, the MCP page and the Tools and Agentic settings are there.Requirements
Claude (Opus 5.5 Medium)