Skip to content

agent: add structured logs for unknown status fallback#21

Merged
RussellLuo merged 1 commit intoOpenCSGs:mainfrom
GatewayJ:codex/agent-status-unknown-logs
Apr 29, 2026
Merged

agent: add structured logs for unknown status fallback#21
RussellLuo merged 1 commit intoOpenCSGs:mainfrom
GatewayJ:codex/agent-status-unknown-logs

Conversation

@GatewayJ
Copy link
Copy Markdown
Contributor

Summary

  • add structured warning logs when hydrateAgentStatus downgrades agent status to unknown
  • cover all fallback stages: validate_name, ensure_runtime, resolve_runtime_home, resolve_agent_box, and read_box_info
  • log consistent key-value fields: agent_id, agent_name, agent_box_id, stage, error

Testing

  • gofmt -w internal/agent/service.go
  • go test ./internal/agent -run TestDoesNotExist

@RussellLuo RussellLuo merged commit fa448d6 into OpenCSGs:main Apr 29, 2026
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.

2 participants