Skip to content

feat: convert soft_limit to limit#22048

Merged
jakehwll merged 34 commits intomainfrom
jakehwll/1281-remove-hard-soft-limit
Feb 20, 2026
Merged

feat: convert soft_limit to limit#22048
jakehwll merged 34 commits intomainfrom
jakehwll/1281-remove-hard-soft-limit

Conversation

@jakehwll
Copy link
Contributor

@jakehwll jakehwll commented Feb 11, 2026

In relation to internal#1281

Remove the soft_limit field from the Feature type and simplify license limit handling. This change:

  • Removes the soft_limit field from the API and SDK
  • Uses the soft limit value as the single limit value in the UI and API
  • Simplifies warning logic to only show warnings when the limit is exceeded
  • Updates tests to reflect the new behavior
  • Updates the UI to use the single limit value for display

Copy link
Contributor Author

jakehwll commented Feb 11, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@jakehwll jakehwll changed the title feat: convert soft_limit to limit feat!: convert soft_limit to limit Feb 16, 2026
@jakehwll jakehwll marked this pull request as ready for review February 16, 2026 02:51
@github-actions github-actions bot added the release/breaking This label is applied to PRs to detect breaking changes as part of the release process label Feb 16, 2026
@jakehwll jakehwll changed the title feat!: convert soft_limit to limit feat: convert soft_limit to limit Feb 16, 2026
@github-actions github-actions bot removed the release/breaking This label is applied to PRs to detect breaking changes as part of the release process label Feb 16, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

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: 2783f8b515

ℹ️ 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".

Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

IMO all of the now unused code should be removed from license.go:

  • licenseForbiddenFeatures
  • uncommittedUsageFeatures (and the commit loop)

And in the regular feature loop, we should just map from managed_agent_limit_soft to managed_agent_limit with a simple if statement at the top.

Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

Looks good but you should also update coderdenttest.go, which has references to the old _soft and _hard features still. You'll probably need to change the signature of ManagedAgentLimit as well as the places that call it (likely not that many)

Base automatically changed from jakehwll/1281-remove-agent-workspaces-limit to main February 20, 2026 01:56
@jakehwll
Copy link
Contributor Author

@codex review

@jakehwll jakehwll merged commit 051ed34 into main Feb 20, 2026
33 checks passed
@jakehwll jakehwll deleted the jakehwll/1281-remove-hard-soft-limit branch February 20, 2026 05:09
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 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.

2 participants