anomalyco / anomalyco/opencode

Typo in LayoutRoute tag: "dir-new-sesssion" should be "dir-new-session"

Open
#40,421 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 4, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

The LayoutRoute discriminated union in packages/app/src/context/layout.tsx uses a misspelled route tag: dir-new-sesssion (triple "s"). It should be dir-new-session.

The tag represents navigating to /<dir>/session without a session id (a new session about to be created in that directory). It is derived from the URL via currentRoute() on every render and is never persisted, so renaming the tag is safe.

Occurrences:

  • packages/app/src/context/layout.tsx:95 (type definition) and :156 (constructor)
  • packages/app/src/components/titlebar.tsx:89
  • packages/app/src/components/settings-v2/dialog-settings-v2.tsx:31

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.