anomalyco / anomalyco/opencode
chore: session-ui prompt-input uses \\200B CSS escape that oxlint reports as an error, breaking bun run lint
@Hona is already working on this.
Since Sep 5, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
packages/session-ui/src/v2/components/prompt-input/index.tsx uses empty:before:content-['\200B'] (a CSS hex escape for zero-width space) inside a JSX class attribute. oxc's parser reports this as a JS octal-escape early error, making bun run lint exit 1 on dev for everyone.
The string is consumed by CSS verbatim (no JS unescaping happens in a JSX attribute string), so the escape is correct at runtime — the two are just in conflict.
Steps to reproduce
bun run lintat dev- lint exits 1: "'0'-prefixed octal literals and octal escape sequences are deprecated" at prompt-input/index.tsx
Fix incoming in PR #47510 (class moved to a JS expression with the escape written for the JS parser — emitted string verified byte-identical); filing per the Issue First policy so the drive-by fix is referenceable.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.