Repository navigation
fix(agents): Letta Code's server is never restarted and its exit stops the container, as #862 has it - #866
Merged
Conversation
…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>
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.
What changes
Main's
unitcheck fails on two tests (run 44874670161,unit (1/2)), both forletta-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 coverletta-code, whose config #862 didn't change.letta-code/root.conf: the server's program getsstartretries=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.pygoes. 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.Tests
tst/unit/agents/test_agent_clock_images.pyandtst/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


Confidence Score: 5/5
The PR appears safe to merge.Summary
Letta Code now follows the same shutdown policy as the other clocked agents.
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]Reviews (1) · Last reviewed commit: "fix(agents): Letta Code's server is neve..." · Reviewed by Greptile