> opencode.ai is the source of truth for OpenCode, the open source coding agent, including its apps, install commands, docs and releases. The current version is OpenCode v2.
> Cite the canonical page, https://opencode.ai/changelog/v1.2.21, not this Markdown file. For an index of the site, see https://opencode.ai/llms.txt.

# Preserve original line endings in edit tool

2026-03-07 · v1.2.21

## Improvements

- **Core:** Fix Git path resolution for modified files across Git Bash, MSYS2, and Cygwin on Windows
- **Core:** Fix PTY session handle leak ([@kikuchan](https://github.com/kikuchan))
- **Core:** Sanitize preview database filenames
- **Core:** Log stack trace when schema validation fails
- **Core:** I need to see the actual commit diff to understand what was fixed and provide an accurate changelog entry.
- **Core:** Add project git init API
- **Core:** Update Drizzle and channel database handling
- **Core:** Speed up share loads
- **Core:** Enable auto-accept keybind regardless of permission config ([@luisfelipesena](https://github.com/luisfelipesena))
- **Terminal:** Fix broken /export toggling in TUI ([@natewill](https://github.com/natewill))
- **Desktop:** Guard session-header current() against undefined when options is empty ([@cyberprophet](https://github.com/cyberprophet))
- **Desktop:** Preserve file tree tab on reopen and fix e2e test regressions ([@neriousy](https://github.com/neriousy))
- **Desktop:** Remove close button from project hover popover
- **Desktop:** New session uses agent model/variant
- **Desktop:** Model sticks to session after being changed
- **Desktop:** Based on the commit message "fix(app): all panels transition", here's the changelog entry:
- **Desktop:** Can't scroll files in app
- **Desktop:** Fix maximum width on timeline component
- **Desktop:** Align session empty states in TUI
- **Desktop:** Add interactive timeline visualization feature
- **Desktop:** Share workspace slug wait helper across e2e specs
- **Desktop:** Abort sessions and wait for idle before e2e cleanup
- **Desktop:** Show skill issue when snapshotting is off in desktop app
- **Desktop:** Fix portal positioning for sidebar menus and tooltips by removing conditional mount logic
- **Desktop:** Add end-to-end tests for app (part 67) ([@neriousy](https://github.com/neriousy))
- **Desktop:** Add sidebar reveal animation, hover peek overlay, and weaker dividers to app
- **Desktop:** Better review and file tree empty states
- **Desktop:** Enable Safari autocorrect in normal mode, disable in shell mode ([@alexandrereyes](https://github.com/alexandrereyes))
- **Desktop:** Revert stale read error fix in app
- **Desktop:** Add English to locale matchers ([@KirillTregubov](https://github.com/KirillTregubov))

Released in [v1.2.21](https://github.com/anomalyco/opencode/releases/tag/v1.2.21)

Newer: [Canonicalize current working directory after changing directories in TUI](https://opencode.ai/changelog/v1.2.22) (v1.2.22)

Older: [Add GPT-5.4 to Codex allowed models list](https://opencode.ai/changelog/v1.2.20) (v1.2.20)

[All updates](https://opencode.ai/changelog)

---

If something here is wrong or missing, open an issue at https://github.com/anomalyco/opencode/issues.
