Skip to content

feat(roundhouse): add telemetron sidecar using detect command#47

Merged
royosherove merged 1 commit intomainfrom
feat/roundhouse-telemetron
May 6, 2026
Merged

feat(roundhouse): add telemetron sidecar using detect command#47
royosherove merged 1 commit intomainfrom
feat/roundhouse-telemetron

Conversation

@royosherove
Copy link
Copy Markdown
Member

Uses telemetron detect --mode roundhouse --force instead of the legacy TELEMETRON_MODE/SESSION_DIR env var approach. Auto-discovers roundhouse sessions and configures the secondary telemetron instance.

  • Install telemetron binary (no-env = binary-only install)
  • Run telemetron detect for auto-discovery + enrollment
  • Tier detection (same 3-method approach as openclaw pack)
  • --skip-telemetron flag + pack config support
  • Silent/bounded/fire-and-forget (never blocks main install)

Requires telemetron v0.5.0+ (detect command).

Uses `telemetron detect --mode roundhouse --force` instead of the
legacy TELEMETRON_MODE/SESSION_DIR env var approach. This auto-discovers
roundhouse sessions and configures the secondary telemetron instance.

- Install telemetron binary (no-env = binary-only install)
- Run `telemetron detect` for auto-discovery + enrollment
- Tier detection (same 3-method approach as openclaw pack)
- --skip-telemetron flag + pack config support
- Silent/bounded/fire-and-forget (never blocks main install)
@royosherove royosherove merged commit c8b0a54 into main May 6, 2026
3 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4012ff2f35

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +278 to +281
(
set +e
_telemetron_sidecar
) || true
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Move done marker ahead of telemetron sidecar

_telemetron_sidecar runs synchronously before write_done_marker, so a healthy Roundhouse install is not marked complete until all sidecar work finishes. In the slow/failure path this adds bounded but real delay (timeout 60 for install plus timeout 30 for detect, plus AWS probe timeouts), which contradicts the “never blocks main install” behavior documented in this script and can delay completion signaling for callers that wait on the marker.

Useful? React with 👍 / 👎.

Comment on lines +242 to +245
timeout 60 bash -c "
set -euo pipefail
curl --connect-timeout $connect_to --max-time $max_to -fsSL '$install_url' | bash
" || {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Redirect telemetron installer output to install log

The initial telemetron bootstrap (curl ... | bash) is executed without stdout/stderr redirection, so on first-time installs (when telemetron is missing) installer output can leak to the user terminal. This breaks the local contract in this section that sidecar execution is silent and logs exclusively to $INSTALL_LOG.

Useful? React with 👍 / 👎.

royosherove added a commit that referenced this pull request May 6, 2026
Follow-up to 3b71714 \u2014 the previous commit covered P2a (done marker)
but the P2b edit for redirecting the first-install bootstrap output
didn't land. Append '>>$log 2>&1' to the 'timeout 60 bash -c ...'
wrapper so the section's silent-only contract also holds on fresh
hosts where telemetron is missing.

Addresses the second half of Codex review on PR #47.
@royosherove
Copy link
Copy Markdown
Member Author

Triage of Codex review 4233777196 (PR already merged \u2014 addressed in follow-up #48):

P2 \u2014 done marker blocked by sidecar: AGREE, FIXED in 3b71714.
_telemetron_sidecar ran synchronously before write_done_marker, so pack completion could be delayed up to ~60s install + 30s detect + AWS probe timeouts \u2014 contradicting the section's "never blocks main install" contract. Moved write_done_marker "roundhouse" ahead of the sidecar subshell, with || true so sidecar failures can't gate the pack.

P2 \u2014 telemetron curl|bash bootstrap leaked to terminal: AGREE, FIXED in 1c68e56.
The timeout 60 bash -c "... curl ... | bash" wrapper had no stdout/stderr redirection, so progress lines reached the user terminal on first-install hosts. Appended >>"$log" 2>&1 to restore the silent/log-only contract.

Both live in #48: #48

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