fix(web): remove Ask Sourcebot banner on new visit
Fixes SOU-2304
Remove the first-visit Ask Sourcebot tutorial dialog, its dismissal cookie action, and dedicated image assets. Ask Sourcebot chat and code search remain available.
Validation:
- Before change on
main: used a fresh anonymous browser profile with localhost cookies, localStorage, and session state cleared before opening/chat; the promotional tutorial appeared. - After change: repeated the same cleared-storage fresh-visit procedure;
/chatloaded without the promotional tutorial. /searchloaded successfully and navigation back to/chatremained intact.- No removal-related browser console errors observed.
yarn workspace @sourcebot/web lintyarn workspace @sourcebot/web test --run(149 files, 1,505 tests)
Ask LLM E2E on this branch:
- Confirmed
ANTHROPIC_API_KEYis set without exposing its value. - Updated local ignored
config.jsonwith the existing GitHub connection plus an Anthropicclaude-sonnet-4-5model usingtoken.env: ANTHROPIC_API_KEY. - Cleared localhost cookies, localStorage, and sessionStorage again before the fresh visit; the banner remained absent.
- The Anthropic model appeared in the selector.
- Submitted one real Ask query and received a successful response with a
README.mdcode citation. - Browser console showed only normal HMR/React DevTools messages and no breaking errors.
- No OpenAI key or second model was required.
Before:
Ask Sourcebot tutorial shown on a fresh /chat visit after storage reset
After banner removal:
Clean /chat landing page after clearing browser state
Fresh-state Ask shell and model:
Fresh-state Ask shell with claude-sonnet-4-5 selected and no banner
Anthropic claude-sonnet-4-5 visible in the model selector
Successful Ask response:
Successful Anthropic Ask response with README citation
Browser console without breaking errors after the successful response
Clean E2E walkthrough:
To show artifacts inline, enable in settings.


Summary by cubic
Fixes SOU-2304 by removing the Ask Sourcebot tutorial dialog that showed on a new visit. New users now go straight into chat; Ask Sourcebot chat and search are unaffected. Also removes the dismissal cookie action and constant, the three tutorial image assets, and adds a CHANGELOG entry noting the removal.
Summary by CodeRabbit
- Changes
- Removed the in-app agentic search tutorial dialog and its dismissal flow from chat.
- Removed the related first-visit tutorial banner and dismissal setting.
- The chat layout now displays only the MCP OAuth status notification alongside page content.
- Mobile splash-screen dismissal remains available.
- Documentation
- Moved the tutorial banner removal entry to the unreleased changelog.