Skip to content

fix(extensions): accept 'ready' response as valid reply to load action#146

Merged
lightningpixel merged 1 commit into
lightningpixel:devfrom
bryanchua5327:fix/extension-load-ready-response
May 22, 2026
Merged

fix(extensions): accept 'ready' response as valid reply to load action#146
lightningpixel merged 1 commit into
lightningpixel:devfrom
bryanchua5327:fix/extension-load-ready-response

Conversation

@bryanchua5327
Copy link
Copy Markdown

Some extensions (e.g. triposg) respond to the load action with a 'ready' message (including params_schema) rather than 'loaded'. The load() method previously only accepted 'loaded', causing a RuntimeError even though the extension had initialised successfully.

Accepting both 'ready' and 'loaded' as valid load responses fixes the crash. The params_schema sent with a 'ready' reply is already captured by _start(); handling it here is a no-op but keeps the contract clear.

Reproducer:
RuntimeError: [triposg/generate] Unexpected response to load:
{'type': 'ready', 'params_schema': [...]}

@Lorchie
Copy link
Copy Markdown
Collaborator

Lorchie commented May 22, 2026

Can you merge it into the dev branch? Thanks

@lightningpixel lightningpixel changed the base branch from main to dev May 22, 2026 09:03
@lightningpixel
Copy link
Copy Markdown
Owner

You’ll need to resolve the conflicts before i can merge it

Some extensions (e.g. triposg) respond to the load action with a
'ready' message (including params_schema) rather than 'loaded'.
The load() method previously only accepted 'loaded', causing a
RuntimeError even though the extension had initialised successfully.

Accepting both 'ready' and 'loaded' as valid load responses fixes the
crash. The params_schema sent with a 'ready' reply is already captured
by _start(); handling it here is a no-op but keeps the contract clear.

Reproducer:
  RuntimeError: [triposg/generate] Unexpected response to load:
  {'type': 'ready', 'params_schema': [...]}
@bryanchua5327 bryanchua5327 force-pushed the fix/extension-load-ready-response branch from 4c48a57 to 749c00b Compare May 22, 2026 09:34
@bryanchua5327
Copy link
Copy Markdown
Author

updated

@lightningpixel lightningpixel merged commit 81fb0b0 into lightningpixel:dev May 22, 2026
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.

4 participants