Skip to content

fix(webapp): gemma-2-2b default graph follows the selected source set - #243

Merged
hijohnnylin merged 1 commit into
mainfrom
fix-graph-default-per-sourceset
Sep 16, 2026
Merged

hijohnnylin merged 1 commit into
mainfrom
fix-graph-default-per-sourceset

Conversation

@hijohnnylin

Copy link
Copy Markdown
Owner

Problem

Switching source sets on the gemma-2-2b graph page reloads to /gemma-2-2b/graph?sourceSet=<name> with no slug. The no-slug branch then hardcodes gemma-fact-dallas-austin, a gemmascope-transcoder-16k graph, regardless of the selected source set. Its pinned ids and supernodes (20_15589_* etc.) are transcoder feature ids, so on clt-hp the page showed a graph from the wrong source set.

Fix

In apps/webapp/app/[modelId]/graph/page.tsx, when modelId === 'gemma-2-2b' and the resolved source set is clt-hp, pick factthecapitalof-1789506352829 instead. That graph is not featured, so it is not in the preloaded metadata map for most visitors; the pick falls back to the same prisma.graphMetadata.findUnique lookup the slug branch uses and adds it to the map.

Every other source set keeps the existing gemma-fact-dallas-austin pick, unchanged.

Checks

  • prettier --check, eslint (pre-existing any warnings only), tsc --noEmit pass.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@hijohnnylin
hijohnnylin merged commit f88f3e5 into main Sep 16, 2026
6 checks passed
@hijohnnylin
hijohnnylin deleted the fix-graph-default-per-sourceset branch September 16, 2026 00:29
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.

1 participant