Skip to content

fix(nvue-client): Don't apply an unchanged config - #5790

Open
DrewBloechl wants to merge 1 commit into
dsx-ai-factory:release/v2.2from
DrewBloechl:drew/backport-pr5772-to-v2.2
Open

fix(nvue-client): Don't apply an unchanged config#5790
DrewBloechl wants to merge 1 commit into
dsx-ai-factory:release/v2.2from
DrewBloechl:drew/backport-pr5772-to-v2.2

Conversation

@DrewBloechl

Copy link
Copy Markdown
Contributor

This is a backport to v2.2 of #5772, whose original text follows:

Previously (#1965, #3047) we've tried to avoid updating the NVUE config via the API by detecting changes in the input data and skipping the apply logic when it's unchanged from the last time we updated it. However, there was still a gap in this logic since the agent process had to complete at least one NVUE config update before it would update its cache, so a newly-started agent process could still send NVUE an unchanged config, and now that we're actually polling the revision state (#4729), that turns out to be a big problem.

This branch adds additional logic to the NVUE client so that we also detect a no-change config revision by asking NVUE for its own diff between what we're planning to apply and what it's currently running. We then skip the apply operation if the diff indicates a no-op.

We do still potentially abandon one NVUE revision per agent process lifetime; I haven't convinced myself it's safe to try to remove the revision since HBN's OpenAPI spec flavor has patched this endpoint out. 😕

Related issues

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

This is a backport to v2.2 of dsx-ai-factory#5772, whose original text follows:

Previously (dsx-ai-factory#1965, dsx-ai-factory#3047) we've tried to avoid updating the NVUE config
via the API by detecting changes in the input data and skipping the
apply logic when it's unchanged from the last time we updated it.
However, there was still a gap in this logic since the agent process had
to complete at least one NVUE config update before it would update its
cache, so a newly-started agent process could still send NVUE an
unchanged config, and now that we're actually polling the revision state
(dsx-ai-factory#4729), that turns out to be a big problem.

This branch adds additional logic to the NVUE client so that we also
detect a no-change config revision by asking NVUE for its own diff
between what we're planning to apply and what it's currently running. We
then skip the apply operation if the diff indicates a no-op.

We do still potentially abandon one NVUE revision per agent process
lifetime; I haven't convinced myself it's safe to try to remove the
revision since HBN's OpenAPI spec flavor has patched this endpoint out.
😕
@DrewBloechl
DrewBloechl requested a review from a team September 4, 2026 02:59
@DrewBloechl
DrewBloechl requested a review from a team as a code owner September 4, 2026 02:59
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 561e4aec-3ed1-4639-8296-0c26c3e23cc4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

🔐 TruffleHog Secret Scan

No secrets or credentials found!

Your code has been scanned for 700+ types of secrets and credentials. All clear! 🎉

🔗 View scan details

🕐 Last updated: 2026-09-04 03:03:38 UTC | Commit: 3b29d68

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