Repository navigation
Conversation
Adds Start, Stop and Restart for the local managed server to the Connections status strip and Runtime card, plus a bounded inline log viewer shared with the Docker tab. - POST /api/connections/runtime/start and /stop run as background jobs on the shared job route. Restart on a stopped server with a free port now starts it, so Save and apply works while stopped. - port_owner() reports none, marm, other or unknown for the address the next start will use. Only a successful bind means free, and a listener MARM does not own is never stopped. - JobRegistry rejects a different kind of runtime job while one runs, and the worker repeats the ownership guard before acting. - GET /api/connections/runtime/logs tails runtime.log with an opaque cursor that detects rotation, cuts reads on line boundaries and bounds line length. - Console-launched starts terminate their own child and clear state if readiness fails. CLI starts keep their existing timeout behavior. Work in progress: the UI layout is still being reworked. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| } | ||
| if isinstance(exc, runtime_control.NotManaged): | ||
| body["command"] = exc.command | ||
| return JSONResponse(status_code=409, content=body) |
This branch has not been deployed
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.
Console Server Controls
The Connections tab can start, stop and restart the local managed MARM server, and shows bounded server logs inline. Opened as a draft: the backend is complete and tested, the UI layout is still being refined.
POST /api/connections/runtime/startand/stop, polled on the existing job route. Restart on a stopped server with a free port now starts it, so Save and apply works while the server is stopped.GET /api/connections/runtime/logstailsruntime.logwith a cursor that survives rotation, cuts on line boundaries and bounds line length. The same viewer replaces the Docker tab's log panel, capped at 2,000 lines and 256 KB.runtime.jsonif the server never becomes ready.marm-memory startkeeps its existing timeout behavior.tsc. A real-socket test covers a free port, a stale state file, a non-MARM HTTP listener and a non-HTTP listener. The full server suite and a manual Start and Stop in a browser are still to run.Reviewer note: no version bump. The changelog entry is marked unreleased, planned for v2.61.0.
🤖 Generated with Claude Code