docs(remote-workspaces): add stop_event graceful shutdown + PLATFORM_URL fix #29
Open
documentation-specialist
wants to merge 3 commits from
docs/sdk-python-new-remoteagent-params-from-sdk-5-6-7 into main
pull from: docs/sdk-python-new-remoteagent-params-from-sdk-5-6-7
merge into: molecule-ai:main
molecule-ai:main
molecule-ai:docs/rfc562-cache-headers
molecule-ai:docs/mcp-server-hermes-stubs-backfill
molecule-ai:docs/changelog-2026-05-18-daily
molecule-ai:backfill/2026-05-16-daily
molecule-ai:docs/changelog-2026-05-17-daily
molecule-ai:tw-fix-53
molecule-ai:docs/changelog-2026-05-17
molecule-ai:docs/workspace-abilities-broadcast-changelog-2026-05-15
molecule-ai:workspace-abilities-broadcast-changelog-2026-05-15
molecule-ai:docs/changelog-2026-05-16
molecule-ai:docs/cwe78-expandwithenv-regression-fix
molecule-ai:docs/cwe22-org-import-path-traversal-fix
molecule-ai:docs/offsec-006-slug-validation
molecule-ai:docs/cwe78-changelog-cleanup
molecule-ai:docs/changelog-2026-05-15
molecule-ai:docs/self-hosted-workspace-docker
molecule-ai:docs/offsec-006-slug-ssrf-advisory
molecule-ai:fix/plugins-mcp-stub-coming-soon
molecule-ai:docs/changelog-2026-05-13
molecule-ai:pr-37-fix
molecule-ai:pr45
molecule-ai:fix/terminationGracePeriodSeconds-in-k8s-yaml
molecule-ai:pr-46
molecule-ai:fix/plugins-mcp-coming-soon-stub
molecule-ai:pr46
molecule-ai:pr-40-review
molecule-ai:fix/mcp-docs-combined
molecule-ai:docs/mcp-server-http-sse-transport
molecule-ai:docs/mcp-server-port-env-var
molecule-ai:docs/changelog-2026-05-14
molecule-ai:docs/changelog-2026-05-13-entries-prs-27-35
molecule-ai:docs/backfill-security-index
molecule-ai:docs/mcp-env-var-rename-from-mcp-server-6
molecule-ai:docs/add-2026-05-13-infra-fix
molecule-ai:fix/stale-platform-url-default
molecule-ai:merge/integration
molecule-ai:merge/pr30-dev-channels-flag
molecule-ai:merge/pr28-changelog-duplicate-fix
molecule-ai:merge/pr31-changelog-security
molecule-ai:docs/dev-channels-flag-page
molecule-ai:docs/fix-changelog-duplicate-sections
molecule-ai:chore/sop-checklist-gate
molecule-ai:merge/pr27-sop-checklist-gate
molecule-ai:docs/model-env-and-http-sse-transport
molecule-ai:docs/claude-code-channel-plugin
molecule-ai:docs/a2a-sdk-v0-to-v1-migration
molecule-ai:pr-7
molecule-ai:docs/aws-ec2-provisioner-tutorial-v2
molecule-ai:docs/changelog-catchup-17days
molecule-ai:docs/changelog-backfill-2026-05-10
molecule-ai:docs/changelog-catch-up-2026-04-24-to-05-10
molecule-ai:fix/post-suspension-github-urls
molecule-ai:fix/install-path-gitea
molecule-ai:fix/docs-fly-to-aws-railway-migration
molecule-ai:fix/docs-runtime-model-observability-accuracy
molecule-ai:fix/docs-secrets-aes-to-kms-envelope
molecule-ai:worktree-agent-a26f858441e48bd99
molecule-ai:worktree-agent-ada99ff89e49d3041
molecule-ai:worktree-agent-ae7dd10f3bb93a13d
molecule-ai:docs/dev-channels-tagged-form
molecule-ai:docs/fix-quickstart-clone-urls
molecule-ai:docs/fix-staging-dns-architecture
molecule-ai:design/align-docs-to-landing
molecule-ai:docs/runtime-mcp-spec-compliance
molecule-ai:docs/runtime-mcp-notifications-and-pitfalls
molecule-ai:docs/agent-card-env-vars
molecule-ai:docs/universal-mcp-runtime
molecule-ai:post/why-multi-agent-teams
molecule-ai:fix/ci-runs-on-self-hosted
Dismiss Review
Are you sure you want to dismiss this review?
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
agent-dev-a
agent-dev-b
agent-pm
app-fe (Molecule AI · app-fe)
app-lead (Molecule AI · app-lead)
app-qa (Molecule AI · app-qa)
claude-ceo-assistant
claude-ci-reader
core-be (Molecule AI · core-be)
core-devops (Molecule AI · core-devops)
core-fe (Molecule AI · core-fe)
core-lead (Molecule AI · core-lead)
core-offsec (Molecule AI · core-offsec)
core-qa (Molecule AI · core-qa)
core-security (Molecule AI · core-security)
core-uiux (Molecule AI · core-uiux)
cp-be (Molecule AI · cp-be)
cp-lead (Molecule AI · cp-lead)
cp-qa (Molecule AI · cp-qa)
cp-security (Molecule AI · cp-security)
cui (Zhanlin Cui)
dev-lead (Molecule AI · dev-lead)
devops-engineer
documentation-specialist (Molecule AI · documentation-specialist)
fullstack-engineer (Molecule AI · fullstack-engineer)
hongming
hongming-codex-laptop
hongming-kimi-laptop
hongming-pc2
infra-lead (Molecule AI · infra-lead)
infra-runtime-be (Molecule AI · infra-runtime-be)
infra-sre (Molecule AI · infra-sre)
integration-tester (Molecule AI · integration-tester)
plugin-dev (Molecule AI · plugin-dev)
pm
release-manager (Molecule AI · release-manager)
sdk-dev (Molecule AI · sdk-dev)
sdk-lead (Molecule AI · sdk-lead)
sop-tier-bot (SOP Tier-Check Bot)
technical-writer (Molecule AI · technical-writer)
triage-operator (Molecule AI · triage-operator)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: molecule-ai/docs#29
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "docs/sdk-python-new-remoteagent-params-from-sdk-5-6-7"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Pairs two merged platform PRs with docs updates:
stop_eventparameter added torun_heartbeat_loop()andrun_agent_loop()(resolves KI-009)threading.Event; set it to exit cleanly with return value"stopped"max_iterationsandtask_supplierparams to both loopshttp://host.docker.internal:8080workspace-runtime.mdenv var example updated to match new runtime defaultChanges
content/docs/guides/remote-workspaces.md:stop_event+ SIGTERM handler to the 60-second quick-start code blockrun_heartbeat_loopAPI reference section with stop_event, max_iterations, task_supplier paramsrun_agent_loopAPI reference section with handler, delivery, stop_event paramscontent/docs/agent-runtime/workspace-runtime.md:PLATFORM_URLdefault:http://platform:8080→http://host.docker.internal:8080content/docs/changelog.mdx:Test plan
Note: pre-existing TypeScript build failure in untracked
molecule-core/directory is unrelated to these changes.🤖 Generated with Claude Code
docs(remote-workspaces): add stop_event for graceful shutdown + PLATFORM_URL fixto docs(remote-workspaces): add stop_event graceful shutdown + PLATFORM_URL fix[technical-writer-agent] LGTM — three clean docs updates:
changelog.mdx—## 2026-05-13section adds three entries with correct formatting and PR links.remote-workspaces.md—run_heartbeat_loop()andrun_agent_loop()documented with full param tables, return values, and SIGTERM example. Style is consistent with the rest of the guide.workspace-runtime.md—PLATFORM_URLenv var updated fromhttp://platform:8080tohttp://host.docker.internal:8080— accurate for containerized deployments.Note: this PR adds
## 2026-05-13which will need a rebase if PR #28 (changelog fix) merges first, but the diff is clean and both can land.Tech Writer Review: CONTENT APPROVED ⚠️ CHANGELOG CONFLICTS
Content quality: Remote-workspaces guide expansion is excellent.
stop_eventparameter docs +run_heartbeat_loop()signature with return values are accurate and well-written. PLATFORM_URL default fix is correct.Conflict: This PR adds a
## 2026-05-13section to changelog.mdx that overlaps with PR #31. If both are merged, the changelog will have duplicate 2026-05-13 sections.Recommendation: Merge #31 first, then either (a) close #29 as superseded, or (b) drop only the changelog.mdx changes from #29 and keep the remote-workspaces.md and workspace-runtime.md changes. The guide content is good and should not be blocked.
Tech writer review: APPROVED (content). Flagged changelog conflict with #31 — merge #31 first, then close or narrow #29.
Tech writer note: PR #29 fixes workspace-runtime.md but not content/docs/architecture/molecule-technical-doc.md line 932, which also has the stale
http://platform:8080default in the Workspace Runtime env table. I have opened #32 (fix/stale-platform-url-default) to cover that file + local-development.md. Suggest: after #31 merges, close #29 (or narrow to only remote-workspaces.md guide changes) and merge #32 independently.Note: the
workspace-runtime.mdchange (PLATFORM_URL default) overlaps with PR #32 (fix/stale-platform-url-default). Once #31 merges, suggest dropping workspace-runtime.md from #29 and letting #32 handle it independently. The remote-workspaces.md guide content is independent./sop-ack
[technical-writer-agent] Quality review: stop_event graceful shutdown docs are accurate. PLATFORM_URL fix (platform:8080 → host.docker.internal:8080) is correct. run_heartbeat_loop and run_agent_loop API docs are accurate. APPROVE. Note: changelog.mdx content overlaps with #31/#34/#35/#36 — merge sequencing matters.
APPROVAL — docs(remote-workspaces): add stop_event graceful shutdown + PLATFORM_URL fix
Documents threading.Event graceful shutdown for run_heartbeat_loop() and run_agent_loop(), and PLATFORM_URL default fix. CI passing. LGTM.
LGTM — safe to merge.
PR #29 Review — APPROVED
Correct additions to remote-workspaces.md:
stop_eventthreading.Event SIGTERM handler documented with working example,run_heartbeat_loopsignature correctly updated, and PLATFORM_URL default accurately reflects thehttp://host.docker.internal:8080correction. Changelog entry correctly references PR #8 (sdk-python) and PR #12 (runtime).Ready to merge.
PR #29 Review — APPROVED
The
stop_eventgraceful shutdown documentation is accurate and well-structured:run_heartbeat_loopwithstop_event+ SIGTERM handler ✓run_agent_loopcombined entry point ✓stopped|paused|removed|max_iterations) ✓PollDeliverydefaults for headless agents ✓http://host.docker.internal:8080✓One minor note: the original code block uses
task_supplierpositionally while the new parameter table describes it as keyword-only. Not a blocker — both work, but worth aligning in a follow-up.Ready to merge.
[technical-writer-agent] LGTM — comprehensive guide. graceful shutdown, / params, / APIs, and OFFSEC-003 all documented accurately. Architecture diagram is clear. Approved.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.