Repository navigation
Terminal
nodemode-ai edited this page Dec 2, 2026
·
1 revision
The window has a terminal and agent dock: shell tabs, Claude Code tabs, Codex, Cursor and Antigravity tabs when the engine finds those programs, and a chat pane. The engine owns every process; the window draws output and sends keys. The dock is the family's shared module, at 2.2.1 here.
| Source path | What lives there |
|---|---|
frontend/src/dock/ |
The family's shared dock module, the same bytes in every app and never edited here (MANIFEST.json holds each file's SHA-256) |
frontend/src/dock-adapter.ts, frontend/src/styles/dock-tokens.css
|
FormChem's side: its words, storage key, sizes, routes, theme and keys |
backend/app/services/terminal.py, backend/app/routers/terminal.py
|
Pseudo-terminal sessions (ptyprocess on macOS and Linux, pywinpty on Windows) and the routes and WebSocket that carry them |
backend/app/services/agent_lookup.py |
The family's shared agent finder, copied unchanged from formvis |
- A terminal is code execution, so every route and socket refuses a Host or Origin that is not local, and only the FormChem window gets in: it sends the window key the engine makes at each start.
- Terminal output is appended to xterm's own nodes, never rebuilt.
- Every child process ends when its tab closes, the window goes away or the engine exits.
- Keys typed in the dock stay in the dock, except the dock's own chord and the keys the adapter lets through.
When an outside agent asks to change something, one dialog in the middle of the window names the agent and what it asked to do, with Deny, Allow once and Always allow. An answer covers only the request shown; Always allow is kept for that one agent name. The saved choice is sealed by the engine, so a change made outside the window reads as asking again.
FormChem
- Home
- Manual
- Getting Started
- Drawing
- Grid and Page
- Annotations
- Reactions
- Templates
- Printing and pages
- Keyboard Shortcuts
- Stereo and Queries
- Analysis
- Names
- Spectra and NMR
- 3D
- Databases
- Lab Notebook
- Biopolymers
- Live Structures
- Accessibility
- Formats and Export
- Clipboard
- Command Line
- Agents
- Agent Activity
- Terminal
- Extensions
- Project Format
- Architecture
- Desktop
- Troubleshooting
- Development
- Releasing
Documents