Repository navigation
MARSOHS-2171: stream MARS Exec output over SSE - #2042
Merged
SSharma-10 merged 2 commits intoOct 20, 2026
Merged
SSharma-10 merged 2 commits into
SSharma-10 merged 2 commits into
Conversation
Consume harness-api's Accept: text/event-stream exec path for default text output so long commands show progress live, while -o json keeps the buffered document for scripts. Fall back to JSON when the server does not speak SSE yet. Co-authored-by: Cursor <cursoragent@cursor.com>
Map harness-api EX15 GatewayTimeout and SSE capacity 429 responses to customer-facing titles/tips instead of generic unavailable/rate-limit copy. Co-authored-by: Cursor <cursoragent@cursor.com>
rmahato-code
force-pushed
the
hosted-agents/doctl-exec-sse-timeout
branch
from
October 20, 2026 12:25
930e57e to
9f7c846
Compare
SSharma-10
approved these changes
Oct 20, 2026
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.
JIRA MARSOHS-2171
Summary
doctl harness-runtime exectext output now consumes harness-api SSE (Accept: text/event-stream) so stdout/stderr appear as the guest produces them.-o jsonkeeps the existing bufferedExecInSandboxdocument for scripts.Depends on / pairs with the harness-api work:
Testing
Unit tests
Live testing done against local harness (
dev/upon :8080)Verified locally: unit tests green; streaming showed
onethentwotwo seconds apart;-o jsonreturned a buffered document; guest exit7propagated. Timeout against the current local guest image still hit the pre-EX15+30sbackstop until templates are rebuilt withSANDBOX_BUILD_TEMPLATES=1 ./dev/up.