Fix OpenCode pane scroll input and registry hydration#286
Fix OpenCode pane scroll input and registry hydration#286danshapiro wants to merge 5 commits intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0ff4990c36
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const shouldResolveProviderBehavior = isTerminal && providerUsesExtensionTerminalBehavior(terminalContent?.mode) | ||
| const extensionRegistryReady = useEnsureExtensionsRegistry(shouldResolveProviderBehavior) |
There was a problem hiding this comment.
Load extension registry before resolving non-OpenCode behavior
useEnsureExtensionsRegistry is now gated by providerUsesExtensionTerminalBehavior, which only returns true for opencode. For any other CLI extension that sets cli.terminalBehavior (the new manifest field added in this commit), a terminal-only startup path never triggers /api/extensions, so providerBehavior stays at defaults and the declared renderer/scroll policy is ignored. This means restored or directly-opened third-party extension terminals can silently run with the wrong behavior until the user manually opens another view that happens to load the registry.
Useful? React with 👍 / 👎.
Summary
Testing
npm run check