You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agent Mode has stopped working completely. Normal Chat Mode still works correctly with the same LLM providers and models. In Agent Mode, every prompt ends almost immediately with:
Agent session complete.
No actual agent response is produced and no tool execution takes place.
I reproduced this with both a local OpenAI-compatible server via Generic OpenAI and OpenRouter, so a provider- or model-specific failure appears unlikely.
I first noticed the problem immediately after updating AnythingLLM Desktop from v1.16.0 to v1.16.1. However, I cannot conclude that v1.16.1 itself is the sole cause:
downgrading to v1.16.0 did not restore Agent Mode;
v1.16.0 had previously worked on this same Mac for a substantial period;
v1.15.0 also failed when tested with the existing profile;
resetting Electron/Chromium UI state did not help;
v1.16.0 still failed after the complete AnythingLLM profile directory was moved aside and a new profile was created and configured from scratch.
The issue also reproduces with all Agent Skills disabled, zero MCP servers, and a new empty workspace.
Expected behavior
The Agent session should start, invoke the configured LLM, and return an agent response and/or execute tools as appropriate.
Actual behavior
The session terminates immediately with Agent session complete. The observable Agent execution does not start normally.
Backend logging
For a failed Agent Mode prompt, the backend logs the ordinary chat event:
[Event Logged] - sent_chat
However, there are no corresponding:
[AgentHandler] Start ...
[AgentLLM ...]
messages and no useful Agent-related exception in the backend or Electron logging.
The configured LLM itself is reachable. Normal local Chat Mode requests log, for example:
SELECT id, closed, createdAt
FROM workspace_agent_invocations
ORDER BY id DESCLIMIT5;
This shows that the invocation record is created, but it does not reach the normal database close path.
The public frontend displays Agent session complete. when the Agent WebSocket closes. The public server route initializes AgentHandler after a connection reaches the Agent WebSocket endpoint. Taken together with the missing AgentHandler start log and open invocation rows, the Agent WebSocket/session-start path is a plausible area to inspect. This does not establish a WebSocket handshake as the root cause: the observations do not distinguish a connection failure from a failure early in initialization.
Electron logging
I also started the Desktop application with Chromium/Electron logging enabled:
Renderer and backend startup logging worked. Around a failed Agent prompt, I saw the ordinary sent_chat event, but no subsequent AgentHandler/AgentLLM startup and no useful Agent- or WebSocket-related error.
Fresh-profile test
To exclude corruption or stale configuration, I moved the complete directory below out of the way:
~/Library/Application Support/anythingllm-desktop
I then launched v1.16.0, allowed it to create a new profile, and configured the application from scratch. Agent Mode failed identically.
This excludes the prior profile's SQLite database, workspaces, chats, workspace configuration, Local Storage, Session Storage, IndexedDB, and Electron/Chromium caches as necessary causes.
Version chronology
v1.16.0 was installed and Agent Mode had worked on this Mac.
I updated to v1.16.1.
I then noticed that Agent Mode no longer worked.
Downgrading to v1.16.0 did not restore it.
Resetting Electron/Chromium state did not restore it.
v1.16.0 with a completely fresh application profile still failed.
v1.15.0 was tested with the existing profile and also failed.
Therefore, the timing around the v1.16.1 update is notable, but I am deliberately not asserting a simple v1.16.1 regression.
I am aware that v1.16.1 includes #6191, which guards an Agent WebSocket send while the socket is still connecting. I cannot determine whether that history is related; this report persists on v1.16.1 and does not claim that specific mechanism as its cause.
Related but distinct reports
[BUG]: Agent invocation not working #5065 is the closest prior silent-start symptom: normal chat worked, the Agent session ended immediately, logs stopped at sent_chat, and no request reached the LLM. That report was on Ubuntu ARM64, and its reporter ultimately found another service occupying port 3001. My reproduction is macOS Desktop, persists with a completely fresh profile, and has no established port-conflict diagnosis.
How are you running AnythingLLM?
AnythingLLM desktop app on macOS / Apple Silicon.
What happened?
Agent Mode has stopped working completely. Normal Chat Mode still works correctly with the same LLM providers and models. In Agent Mode, every prompt ends almost immediately with:
No actual agent response is produced and no tool execution takes place.
I reproduced this with both a local OpenAI-compatible server via Generic OpenAI and OpenRouter, so a provider- or model-specific failure appears unlikely.
I first noticed the problem immediately after updating AnythingLLM Desktop from v1.16.0 to v1.16.1. However, I cannot conclude that v1.16.1 itself is the sole cause:
The issue also reproduces with all Agent Skills disabled, zero MCP servers, and a new empty workspace.
Expected behavior
The Agent session should start, invoke the configured LLM, and return an agent response and/or execute tools as appropriate.
Actual behavior
The session terminates immediately with
Agent session complete.The observable Agent execution does not start normally.Backend logging
For a failed Agent Mode prompt, the backend logs the ordinary chat event:
However, there are no corresponding:
messages and no useful Agent-related exception in the backend or Electron logging.
The configured LLM itself is reachable. Normal local Chat Mode requests log, for example:
With MCP disabled, the backend confirms:
Database evidence
After several failed Agent prompts, the newest rows in
workspace_agent_invocationswere created but remainedclosed = 0:Query:
This shows that the invocation record is created, but it does not reach the normal database close path.
The public frontend displays
Agent session complete.when the Agent WebSocket closes. The public server route initializesAgentHandlerafter a connection reaches the Agent WebSocket endpoint. Taken together with the missingAgentHandlerstart log and open invocation rows, the Agent WebSocket/session-start path is a plausible area to inspect. This does not establish a WebSocket handshake as the root cause: the observations do not distinguish a connection failure from a failure early in initialization.Electron logging
I also started the Desktop application with Chromium/Electron logging enabled:
Renderer and backend startup logging worked. Around a failed Agent prompt, I saw the ordinary
sent_chatevent, but no subsequentAgentHandler/AgentLLMstartup and no useful Agent- or WebSocket-related error.Fresh-profile test
To exclude corruption or stale configuration, I moved the complete directory below out of the way:
I then launched v1.16.0, allowed it to create a new profile, and configured the application from scratch. Agent Mode failed identically.
This excludes the prior profile's SQLite database, workspaces, chats, workspace configuration, Local Storage, Session Storage, IndexedDB, and Electron/Chromium caches as necessary causes.
Version chronology
Therefore, the timing around the v1.16.1 update is notable, but I am deliberately not asserting a simple v1.16.1 regression.
I am aware that v1.16.1 includes #6191, which guards an Agent WebSocket send while the socket is still connecting. I cannot determine whether that history is related; this report persists on v1.16.1 and does not claim that specific mechanism as its cause.
Related but distinct reports
sent_chat, and no request reached the LLM. That report was on Ubuntu ARM64, and its reporter ultimately found another service occupying port 3001. My reproduction is macOS Desktop, persists with a completely fresh profile, and has no established port-conflict diagnosis.workspace_agent_invocationsrows left atclosed = 0, but its backend reached[AgentHandler], injected parsed files, then crashed after substantial memory growth. It was fixed by Fix agent backend crash from oversized tool reranker query #6152 and shipped in v1.16.1. My reproduction uses a new empty workspace with all Agent Skills disabled and never logs[AgentHandler] Start ..., so that crash signature is absent.invalid_typetool-schema error in Agent Mode. No such error or Agent startup log appears here, so its failure signature is materially different.I can provide additional sanitized logs or run a targeted diagnostic if maintainers identify a specific Agent/session-start code path to inspect.
Are there known steps to reproduce?
Ping.orHello.Agent session complete.without an agent response or tool call.Additional reproductions:
LLM Provider & Model (if applicable)
Reproduced with:
http://localhost:8000/v1mtplx-qwen38-27b-optimized-speedmtplx-qwen36-35b-a3b-optimized-balancedeepseek/deepseek-v4-flash-0731Normal Chat Mode works with both provider paths; Agent Mode fails in the same way.
Embedder Provider & Model (if applicable)
Not relevant to this reproduction.