rowboat/apps/x/apps/renderer
Ramnique Singh 15d4a497f0 feat(x): reasoning-effort control in the chat composer
Adds a Brain chip next to the model picker (Auto / Fast / Balanced /
Thorough) in both the full-screen and side-pane composer. Selection is
per-tab, next-turn intent like the model picker (same ref pattern), but
unlike model it is never frozen on a run — it applies turn by turn,
riding sendConfig.reasoningEffort into turn_created.config.

The chip renders only when the effective model (run-frozen, picked, or
app default) is known-reasoning per the models:list capability flag,
and a stale selection resets when switching to a non-reasoning model.

Turns that ran at a non-auto effort show the level beside the existing
token-usage affordance, read retroactively from the persisted turn
config; reasoning tokens were already displayed there.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 10:11:25 +05:30
..
public refactor onboarding: remove welcome screen, streamline model setup, tighten spacing 2026-02-05 23:03:47 +05:30
scripts tour: separate spoken narration from bubble text 2026-07-02 22:31:50 +05:30
src feat(x): reasoning-effort control in the chat composer 2026-07-10 10:11:25 +05:30
.gitignore bootstrap new electron app 2026-01-16 12:05:33 +05:30
components.json UI improvements 2026-01-16 12:05:33 +05:30
DESIGN_LANGUAGE.md minor design changes (#564) 2026-05-18 22:49:18 +05:30
eslint.config.js bootstrap new electron app 2026-01-16 12:05:33 +05:30
index.html fix startup flash 2026-02-04 22:45:51 +05:30
package.json feat(x): sessions IPC + renderer data layer with testable stores (stage 5a) 2026-07-02 14:20:44 +05:30
README.md bootstrap new electron app 2026-01-16 12:05:33 +05:30
tsconfig.app.json UI improvements 2026-01-16 12:05:33 +05:30
tsconfig.json UI improvements 2026-01-16 12:05:33 +05:30
tsconfig.node.json bootstrap new electron app 2026-01-16 12:05:33 +05:30
vite.config.ts feat(x): sessions IPC + renderer data layer with testable stores (stage 5a) 2026-07-02 14:20:44 +05:30

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])