Cloud Agent - Add kilo cloud command for running asynchronous cloud agent tasks - #11849
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental updateSince the last review ( Files Reviewed (2 files)
Previous Review Summaries (7 snapshots, latest commit fc31b4e)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit fc31b4e)Status: No Issues Found | Recommendation: Merge Incremental updateThe only change since the last review ( Files Reviewed (1 file)
Previous review (commit f142611)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Resolved since last review
Files changed since last review (4 files)
Fix these issues in Kilo Cloud Previous review (commit 6cd4f14)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (30 files)
Fix these issues in Kilo Cloud Previous review (commit 3434edd)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (7 files)
Fix these issues in Kilo Cloud Previous review (commit e029db3)Status: No Issues Found | Recommendation: Merge Files Reviewed (9 files)
Previous review (commit 76a72f2)Status: 10 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (32 files)
Fix these issues in Kilo Cloud Previous review (commit e67d67d)Status: 11 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (30 files)
Reviewed by claude-sonnet-5 · Input: 32 · Output: 12K · Cached: 934.5K Review guidance: REVIEW.md from base branch |
828cdab to
76a72f2
Compare
…t tasks - Reject stream-ticket redirects and preserve retries for malformed 403/404 bodies - Reject abnormal WebSocket closes instead of treating them as completion - Redact ticket-bearing streamUrl from admission and send output - Report post-admission stream failures as a JSONL error event while preserving the successful admission exit status - Cancel oversized response bodies before throwing - Relax cloud agent response schemas to accept arbitrary bounded strings instead of strict enums, remove SSRF host restrictions from repository URL validation, and drop low-value tests whose coverage is already provided by command, transport, and stream-ticket tests
Serialize stream writes through a flush-aware chain and cap queued output at 8 MB, failing the stream loudly when the stdout consumer cannot keep up instead of growing process memory without bound. Drain pending writes before resolving so received lines are never truncated or a late write failure silently swallowed.
|
@eshurakov Found one thing worth double checking, could you take a look? Otherwise, all looks good. |
Add the
kilo cloudcommand for running asynchronous Cloud Agent tasks with repository, model, mode, and organization defaults. Includeskilo cloud start --streamto print admission output and stream WebSocket events as JSONL until the server closes the connection. Registers the command in the CLI setup, adds supporting cloud modules, tests, docs, and a changeset.Manual testing
Verified end-to-end against the production Cloud Agent backend using a locally built binary from this branch (
bun run script/build.ts --single --skip-install, version0.0.0-lucky-look-202607211425):kilo cloud start— repository auto-inferred asKilo-Org/kilocodefrom theoriginremote,--branch lucky-lookpassed explicitly,--model kilo/moonshotai/kimi-k3accepted after validation against the org model catalog; session admitted and queuedkilo cloud status— observed the fullqueued→running→completedlifecycle (~2.4 min,completionSource: idle_reconciliation)kilo cloud result— assistant responded exactly as promptedkilo cloud send— follow-up prompt on the same session admitted and completed successfullyTest session:
agent_4b8ad310-b9e6-490d-840d-e945449273da