DeleteAttachmentsProcess Review/Delete default constructors read QContext during instance validation #20

Closed
opened 2026-10-14 17:44:17 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-10-14 17:44:17 +00:00 (Migrated from github.com)

Found while adopting 0.1.0-RC.1 in a host app (kof22).

DeleteAttachmentsProcess.Review and .Delete default constructors build an AttachmentsService that reads QContext (session and instance). QQQ instantiates the transform and load code references during context-free instance validation, so validation fails unless the host swaps in subclasses that pass new AttachmentsService(config, new AttachmentStorage()) explicitly.

Expected: constructing the steps needs no QContext. Resolve the service lazily inside run/preRun, where a context exists.

The host currently works around it with a tagged STAND-IN subclass, to be removed in the next RC.

🤖 Generated with Claude Code

Found while adopting 0.1.0-RC.1 in a host app (kof22). `DeleteAttachmentsProcess.Review` and `.Delete` default constructors build an `AttachmentsService` that reads `QContext` (session and instance). QQQ instantiates the transform and load code references during context-free instance validation, so validation fails unless the host swaps in subclasses that pass `new AttachmentsService(config, new AttachmentStorage())` explicitly. **Expected:** constructing the steps needs no `QContext`. Resolve the service lazily inside `run`/`preRun`, where a context exists. The host currently works around it with a tagged STAND-IN subclass, to be removed in the next RC. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QRun-IO/qbit-collaboration#20