Skip to content

fix(web): default home to Ask when Ask GitHub experiment is enabled (SOU-2281) - #1672

Closed
msukkari wants to merge 2 commits into
mainfrom
cursor/sou-2303-default-home-ask-d6d6
Closed

msukkari wants to merge 2 commits into
mainfrom
cursor/sou-2303-default-home-ask-d6d6

Conversation

@msukkari

@msukkari msukkari commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes SOU-2281

Summary

  • Default / to the Ask landing page when EXPERIMENT_ASK_GH_ENABLED is true and no home-view cookie is set.
  • Preserve explicit ask and search cookie preferences.
  • Keep the server home page, sidebar ordering, and Settings default-home-view control aligned.

The public app is gated by the existing EXPERIMENT_ASK_GH_ENABLED server environment variable. The client receives the server-computed default through the existing server-to-client prop pattern, so no new public environment variable is introduced.

Linear issue: https://linear.app/sourcebot/issue/SOU-2281/make-ask-the-default-interface-for-public-saas

Open in Web Open in Cursor 

Summary by cubic

Fixes SOU-2303 by defaulting / to the Ask landing page when the EXPERIMENT_ASK_GH_ENABLED experiment is on and no home-view cookie is set. Previously the home page, sidebar, and settings all defaulted to Code Search.

  • Adds shared getDefaultHomeView and resolveHomeView helpers so the home page, sidebar, and settings compute the same default.
  • Explicit ask and search cookie choices still override the default.
  • No new public environment variable is introduced; the default is passed to the client through existing server-to-client props.

Written for commit e9182ba. Summary will update on new commits.

Review in cubic

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
@cursor cursor Bot changed the title fix(web): default home to Ask when Ask GitHub experiment is enabled fix(web): default home to Ask when Ask GitHub experiment is enabled (SOU-2303) Sep 22, 2026
@cursor cursor Bot changed the title fix(web): default home to Ask when Ask GitHub experiment is enabled (SOU-2303) fix(web): default home to Ask when Ask GitHub experiment is enabled (SOU-2281) Sep 22, 2026
@msukkari

Copy link
Copy Markdown
Contributor Author

Closing in favor of a more general org admin setting for deployment-wide default home view (SOU-2281). The EXPERIMENT_ASK_GH_ENABLED gating approach is not what we want.

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.

2 participants