Skip to content

Add managed policy for in-app updates - #35537

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e9c7074b516fe58385fdf7dc8420c0109c0c3df6
Jul 27, 2026
Merged

Add managed policy for in-app updates#35537
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e9c7074b516fe58385fdf7dc8420c0109c0c3df6

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 27, 2026

Copy link
Copy Markdown

Add managed policy for in-app updates

What changed

  • Add the stable, default-enabled in_app_updates requirements-only feature.
  • Allow administrators to disable in-app updates through [features] in requirements.toml.
  • Expose the policy through configRequirements/read and include it in the config schema.

Testing

  • Verify that in-app updates are enabled by default and disabled by the managed requirement.
  • Verify that configRequirements/read returns the configured policy.

## What changed

- Add the stable, default-enabled `in_app_updates` requirements-only feature.
- Allow administrators to disable in-app updates through `[features]` in `requirements.toml`.
- Expose the policy through `configRequirements/read` and include it in the config schema.

## Testing

- Verify that in-app updates are enabled by default and disabled by the managed requirement.
- Verify that `configRequirements/read` returns the configured policy.

GitOrigin-RevId: e9c7074b516fe58385fdf7dc8420c0109c0c3df6
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e9c7074b516fe58385fdf7dc8420c0109c0c3df6 branch from dd464e9 to 95637f7 Compare July 27, 2026 02:17

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd464e91cd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

.loader_overrides(LoaderOverrides::without_managed_config_for_tests())
.build()
.await?;
assert!(default_config.features.enabled(Feature::InAppUpdates));

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.

P1 Badge Remove the static default-value assertion

This assertion only restates the default_enabled: true value declared in the feature registry, so it will fail whenever that static default is intentionally changed without validating additional behavior. Retain the managed-requirement assertion below, which exercises the actual configuration logic, but remove this prohibited test of a statically defined value.

AGENTS.md reference: AGENTS.md:L29-L31

Useful? React with 👍 / 👎.

@copyberry
copyberry Bot merged commit 95637f7 into main Jul 27, 2026
13 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e9c7074b516fe58385fdf7dc8420c0109c0c3df6 branch July 27, 2026 02:18
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.