Skip to content

soliplex_client: pin ag_ui git dep to a fixed ref#333

Merged
runyaga merged 1 commit into
mainfrom
fix/soliplex-client-content-web-compile
Jun 7, 2026
Merged

soliplex_client: pin ag_ui git dep to a fixed ref#333
runyaga merged 1 commit into
mainfrom
fix/soliplex-client-content-web-compile

Conversation

@runyaga

@runyaga runyaga commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Problem

packages/soliplex_client/pubspec.yaml declares ag_ui as a git dependency with no ref, so it floats to upstream HEAD. Our committed pubspec.lock pins d4552e3 (ag_ui 0.1.0), so CI is fine — but any fresh resolution without our lockfile (an external consumer of soliplex_client) pulls whatever HEAD is now: ag_ui 0.3.0.

ag_ui 0.3.0 retyped ActivitySnapshotEvent.content from Map<String, dynamic> to Object?. soliplex_client uses it as a map, so the package no longer web-compiles for such consumers:

lib/src/application/activity_events.dart:62: Error: The argument type 'Object?' can't be assigned to the parameter type 'Map<String, dynamic>'.
lib/src/application/agui_event_processor.dart:456: Error: The operator '[]' isn't defined for the type 'Object?'.

(Hit while consuming soliplex_client from an external Flutter app — dart2wasm/dart2js both fail.)

Fix

Pin ag_ui to d4552e3ad0d5e33e34a3df5325260d88ede8bff9the exact commit already in pubspec.lock. Resolution becomes deterministic for everyone; behavior is unchanged for this repo.

Verification

  • dart analyze → No issues found
  • flutter test --exclude-tags integration (packages/soliplex_client) → 1483 tests, all passed
  • pubspec.lock diff is a single line (ref: HEADref: d4552e3); resolved-ref already matched.

Follow-up (not this PR)

Adopting ag_ui 0.3.0 (the Object? content API) is a separate, larger migration across the monorepo.

The ag_ui dependency had no ref, so it floated to upstream HEAD. A fresh
resolution (an external consumer with no lockfile — e.g. the klangk
soliplex plugin) pulls ag_ui 0.3.0, which retyped
ActivitySnapshotEvent.content from Map<String, dynamic> to Object?. That
fails to web-compile in soliplex_client (activity_events.dart,
agui_event_processor.dart use it as a Map), breaking dart2wasm/dart2js.

Pin to d4552e3 — the commit already in pubspec.lock — so resolution is
deterministic. No behavior change; all soliplex_client tests pass.
@runyaga runyaga force-pushed the fix/soliplex-client-content-web-compile branch from db0f313 to 6d14add Compare June 7, 2026 01:37
@runyaga runyaga merged commit 69be1e8 into main Jun 7, 2026
6 checks passed
@91jaeminjo 91jaeminjo deleted the fix/soliplex-client-content-web-compile branch June 8, 2026 13:59
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