[Bug]: When systemd-run fails, the cause is discarded and every Claude turn shows only "Provider turn failed." #26382
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- Run
t3 serveon Linux with the Claude provider, where agent scopes are on (systemd user manager available). - Fill
$XDG_RUNTIME_DIR(/run/user/<uid>) to 100%. In my case the Omarchy shell's Quickshell log filled it (omacom/omarchy#16677). Simple repro: fill the tmpfs with a large file. - Send a message on a thread whose Claude process has been closed, so T3 has to start a new one.
Expected behavior#
The thread's error names the launch failure, e.g. "Could not start Claude: systemd-run failed: Unit ... not found", and ideally hints that the runtime dir is full. Alternatively, T3 falls back to launching without a scope, as it already does when no systemd user manager is detected.
Actual behavior#
Every turn fails about 100 ms after it starts with only Provider error: Provider turn failed. (failure.class: transport_error, code: null), from every client (macOS and Android via T3 Connect).
systemd-run --user --scope ... fails before Claude starts, because systemd cannot write the transient unit file under /run/user/<uid>/systemd/transient. T3 discards its stderr. Nothing about it appears in server.trace.ndjson, the provider event log or boot-service.log. The only hint is a misleading orchestration-v2.claude-mcp-servers-unavailable warning for t3-code, which happens because setMcpServers is called on a process that never started.
The standalone CLI (claude -p) and a manual cold --resume of the same session both work, which made this hard to diagnose. I had to rerun T3's systemd-run wrapper by hand to see the error.
Related: #26082 (another case where the real cause is hidden behind "Provider turn failed").
Impact#
Blocks work completely
Version or commit#
0.1.3-nightly.20261027.3754
Environment#
t3 serve(run directly, not via the t3code.service unit) - Claude Code CLI 2.1.301 - Arch Linux (Omarchy 4.0.4), systemd 261.2 - Clients: macOS and Android via T3 Connect
Logs or stack traces#
The turn failure as stored in statev2.sqlite:
{"type":"error","status":"failed","title":"Provider error","failure":{"class":"transport_error","message":"Provider turn failed.","code":null,"retryable":null}}
The only warning in server.trace.ndjson:
orchestration-v2.claude-mcp-servers-unavailable {"threadId":"32636a13-...","servers":["t3-code"]}
The real error, seen only by rerunning the wrapper by hand:
$ systemd-run --user --scope --quiet --collect --slice=app-t3code-agents-<id>.slice -- true
Failed to start transient scope unit: Unit run-p402236-i4601228.scope not found.
$ df -h /run/user/1000
tmpfs 1.5G 1.5G 0 100% /run/user/1000
Screenshots, recordings, or supporting files#
No response
Workaround#
Free space in /run/user/<uid>. In my case: truncate -s0 /run/user/1000/quickshell/by-id/*/log.* (Omarchy's shell log, see omacom/omarchy#16677). systemd-run worked immediately, with no T3 restart.
lewistong(GitHub profile, opens in a new tab) added labelsbug
lewistong(GitHub profile, opens in a new tab) added labelsneeds-triage
Sign in to join this conversation.
Same root cause hit here, on a newer build. Adding evidence in case it helps.
Version: T3 Code v0.1.12, installed as the
t3code.servicesystemd user service. Clients: the mobile app via T3 Connect, plus desktop. Environment: Arch Linux (Omarchy), kernel 7.2.5, systemd 261.2, Claude Code CLI 2.1.329, Node 26.13.1.What happened: existing threads with a live Claude process kept working, but every new thread failed at once with:
In v0.1.12, systemd-run's stderr does reach
boot-service.log, which is progress compared with the original report:The UI and the stored failure still show only the generic message, though. There is no hint that systemd-run failed or that the runtime dir is full.
Cause:
/run/user/1000was 100% full (784M/784M). Nearly all of it was the Omarchy shell's Quickshell logs:quickshell/by-id/<id>/log.log(532 MB, still held open by the running shell) andlog.qslog(287 MB). This is the same cause as omacom/omarchy#16677. The rotatedboot-service.log.1held 86 earlier occurrences of the same stderr. While the dir was full, a baresystemd-run --user --scope truefailed about 1 in 20 times. Aftertruncate -s 0on both logs, usage dropped to 1% and 30 out of 30 attempts succeeded.Suggestions: (1) Show the systemd-run stderr in the thread's error. (2) When
XDG_RUNTIME_DIRis nearly full, name it in the error, or retry or fall back to launching without a scope.Triaged with
t3 triageby Claude Code (Claude Opus 5.5).