Skip to content

[Feature]: Expose runHasUpdatedAt in openclaw code run --json output #133

Description

@zhyongrui

Summary
Add one stable top-level boolean field to openclaw code run --json named runHasUpdatedAt.

Problem to solve
Downstream tooling currently has to inspect updatedAt directly just to decide whether the workflow run includes this signal. That is awkward for simple JSON consumers.

Proposed solution
Update src/commands/openclawcode.ts so the JSON output includes runHasUpdatedAt: boolean.

  • true when updatedAt resolves to true or contains at least one entry
  • false otherwise

Add or adjust unit tests in src/commands/openclawcode.test.ts to cover both cases.

Impact
Affected users/systems/channels
Tools and scripts that read openclaw code run --json.

Severity
Low.

Frequency
Whenever downstream tooling needs a stable boolean instead of reimplementing nested truthiness or array-length checks.

Consequence
Without the derived boolean, simple consumers keep reimplementing the same nested truthiness or array-length check logic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions