Skip to content

fix(agents): Letta Code's server is never restarted and its exit stops the container, as #862 has it - #866

Merged
earakely-scale merged 1 commit into
mainfrom
edgararakelyan/letta-root-conf-862
Nov 21, 2026
Merged

earakely-scale merged 1 commit into
mainfrom
edgararakelyan/letta-root-conf-862

Conversation

@earakely-scale

@earakely-scale earakely-scale commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

Main's unit check fails on two tests (run 44874670161, unit (1/2)), both for letta-code:

  • test_the_a2a_server_is_never_restarted_and_the_follower_and_the_proxy_are[letta-code]: KeyError: 'startretries'
  • test_the_a2a_servers_exit_stops_supervisord_and_the_followers_or_the_proxys_doesnt[letta-code]

#769 gave Letta Code the env's clock with an exit listener of its own and no startretries=0. #862 made every clocked agent's supervisord config the same and tested it for each agent that takes the clock. The two landed side by side, so the shared tests now cover letta-code, whose config #862 didn't change.

  • letta-code/root.conf: the server's program gets startretries=0, and the exit listener is [FD-5916] fix(agents): a clocked agent's container exits when its server dies #862's, the same as OpenCode's and Claude Code's: the shell listener that logs why it stops the container, with its stderr kept.
  • tst/unit/agents/letta_code/test_server_exit.py goes. Its checks (the server is never restarted, the follower and the proxy are, the listener hears exits and fatal starts and stops supervisord only for the server) are what [FD-5916] fix(agents): a clocked agent's container exits when its server dies #862's shared tests check for every clocked agent, Letta Code included. It also assumed the old listener was Python.
  • Its one check the shared tests lacked, that the listener runs as root so it can stop supervisord, moves to the shared test.

Tests

tst/unit/agents/test_agent_clock_images.py and tst/unit/agents/letta_code: 61 pass, the two failing on main included.

Images

Letta Code's folder changed, so it gets a new image at the next release.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Letta Code now follows the same shutdown policy as the other clocked agents.

  • Letta Code stops its container and logs why when its server exits.

No actionable issues found. Tests were inspected but not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Server exits or fails to start] --> B[Exit listener]
    B --> C[Log shutdown reason]
    C --> D[Signal supervisord]
    D --> E[Container stops]
    F[Clock follower or proxy exits] --> G[Restart that process]
Loading

Reviews (1) · Last reviewed commit: "fix(agents): Letta Code's server is neve..." · Reviewed by Greptile

…s the container, as #862 has it

#769 gave Letta Code the clock with its own exit listener and no startretries=0, and #862, which
made every clocked agent's config one, landed beside it without Letta Code's: its two shared tests
fail on main for letta-code. Letta Code now has #862's program and listener, and its own listener
test, which those shared tests now cover, goes; the check that the listener runs as root moves to
the shared test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale
earakely-scale requested a review from a team as a code owner November 21, 2026 06:27
@earakely-scale
earakely-scale merged commit b9cd1af into main Nov 21, 2026
61 of 63 checks passed
@earakely-scale
earakely-scale deleted the edgararakelyan/letta-root-conf-862 branch November 21, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant