Skip to content

fix: respect schematic trace auto-label opt-out#2341

Open
ItsOtherMauridian wants to merge 1 commit into
tscircuit:mainfrom
ItsOtherMauridian:fix/sch-trace-autolabel-optout-local
Open

fix: respect schematic trace auto-label opt-out#2341
ItsOtherMauridian wants to merge 1 commit into
tscircuit:mainfrom
ItsOtherMauridian:fix/sch-trace-autolabel-optout-local

Conversation

@ItsOtherMauridian
Copy link
Copy Markdown

Summary

Fixes #2243.

schTraceAutoLabelEnabled={false} is typechecked but the grouped schematic trace render path still inserted automatic schematic net labels. This made the prop ineffective for named-net connections rendered through the MSP schematic trace routing flow.

This PR gates the automatic net-label insertion paths in Group_doInitialSchematicTraceRender behind schTraceAutoLabelEnabled !== false while keeping trace rendering itself unchanged.

Test plan

  • npx bun test tests/repros/repro2243-sch-trace-auto-label-disabled.test.tsx
  • npx bun test tests/repros/repro13-schematic-trace-hop.test.tsx tests/repros/repro14-double-schematic-traces.test.tsx tests/components/normal-components/pcb-component-relative-positioning1.test.tsx tests/components/trace
  • npx tsc --noEmit

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment May 27, 2026 4:43pm

Request Review

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.

schTraceAutoLabelEnabled={false} has no observable effect on schematic rendering

1 participant