Repository navigation
Description
Surfaced while probing #81 during the adversarial audit of #58, then independently verified. Unrelated to the issue-58 stack — pre-existing and orthogonal, filed because it blocks the mandated typecheck for a documented first-class feature.
<Activity> is not a valid JSX element type
packages/octane/src/runtime.ts:11398:
export const Activity: unique symbol = Symbol.for('octane.Activity');A unique symbol has no construct or call signature, so TypeScript rejects it in JSX position. The Octane compiler recognises the symbol specially; tsc has no way to know that.
Verified on existing committed files
Not a synthetic probe — these are files already in the repo, checked with the repo's own command:
$ pnpm typecheck:files packages/octane/tests/_fixtures/activity.tsrx
packages/octane/tests/_fixtures/activity.tsrx(192,4): error TS2604: JSX element type 'Activity' does not have any construct or call signatures.
packages/octane/tests/_fixtures/activity.tsrx(195,6): error TS2604: ...
packages/octane/tests/_fixtures/activity.tsrx(222,4): error TS2604: ...
$ pnpm typecheck:files packages/base-ui/tests/_fixtures/collapsible-activity.tsrx
packages/base-ui/tests/_fixtures/collapsible-activity.tsrx(22,3): error TS2604: JSX element type 'Activity' does not have any construct or call signatures.
grep -rn "<Activity" --include=*.tsrx finds 18 committed files using this form, spanning packages/octane, packages/base-ui, and packages/three.
The audit's #81 probe hit the same wall in the real Lynx demo app under pnpm lynx:demo:typecheck (TS2604, exit 2) and in a plain DOM .tsrx inside packages/cmdk, with and without the @jsxImportSource pragma.
Why it matters
CLAUDE.md states plainly: "Typecheck any program containing .tsrx with tsrx-tsc --noEmit, never plain tsc." That is the mandated gate, and a documented first-class feature cannot pass it.
docs/differences-from-react.md:688,1016-1019 documents hidden <Activity> as supported behaviour, and milestone-8-integration.test.ts:290 exercises adoption of hidden Activity nodes. So the runtime supports it, the docs promise it, the tests use it — and a consumer who writes it in their own app gets a hard typecheck failure with no documented workaround.
Repo CI may not surface this if _fixtures directories sit outside the typecheck gate; that would explain how it persists. It still bites any consumer following the documentation.
Suggested direction
Give Activity a JSX-compatible type — declare it as a component-typed value whose runtime representation stays the symbol the compiler matches on (a cast at the export site, or a declare const Activity: (props: { mode: 'visible' | 'hidden'; children?: OctaneNode }) => OctaneNode in the public types). The compiler's matching is on Symbol.for('octane.Activity') and need not change.
If instead <Activity> is not the intended authoring form, the docs and the 18 committed fixtures should say so — but docs/differences-from-react.md currently reads as though it is.
Verification performed
Reproduced directly by me on two committed files, one of them in a published package, using pnpm typecheck:files. Root cause read from source. No adversarial refuter has adjudicated it.
Note: activity.tsrx also reports several TS7006 implicit-any parameter errors, which are unrelated fixture-quality issues, not part of this report.
Activity
Huxpro commentedon Aug 18, 2026
Precise root cause, why it has survived, and what it currently masks
An independent reachability attacker reached this from a different direction and pinned it more exactly than the original report.
The precise cause
Two halves, both needed:
octane'sActivityisexport const Activity: unique symbol(packages/octane/src/runtime.ts:11398) — no construct or call signature.JSXnamespace (packages/lynx/src/intrinsics.ts:297) declares onlyElementandIntrinsicElements— noElementType. Without anElementTypewidening, TypeScript has no way to admit a symbol-valued component in JSX position.That second half is the actionable one and it is a one-line typing gap.
Why it has persisted
Every
<Activity>use in the repo lives intests/_fixtures/, which is excluded from the typecheck gate. That is exactly why CI is green while the feature cannot typecheck — and why I could reproduce it on committed files without any test being red.Confirmed across three independent configurations: the real Lynx demo app under the exact
pnpm lynx:demo:typecheckcommand (with and without the@jsxImportSourcepragma), and a plain DOM.tsrxinsidepackages/cmdk, which is gated. So this is not Lynx-specific — it rejects the entire<Activity>feature everywhere, DOM included.What it masks — sequencing note for #81
This is the part worth knowing before scheduling either fix.
#81 (a
bind*handler inside<Activity mode="hidden">makes the first screen unadoptable) is fully reachable at the compiler and runtime level — the shipped preset emits the trigger and the full product path reproduces the failure. The only thing preventing a strictly-typechecking app from shipping it today is this typing gap.The moment #91 is fixed — or an author writes
// @ts-expect-error, or augments the namespace — #81 fires immediately.So these should be sequenced together: closing this typing gap without also fixing #81 converts a feature that "doesn't typecheck" into a feature that typechecks and then discards the entire painted first screen on every launch.
Not the pattern that withdrew #72 and #77
Worth stating explicitly, since this audit has withdrawn four findings on reachability grounds. Those failed because the typechecker rejected the specific triggering spelling while the supported spellings worked fine. Here the typechecker rejects the entire documented feature, everywhere, while
docs/differences-from-react.md:688,1016-1019presents it as supported and the runtime executes it correctly. That is an unintended typing gap, not a guard doing its job.Generated by Claude Code