Skip to content

fix(filing): emit active-hours refine issue on both fields#25673

Merged
siddseethepalli merged 1 commit into
mainfrom
swarm/2123/task-25648
Apr 15, 2026
Merged

fix(filing): emit active-hours refine issue on both fields#25673
siddseethepalli merged 1 commit into
mainfrom
swarm/2123/task-25648

Conversation

@siddseethepalli

@siddseethepalli siddseethepalli commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Address Codex P1 on #25648.

When only one of activeHoursStart/activeHoursEnd is set, filing's (and heartbeat's) superRefine previously emitted the validation issue on the null/missing side. The config loader's validateWithSchema repair deletes issue.path and retries — but deleting a missing/defaulted key cannot resolve the mismatch, so the loader would fall through to a full-config reset.

Fix: emit the issue on both field paths. validateWithSchema's delete step strips whichever side was actually set (no-op on the null side), and the retry re-validates with both fields falling back to their schema defaults. This preserves unrelated user settings that would otherwise be reset to defaults.

Heartbeat had the same buggy pattern — fixed it there too.

Added two loader-level regression tests covering both schemas: one for filing (defaults null/null, user sets one side to a number) and one for heartbeat (defaults 8/22, user sets one side to null). Both verify that an unrelated field (maxTokens: 4096) survives the repair, which proves no full-config reset occurred.


Open with Devin

@siddseethepalli siddseethepalli self-assigned this Apr 15, 2026
@siddseethepalli siddseethepalli merged commit 3e757f8 into main Apr 15, 2026
@siddseethepalli siddseethepalli deleted the swarm/2123/task-25648 branch April 15, 2026 02:05

@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 potential issue.

Open in Devin Review

Comment thread assistant/src/config/schemas/filing.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e50f8e4fed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread assistant/src/config/schemas/heartbeat.ts
@siddseethepalli

Copy link
Copy Markdown
Contributor Author

Addressed in #25685

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.

1 participant