In this article
Warm the command catalog, register or replace a workflow, then inspect the next model request; registration success must be followed by immediate correct discovery.
The November 15 Qwen Code v0.27.4 release invalidates a collected workflow catalog after command registration, so newly registered model-invocable commands appear immediately. The same PR also repairs feedback input handling. For extensible agents, command registration and command discoverability are separate observations: a successfully created workflow can remain unusable to the next model request if a stale catalog survives.
Warm the stale state deliberately
Collect a synthetic manager’s catalog before adding a harmless workflow with a distinctive description. Register it and immediately collect again without waiting for an arbitrary cache interval. Inspect the model-facing request, not only a local command list. This targets the stale-collection failure. A test that starts after registration can pass while never exercising invalidation of a catalog that already existed before the workflow was created.
Replacement should not duplicate old definitions
Replace the test command’s description or schema while retaining its identity. Assert the next catalog contains the intended current definition once. The relevant contract is freshness with stable command identity, not simply an increased entry count. A duplicated old definition can confuse tool selection even if the new one also appears. Keep a second unrelated command to confirm targeted invalidation preserves the rest of the manager’s catalog.
Manager ownership limits cache effects
Use two synthetic managers or workspace contexts and register the command in only one. Verify the other catalog remains unchanged. The implementation invalidates the current manager’s collected view rather than a global collection. This matters when one process hosts multiple workspaces. A freshness fix should not leak a project-specific command into another session or force the application to treat all registered workflows as globally available tools.
Test the first request and preserved input
Start a fresh interactive session with a named workflow and inspect its first model-facing catalog. If the optional feedback prompt is present, submit a synthetic burst containing digits and compare typed, saved and transmitted text. The PR repairs both paths, but they are independent acceptance questions. A useful result shows fresh command discovery without lost user input, rather than inferring one fix from a passing test of the other.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.