Skip to content

Open Harness Server subcommands#1853

Open
SSharma-10 wants to merge 21 commits into
mainfrom
feat/agents-subcommands
Open

Open Harness Server subcommands#1853
SSharma-10 wants to merge 21 commits into
mainfrom
feat/agents-subcommands

Conversation

@SSharma-10

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread commands/agents.go
Comment thread commands/agents.go Outdated

@logwolvy logwolvy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Assuming, relevant godo changes for sending agent spec yaml are done.
Please address the comments and we should be good to merge.

Comment thread commands/agents.go Outdated
Comment thread commands/agents.go
Comment thread commands/agents.go Outdated
SSharma-10 and others added 6 commits June 3, 2026 16:52
doctl agent attach connected but printed nothing: the harness-api SSE
stream emits the SPI canonical event envelope (type/data/timestamp/
tenant_id, dot-separated event names) while vendored godo decoded
kind/payload/at/team_id, so every event fell through renderEvent.

- godo HostedAgentEvent: decode the SPI wire via UnmarshalJSON and switch
  the HostedAgentEventKind constants to the dot-separated SPI names.
- godo ErrorResponse: also read the nested {"error":{code,message}}
  envelope so failed calls show the server's reason, not a bare status.
- agents: align event payload structs/rendering and HITL tracking to the
  SPI data shapes, and acknowledge each submit with its run id so the
  agent's startup latency isn't mistaken for a hang (which caused
  duplicate submits).
- tests for the wire decode, rendering, nested-error surfacing, and ack.

The vendored godo edits mirror the fix being upstreamed to
digitalocean/godo and are in-tree until godo is re-vendored.

Co-authored-by: Cursor <cursoragent@cursor.com>
logwolvy
logwolvy previously approved these changes Jun 8, 2026

@logwolvy logwolvy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I will be raising a PR for stream related fixes on doctl and godo.

Comment thread internal/deviceid/deviceid_darwin.go
Comment thread internal/deviceid/deviceid_windows.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants