fix(web): remove Ask Sourcebot banner on new visit

Merged
MS
2mo ago
+4-367

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; /chat loaded without the promotional tutorial.
  • /search loaded successfully and navigation back to /chat remained intact.
  • No removal-related browser console errors observed.
  • yarn workspace @sourcebot/web lint
  • yarn workspace @sourcebot/web test --run (149 files, 1,505 tests)

Ask LLM E2E on this branch:

  • Confirmed ANTHROPIC_API_KEY is set without exposing its value.
  • Updated local ignored config.json with the existing GitHub connection plus an Anthropic claude-sonnet-4-5 model using token.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.md code 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.

Open in Web Open in Cursor 

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.