Onboard: fix X setupWizard crash; tighten QVeris prompt + error hints#109
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily addresses a critical bug that caused the onboarding wizard to crash when the X channel plugin was involved in the channel status collection, ensuring a smoother user experience. Concurrently, it enhances the reliability and security posture of QVeris tool usage by refining the system prompts and error messages. These changes guide the agent models to interact with QVeris tools correctly, preventing misuse of credentials and direct API calls, thereby improving the overall stability and security of the system. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request refactors the X (Twitter) channel onboarding process to use the new ChannelSetupWizard interface, improving its structure and testability. Additionally, it enhances the QVeris tool integration for AI agents by adding explicit access rules to the system prompt and incorporating workflow guidance notes into QVeris error responses. These changes aim to ensure agents adhere to proper tool usage patterns and avoid direct API calls. I have no feedback to provide.
Summary
Describe the problem and fix in 2–5 bullets:
qverisbot onboard, the wizard could crash withTypeError: Cannot read properties of undefined (reading 'resolveConfigured')because the X channel plugin exposed aChannelSetupWizardAdaptershape assetupWizard(viaas unknown), while core onboarding expects aChannelSetupWizardwithstatus.resolveConfigured. Separately, models sometimes drifted toward direct QVeris HTTP calls, wrong base URLs, or mishandlingQVERIS_API_KEYin guidance.ChannelSetupWizard(xSetupWizard) usingcreateStandardChannelSetupStatusand moved interactive setup intofinalize; updated tests. QVeris: stricter system-prompt “access rules,” concise workflow note on classified errors, tests for prompt/error behavior; wizard mock fix forresolveSearchProviderSignupUrlwhere applicable.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
full_content_file_urlexception where applicable.QVERIS_API_KEY).Security Impact (required)
Yes, explain risk + mitigation: N/ARepro + Verification
Environment
pnpmonboardchannel steptools.qveris.*set during wizard; X plugin present in bundleSteps
qverisbot onboard(oropenclaw onboard) through QVeris region + API key prompts.resolveConfiguredTypeError.Expected
Actual
resolveConfiguredon undefined. (After) Proceeds normally.Evidence
Attach at least one:
(CI / local:
pnpm teston touched areas, e.g.extensions/x/src/onboarding.test.ts,src/channels/plugins/setup-wizard*,src/agents/system-prompt.test.ts,src/agents/tools/qveris-tools.test.ts.)Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
Compatibility / Migration
Failure Recovery (if this breaks)
accountIdin results fromfinalize(should match prior behavior for default account).Risks and Mitigations
finalize).QVERIS_WORKFLOW_NOTE; prompt changes are targeted.