Skip to content

[codex] Omit default config fields when persisting jobs and trials#2175

Merged
alexgshaw merged 2 commits into
mainfrom
codex/conditionally-omit-json-field
Jul 3, 2026
Merged

[codex] Omit default config fields when persisting jobs and trials#2175
alexgshaw merged 2 commits into
mainfrom
codex/conditionally-omit-json-field

Conversation

@alexgshaw

Copy link
Copy Markdown
Collaborator

Summary

Persist job and trial config.json files with exclude_defaults=True so generated runtime configs omit values that match model defaults.

Why

Runtime config files were including default empty values even though config init paths already serialize more compactly. The persisted job and trial configs should record the meaningful user-provided configuration while leaving defaults implicit.

Impact

This keeps normal Pydantic model serialization unchanged and only affects the write paths for job and trial config artifacts.

Validation

  • uv run ruff check --fix .
  • uv run ruff format .
  • uv run ty check
  • uv run pytest tests/unit/

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Enjoy a better diff viewing experience by clicking one of these URLs:

@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
harbor-docs Ready Ready Preview, Comment Jul 3, 2026 3:40am

Request Review

devin-ai-integration[bot]

This comment was marked as resolved.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

Open in Devin Review

Comment thread src/harbor/viewer/server.py
@alexgshaw alexgshaw merged commit f2b2f7f into main Jul 3, 2026
11 checks passed
@alexgshaw alexgshaw deleted the codex/conditionally-omit-json-field branch July 3, 2026 03:57
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.

1 participant