Skip to content

deps: switch symfony/ai-* from stable workarounds when upstream fixes are released #17

@camilleislasse

Description

@camilleislasse

Context

Two upstream issues currently force us into workaround configurations:

1. Sylius / gedmo/doctrine-extensionsLoggable|object PHPDoc

PR doctrine-extensions/DoctrineExtensions#3046 (approved 2026-03-30 by @mbabker, not merged yet) removes the T of Loggable|object template that breaks symfony/type-info >= 7.4. Without that fix, any Sylius project where api-platform/symfony scans Gedmo classes crashes at cache:warmup (see Sylius#18878).

Workaround: pin symfony/type-info: ~7.3.0 and symfony/property-info: ^6.4 || ~7.3.0 to avoid the strict union check.

2. symfony/ai-bundleValidateToolCallArgumentsListener registration ✅ RESOLVED in v0.9.0

PR symfony/ai#2018 (merged 2026-05-04) fixes ValidateToolCallArgumentsListener registration when the symfony/ai-agent package is not installed. The fix is in dev-main but no stable release of symfony/ai-bundle includes it yet (latest stable = v0.8.0, released 2026-04-20).

Workaround: require symfony/ai-agent: ^0.8 in require-dev so the listener's referenced class exists (avoids lint:container failures).

Resolved in symfony/ai-bundle v0.9.0 (released 2026-05-16). Bumped in #27.

3. symfony/ai - #[SchemaSource] for runtime JSON Schema fragments

If symfony/ai#2024 (#[SchemaSource] for runtime JSON Schema fragments) is merged, re-evaluate whether the plugin's per-type FilterSchemaBuilder approach can be replaced or simplified by leveraging the native Describer chain (likely via per-grid virtual DTOs).

Action when upstream releases

When both of these are released:

  • gedmo/doctrine-extensions >= the version that includes PR#3046
  • symfony/ai-bundle >= a version that includes PR#2018 (probably v0.8.2 or later) ✅ done in v0.9.0

Then update this plugin:

  1. Relax symfony/type-info from ~7.3.0 to ^7.3
  2. Relax symfony/property-info from ^6.4 || ~7.3.0 to ^6.4 || ^7.3
  3. Optionally drop the symfony/ai-agent: ^0.8 require-dev added as workaround ✅ done in chore(deps): bump symfony/ai-* to ^0.9 and drop ai-agent workaround #27

How to check

# Check Gedmo release after PR#3046 merge
curl -sS https://repo.packagist.org/p2/gedmo/doctrine-extensions.json | jq '.packages."gedmo/doctrine-extensions"[0]'

# Check ai-bundle release with fix #2018 (any version > v0.8.0 from after 2026-05-04)
curl -sS https://repo.packagist.org/p2/symfony/ai-bundle.json | jq '.packages."symfony/ai-bundle"[0]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions