Forge
Changelog
Recent releases. Full history lives in the repository CHANGELOG.
## [Unreleased]
### Added
- **Local Live Preview**: Enhanced preview system with start/stop/restart controls, dynamic port discovery from framework logs, proper X-Frame-Options/CSP detection, and process cleanup. Integrates with existing launcher service.
- Framework-native .env resolution (respects Next.js, Vite, Expo precedence)
- Dynamic port discovery (no hardcoded 3000/8080)
- Port conflict handling (framework auto-increment)
- Process lifecycle management (clean cleanup on stop/switch/quit)
- Honest error states with process diagnostics
- Security: server-only vars stay server-side, never in URLs/logs
- Documentation: `docs/local-preview-architecture.md`
- Tests: `lib/forge-preview/preview-lifecycle.test.ts`
## [0.14.91] — 2026-11-22
### Added
- **Mobile Testing Lab button:** Mobile → More → Development → Testing Lab opens question practice and Coding Assessments without enabling a hidden rollout flag or pairing a Desktop.
- **Coding Assessments B1:** difficulty and Practice/Simulation selectors, an original single-level challenge with JavaScript/TypeScript/Python starters, local drafts, validated versioned public definitions, and separate server-only protected fixtures. Cloud execution, scoring and Simulation enforcement remain explicitly unavailable.
### Fixed
- **Terminal Clear and Copy:** preserve the visible prompt and wrapped/multiline input; copy the latest completed meaningful command after toolbar or shell clear; keep session histories separate; remove clipboard padding and refresh Copy availability on completion. Native macOS verification completed; Windows/Linux advanced shell cases remain uncertified.
## [0.14.90] — 2026-11-16
### Added
- **New from preset (Name Before Creation)**: creating a project from a saved preset now asks for the new project's name and parent folder first, with a live preview of the final path, package name and bundle id. Desktop: Start → New from preset. CLI: `forge run preset <preset> [name] [--dir] [--display-name] [--bundle-id] [--keep-identifiers]`.
- **Library Left / Right pane**: with side-by-side panes open, picking a project from the library asks whether to open it in the left or right pane. Right opens it as the read-only Reference without replacing the left project.
### Changed
- **Sage panel cleanup**: the conversation gets most of the height. Mode and Hybrid reasoning moved to a chip under the input, the Forge AI / Sage Bot cards became one expandable status line, Planner opens on demand from a chip, and Context ready / Copy log / View activity moved into a compact status with a ⋯ menu.
### Fixed
- Presets no longer carry the source project's identity: `.git` history, `.env` files, keys, Forge ids and Vercel/Supabase/Expo project links are left out, and project names, package names and bundle ids are renamed safely per framework. Project names that are invalid on Windows or macOS, duplicates and existing folders are refused.
## [0.14.89] — 2026-11-16
### Added
- **Auto-save**: new setting in Settings → General (off by default). Saves the active file shortly after you stop typing. Sage can turn it on or off ("turn on auto save").
- **Theme Lab Import file…**: pick a theme `.json` directly instead of pasting it.
### Fixed
- **Theme Lab Import JSON**: importing only loaded the theme into the editor and said "Imported", so nothing changed until a separate Apply, and the import was lost on restart. Import now saves it under Saved custom themes and applies it. Theme Lab reopens on the applied theme.
- **Cross-project save mixup**: saving or formatting right after switching projects could write one project's content into another. The editor now rebinds to the active file and refuses to save into a different workspace.
### Security
- Strict Content Security Policy for the desktop app; localhost dev access moved to a dev-only capability.
- Workspace grants refuse `/`, the home folder, system roots and credential folders (`~/.ssh`, `~/.aws`, …). File-head reads and terminal working directories are limited to granted folders.
- Hybrid Commands can no longer follow a symlink out of the workspace.
- monaco-editor 0.57 (DOMPurify 3.4.18); rustls/webpki updates; rusqlite 0.43; zip 9.
- Local dev exec routes accept loopback only and require a same-origin `Origin` on changes; `npm run dev` binds to 127.0.0.1.
- Password login is rate-limited.
- Next.js 16.4.6 (fixes GHSA-mfr8-8qww-v76h; 16.4.3 also refused to build).
## [0.14.88] — 2026-11-15
### Fixed
- **Hybrid Commands `switch`**: reported “Switched to …” while the editor stayed on the previous file. A workspace refresh that started before the switch wrote its old tab list and active file back. Refreshes now merge into the current tabs, and `switch` only reports success once the editor really shows the file (otherwise the step fails with an error).
- **Hybrid Command overlay position**: after a run with keep-open on, the overlay jumped to line 1. It now stays at (and restores the cursor to) its anchor line when the editor swaps the file's model or remounts.
- **Open folder… (project dropdown)**: picking a folder could leave the current project open with no error. The window-focus refresh started when the picker closed finished after the new folder loaded and put the old project back. Refreshes for a project that is no longer active are now dropped, the project list stops marking the previous project as current, and Open folder failures show a message.
## [0.14.87] — 2026-11-15
### Added
- **Sage system-awareness** (#108): Sage can open Forge features, files and settings, explain where things live, and flip safe Preferences from chat.
- **Sage knows the 0.14.86 features**: Hybrid Commands (F1 “Forge: Open Hybrid Command”, Cmd/Ctrl+Alt+J, typed trigger setting, modes, `--ext`, keep-open), the Twin Reference read-only fix, Theme Lab, and the new User Manual chapters. Sage can open and explain them, toggle Hybrid Commands between Preview and Disabled (owner only) and keep-open — it never switches on Enabled mode; that stays a user choice and every run still re-checks the owner flag with the server.
- **Ask Sage button in the terminal panel**: a ✦ button next to “New terminal” opens the system-aware Sage (tooltip + `aria-label="Ask Sage"`).
- **User Manual**: new chapters “Hybrid Commands (Experimental)” and “Theme Lab (Beta)”, a Twin read-only troubleshooting note, and Help can open straight to a chapter.
### Fixed
- Native bridge ACL now lists `forge_github_login_token` (#108).
## [0.14.86] — 2026-11-15
### Added
- **Hybrid Inline Commands** (#121):
- Optional typed trigger: pick your own trigger in Settings → Inline commands (none by default). Type it alone on a line and press Enter to open the command line; the trigger text is removed and never comes back on undo/redo (Cmd/Ctrl+Z, Cmd/Ctrl+Shift+Z, Vim `u` / Ctrl+R). Pasted or inserted text never activates it.
- Per-folder default extension: `mkdir components --ext tsx` makes extension-less files created inside that folder (and its new subfolders) `.tsx`; `--ext none` opts out; optional Settings default.
- The command line shows the current folder (shortened) under the input.
- Colour matching: repeated names (and different spellings of the same path) get one colour, underline style and numbered badge per occurrence, with the resolved path below the input; theme-aware with readable contrast. `fix` lists each occurrence with its colour, step and path, plus All occurrences.
- User manual: new "Hybrid Commands" and "Theme Lab" sections, plus troubleshooting for the Twin read-only error.
### Fixed
- File creation (New file / New folder) no longer fails with "Twin Reference is read-only" when Twin Reference was set to the same folder as the open project.
- Theme Lab: the Base family list now includes every Forge theme, so imported themes based on e.g. Obsidian Glass show and keep the right base.
## [0.14.85] — 2026-11-15
### Fixed
- **Hybrid Inline Commands** (fixes from the first hands-on test, #121):
- Chains work without `->`: a command word (`mkdir`, `touch`, `in`, `out`, `up`, `down`, `switch`, `fix`, `run`) starts a new step, and a lone `-` or `>` separates steps. Quoted names stay literal. Tab inserts ` -> `.
- `out` / `out N` never leaves the folder where the chain started; only `up` / `down` move outside it.
- Runtime commands (`npm start`, `git status`, or `run <cmd>`) become terminal steps: Enabled mode types them visibly into the integrated terminal in the current folder; Preview only shows "would run in terminal".
- Default shortcut Cmd/Ctrl+Alt+J (no F1 needed); it can be changed, cleared or reset in Settings.
- `switch` opens files created earlier in the chain and existing workspace files.
- Inline command line under the cursor line with per-occurrence colours, a live step list, the `fix` occurrence dropdown, a success toast, and auto-switch to the new file.
- New "Keep open after running" setting (default on).
- Terminal text no longer sits on the status bar: 5px gap above the orange bar.← Downloads