846204d9fb
Ordering: post_llm_call fires in the agent worker thread before the gateway settles the turn and publishes message.complete, so an immediate notification.show lands ABOVE the response. The publish now waits (bounded 60s, detached daemon thread so the timeout-bounded hook returns instantly) until the session's execution stamp clears - the settlement clears it strictly after message.complete - making the cost line the LAST line of every turn. Same hold pattern as the gateway's background-review delivery. Label: the line showed the pricing-table match (zai:zai-glm-5-3) even when the session bills through a custom provider route. The label now comes from the billing route: the config.yaml custom_providers name matching the session's billing_base_url (hermes_cli.config.load_config first, regex fallback for standalone), else the stored billing_provider when not generic, else the pricing key. A session served by the custom provider 'mistral' now shows mistral:zai-glm-5-3. Also: restore the zai provider in the bundled pricing.json (dropped by an uncommitted local edit; plugin-local lookup made the loss visible as default:default). - tests: completion-stamp wait, billing-route label, execution stamp on the notification mock - version 0.4.3 (package + plugin manifest) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>