Desktop windows and data
Windows, tabs and the shared service
- Use New instance to open an empty tab in the current window, then choose a project.
- Use native Window → New Window (
Ctrl+Shift+NorCmd+Shift+N) for a separate application window. - In Settings → Advanced, enable Focus existing window on second launch if another launch should focus the most recently used window rather than open a new one.
Project tabs, selected conversations and layout belong to a window. OpenCode sessions/messages belong to the shared native OpenCode service: another window can see the same conversation. Closing a project tab closes that project in CodeNomad, not its OpenCode sessions; reopen it to find them again. Another window displaying the same project connection also closes its tab and shows a notification; separately opened tabs of the same folder are unaffected. Closing a whole window, quitting or reloading preserves project connections for restoration; see Projects. Do not use closing windows as proof that an agent or scheduled Mission has stopped.
Desktop automation stays on the window the agent inspected, even when you switch windows. The agent can list eligible local windows with codenomad.inspect({targets:true}) and inspect another by its returned identifier.
Native pointer and keyboard input in the app window requires its main page. Use the separate browser-preview tools for a conversation's web preview.
Native application menus use CodeNomad's interface language once a window has loaded; they show English until then. Help → About CodeNomad (also in the macOS application menu) opens Settings → Info with the version, updates and diagnostics. Help → Support CodeNomad opens the Support CodeNomad page in your browser.
Desktop launch arguments
Pass these arguments after the desktop executable (Tauri or Electron), in a terminal or the Target field of a Windows shortcut. Replace the example executable paths with yours.
| Argument | Effect |
|---|---|
--connect-server <name-or-url> |
Open a separate remote window regardless of multiBackend, using an HTTP(S) URL, saved name or saved ID. See remote connections. |
--folder <path> |
Open an existing project directory. Repeat the argument to open several directories; relative paths use the launch working directory. |
<path> ... |
Open project directories without spelling out --folder. Windows Tauri, when already running: use --folder for every directory. Mixing positional paths with --folder also drops the entire folder request. |
--new-window |
Request a new application window, including when another launch would normally focus the existing window. |
--connect-server=<name-or-url> and --folder=<path> also work. Quote paths or server names containing spaces. To open only the remote window, use --connect-server alone, without folders or --new-window. An already running local window handles the request; at startup, local window restoration is deferred unless connecting fails.
In PowerShell:
& "C:\path\to\CodeNomad.exe" --connect-server "https://server.example:9898"
& "C:\path\to\CodeNomad.exe" --new-window --folder "D:\Projects\demo"
In a Windows shortcut’s Target, put "C:\path\to\CodeNomad.exe" --connect-server "https://server.example:9898" (the & belongs to PowerShell). On Linux, use the AppImage executable, for example ./CodeNomad.AppImage --connect-server "https://server.example:9898".
For desktop profiles and configuration, set CODENOMAD_PROFILE and CLI_CONFIG before launch; see Data profiles. Backend listening, TLS and authentication options are in the server CLI reference. On Windows Tauri, launch arguments containing | are rejected; use a URL or rename the saved server.
Preferences and startup restore
- Open Settings from the window you want to configure. Local desktop entry points focus the single native Preferences window with that opener's project/Location.
- In General, turn Restore previous state on or off.
- To forget that window's saved layout, use Clear saved startup state. It applies immediately, without a confirmation.
Restore can reopen workspace/SideCar tabs and active sessions, unsent text, scroll positions, panels, window placement and zoom. It is per-window client state, not a copy of the native conversation database. Clearing it removes saved tabs, drafts and layout; it does not delete CodeNomad configuration or OpenCode conversations. Save any important unsent draft elsewhere first.
Each project tab restores its own right-panel selection, Files mode and Mission reader/selection, including duplicate tabs for the same conversation. Saved browser URLs/history reopen on demand; see Browser previews and SideCars.
The Preferences window does not own a separate restore state: these controls target the window that opened it. When that window has closed, or is unknown because Preferences reopened at launch, they follow the most recently used window instead; a change prepared for another window is never applied, and the controls first show the new window's value. To configure a specific window, open Preferences from it. Project-scoped settings likewise use the opener's Location; they stay unavailable without one. When Preferences reopens at launch, they reconnect once that project has finished opening; while the folder is still starting, or open in several tabs, they stay unavailable until you open Preferences from the intended window.
Browser and remote clients use embedded settings.
Desktop data profiles
- In native Settings → General, under Restore previous state, unfold Data profile. It lists every profile on this computer with its size, creation date and last use, the open one first.
- Select the profile the next launch opens, or choose New profile and enter a name of 1–64 lowercase letters, digits, dots, dashes or underscores, starting with a letter or digit.
- Choose Restart in to switch now; otherwise the chosen profile opens at the next launch. Selecting the open profile again cancels the change.
Profiles from another configuration are listed but cannot be chosen there. Without a remembered choice, a packaged launch checks the default, dev and dev-v2 profiles for restorable work and opens the most recently used one, or the default when none has any. Choosing a profile does not move, merge or delete profile data.
CODENOMAD_PROFILE set before launching the executable overrides the choice; Data profile then shows the profiles without letting you choose one. default or stable selects the default profile, and an invalid name prevents launch instead of selecting another profile. For example, in PowerShell, before launching the desired desktop executable:
$env:CODENOMAD_PROFILE = "review"
For an independent server configuration, set CLI_CONFIG to a separate configuration file before launch as well. The default is ~/.config/codenomad/config.yaml. A profile name by itself does not change that file or the shared OpenCode service.
| Isolated by a desktop data profile | Not automatically isolated |
|---|---|
| Window/tab restore state, unsent drafts and desktop singleton/backend scope | OpenCode sessions, messages, provider credentials and execution |
| Native Chromium/WebView storage associated with that profile, subject to platform limits | CodeNomad configuration/preferences, speech keys, SideCars and extension activation when configuration is shared |
| Native preview storage within its host/profile | Files in opened projects; remote servers' data |
On macOS Tauri, scoped profiles share system WebKit storage, sign-ins and cache; do not use profile names as account-security isolation. Electron stores web data in its profile. Installed version and Update feed never select another data profile. Unpackaged development launches use the dev profile unless explicitly selected.
Delete a saved profile
- Unfold Data profile as above and refresh the list if needed.
- Choose the delete button on the profile to remove. The open profile has none.
- Confirm only after preserving any drafts/sign-ins you need. Inspect any incomplete-removal report before retrying.
Deletion removes that profile's saved tabs, drafts, layout and owned web storage/cache/sign-ins, including a listed profile from another configuration. It preserves the open profile, OpenCode conversations and project files. A profile that is open or in an unknown state cannot be deleted; close the relevant CodeNomad windows, refresh the list and retry. Unrecognized content is retained and reported rather than broadly deleted.
macOS Tauri's shared web storage, sign-ins and cache are kept. This is not an undoable cleanup: a surviving native conversation does not restore a deleted unsent draft. Clear saved startup state is the smaller action when you only want to reset the current window.
Zoom and panel geometry
- Use native View → Zoom In, Zoom Out or Actual Size; keyboard/wheel input also follows host support.
- Use Left panel and Right panel at the fixed outer header corners to toggle panels. Pin/unpin drawers when that layout permits it.
- If controls no longer fit, reduce zoom or widen the window; narrow layouts move controls into menus and close panels that no longer fit.
Main local and remote desktop windows reserve at least 390 × 600 CSS pixels, scaled by application zoom and bounded by the monitor work area. Zooming in can enlarge a window that is too small; zooming out does not shrink an already larger one. Preferences and browser-preview children have separate size rules.
Panels leave a minimum conversation width. A docked panel that no longer fits closes, the right panel first, and returns when the window has room again unless you closed it while it was docked; a panel you open without room floats over the conversation. Below 420 CSS pixels of conversation width, the timeline hides and header actions use their overflow menu; the saved timeline preference is preserved. These geometry changes do not alter your prompt draft or native session. See Settings and layout and Browser previews and SideCars.