Fixed: a terminal tab's status line used to select itself while output streamed, the picture stopped updating, and typing did nothing until the tab was clicked. The cause was an edit, not a selection call: view.replace(edit, Region(line_start, line_end), new_text) on the line that holds the caret leaves the replacement selected.
-
Measured on build 4215 with a standalone three-case probe in one view of the same size: replacing the whole buffer with the caret at the end leaves
Region(15,15)empty; replacing the caret's own line leavesRegion(15,20)non-empty; replacing the whole buffer with the caret at offset 0 leavesRegion(0,0)empty. -
The line-diff render path replaces individual lines. The omp status row is the last line and changes every second (spinner and timer), so every frame that rewrote it manufactured a selection in that row.
_selection_paint_blockedthen read it as a person's selection and stopped painting, andon_selection_modifiedlatched_user_owns_caret, which kept the keyboard from reaching the PTY. -
The caret the frame intended is now restored after the patch loop, and only when the caret is GhostShell's to place (
not term._user_owns_caret), so a selection a person makes is never touched. -
Not shipped: the recorder used to find this (a User plugin that stamped every selection with the OS-wide idle time and a call stack) stays out of the package.
-
Not fixed here: after a click the view can sit above the bottom while output streams, 228 to 737 characters short for as long as the stream lasts (
at_bottom=False,follow=True). Theompprofile setsscroll_manipulation_enabled: false, so_set_viewport()returns before moving anything; the viewport trace that would name whoever moves it is described in the memory note. -
Seen live: the owner ran a full turn of streaming output with the fix in place and reported no highlight, at the end of the turn or during it. Cause and fix are in
.claude/memory/project_ghostshell_phantom_footer_selection_2026_11_10.md. -
Not seen live: the same freeze on builds other than 4215, and any use of the recorder on a macOS or Linux host.
Changed: nothing in the code — 0.2.19 is 0.2.18's terminal, byte for byte, plus the documentation and the notes that should have shipped with it. 0.2.18 was tagged while its own records were still unwritten: the dated note for the libghostty-vt 1.1.0-dev swap (the ABI mapping, the checksums, what was proved live and what was not, the rollback) and the release procedure that exists because ten releases went out with a document left behind. Both are in the repo now, and this tag contains them.
- What a reader of 0.2.18 missed, and gets here:
.claude/memory/project_libghostty_vt_1_1_0_2026_11_07.md(what changed in the ABI, what a future session must not do — porting the binding ahead of the published DLL cost the owner his editor twice — and how to roll back) and.claude/skills/release/SKILL.md(the invariant that a tagged commit contains everything the release claims, the sequence, and the two commands that prove it:git status --shortandgit log --oneline <tag>..HEAD, both empty). - Nothing to re-verify at runtime: the switcher, the encoder, the renderer and the replay path are the same files as 0.2.18, whose live checks are listed below (spawn, typed echo, console resize, End Session, two restarts reattaching the agent tab).
- Rollback: the previous binary is still kept as
terminal/bin/ghostty-vt-0.1.0-dev.dll; swap the two filenames and restart Sublime.
Changed: libghostty-vt moves from 0.1.0-dev (ghostty 634957c8) to 1.1.0-dev+8265e74, built from that commit with Zig 0.17.1 and published as release ghostty-vt-8265e74 (2 252 288 bytes, sha256 C511C906…). The upgrade is an ABI change, not a rebuild: terminal_new takes cols/rows instead of an options struct, the scrollback cap is a line count set afterwards (its byte limit defaults to 10 000 bytes and must be lifted with SIZE_MAX; the line limit trims whole pages and overshoots, so native keeps a max(cap*4, 1200) backlog while Screen.history still enforces exactly history_cap), GhosttyStyle is a 16-byte flags bitmask with a one-byte-tag colour, GhosttyGridRef dropped its leading size, terminal_mode_get is gone, the key/mouse encoders renamed their setters and shifted every option id by one, and key_event_set_utf8 takes its text as a GhosttyString by value.
- Seen:
tools/verify_libghostty_vt.py— 10 checks, 0 failed on the new DLL, including the exact bytes for a, enter, backspace, up, tab and ctrl+c and a mouse press as\x1b[<0;4;5M; a full-screen materialisation of 2.4 µs/cell; a 1200-line burst in 0.72 s; history ending on exactly 300 rows that abut the visible screen. Live: the tab reattached immediately on the new library and typed input ran (owner-observed). - Seen and fixed during the swap: with the setter signature assumed from the old ABI, named keys faulted (
access violation reading 0x8) while single characters still worked — the console showed presses being sent while a prompt never cleared. - Rollback: the previous binary is kept as
terminal/bin/ghostty-vt-0.1.0-dev.dll; swap the two filenames and restart Sublime.
Fixed: key entry in a terminal tab waited for a paint it did not need to wait for. The renderer debounced every PTY update by 100 ms, including the echo of a keystroke. A frame that is that echo — a small amount of output arriving within 0.6 s of input actually typed by a person (send_string with record=True) — now paints 16 ms after the output lands, while an app's own unprompted redraw and any larger burst keep the 100 ms debounce (_RENDER_MS_ECHO, _RENDER_ECHO_WINDOW_S, _RENDER_ECHO_MAX_BYTES).
Fixed: one classic (non-TSP) frame cost 63–114 ms of the main thread on a full tab, so keystrokes queued behind paints. Three costs are gone:
_scope_forlooked up the colour scope for every coloured cell of every frame, and the lookup itself imported the pure helper through the package on each call: 30–39 ms of each omp frame (336 rows × 99 columns, ~2.4K colour runs). It is now cached per packed attr (_SCOPE_CACHE, bounded at 65536 entries): 5–8 ms.- The frame's colour runs (~2.4K of them) were passed through
ai_terminal_render's command arguments, so Sublime converted the whole list on every frame: 20–29 ms ofview.run_commandagainst the command's own 8 ms. The command now reads them from the terminal (regions_from_term,term._frame_regions);tsp_viewstill passes its own. - The "nothing changed, skip the paint" test rebuilt
_plain_cells_signature— a string of every cell in the tab — purely to compare it with the previous one. The frame's built text and colour runs answer the same question (equal text = equal characters, equal runs = equal attributes, and attr-only changes still repaint), so the signature, its cache and the extra 33K-cell pass per frame are gone.
A frame after these: 19–31 ms, and a typed character 42–80 ms from send_string to the painted frame.
- Seen live on Windows 11, build 4215 (Python 3.14), in the running Sublime, with temporary timestamped instrumentation in
_do_render,AiTerminalRenderCommand.runandsend_string(removed again; the numbers above are from it). Before: a typed character in a cmd.exe tab took 151, 178, 183 mssend_string→ painted frame; an omp frame was 63–114 ms (lock 8–13 + text 30–39 + paint 20–29). After: 42, 53, 59, 80 ms and 19–31 ms (lock 2.5–4.4 + text 5–8 + paint 8–16). The tab held 336 rows and 18.8–29.6 K characters of buffer. - Seen live after the instrumentation was taken out: a cmd.exe tab echoed typed text (
echo SMOKE_OKran through the PTY and printed) and the omp tab drew its transcript with all colours, panels and toolbar intact; the console showed no new errors. The oneTypeError: … unexpected keyword argument 'regions_from_term'in the console is a reload-window artifact (the previous class instance still loaded for one frame), not a repeat. - Not seen live: end-to-end key latency in an omp tab measured directly — typing into the tab that hosts the session would have put the keys in its own prompt. Its frames use the same path and were measured, but its own input handling sits on top.
- Not done:
_build_text_and_regionsstill walks every cell of the tab each frame (5–8 ms now). Making it per-row incremental is the next step if a large tab still feels slow.
Added: proportional_leading setting (boolean, default false; per-profile or global). When enabled on regular (non-TSP/omp) ai_terminal tabs, automatically adjusts line_padding_top and line_padding_bottom proportionally to the tab's current width in characters. Linear ramp starting at 55 characters, reaching up to ~1.0× font height of extra leading on wide tabs. Improves readability for eye-tracking on long lines without affecting TSP views or surprising users who did not opt in. The adjustment is live on layout and view setup.
- The feature is opt-in because automatically changing view padding can surprise users.
- See
ai_terminal.sublime-settings(global and profile sections) and the implementation in_apply_proportional_leading.
Changed: TSP bars and spark charts follow the tern-sdk of 2026-10-19. The value domain (min, max) now sets the bar heights, so a chart with a fixed range such as 0 to 100 no longer scales to its largest bar; marks draw as dashed reference lines (pixel view: in the mark's tone, with its title under the chart; text view: a ┄ row and a legend line); a bar's tone colours that bar in the pixel view. Charts without these fields draw as before.
- Seen: both drawers run on sample charts (text output read, pixel view produced its images and the legend).
- A node's
hovercard(a floating card in the protocol) shows as that node's tooltip text, up to 600 characters, replacingtitle. Sublime sends no hover event for content inside a phantom, so a real floating card cannot be drawn; seen on sample nodes only. - Not seen: in a running omp session.
Removed: the code that only the four send-text commands used (they went in 0.2.15). queue_input and its idle-drain polling, send_text_submit (which wrote a trailing Enter on its own after a gap), the delay_s option of send_string with the writer's wait for it, and the setting submit_enter_delay_ms. A search of the repo found nothing else calling any of it; 130 lines of code and six lines of settings are gone. Your own typing is unchanged: keys still go through ai_terminal_keypress to send_string and the writer.
- Seen live on Windows 11, build 4200, in the running Sublime: after the reload
send_stringhas its new signature,queue_inputandsend_text_submitare gone from the class, and text typed into a cmd.exe tab with sublime-mcp'sui_type_textran and printed its output. - Not seen live: typing into a Claude Code or omp tab (an old setting
submit_enter_delay_msin a user's own settings file is now ignored).
Removed: the four commands that sent text into a terminal tab: ai_terminal_send_string, ai_terminal_send_string_window, ai_terminal_queue_input and ai_terminal_queue_input_to. A terminal package should not offer a way to send a command into a tab; a program that wants to type into a tab does it as a person does, by selecting the tab and typing. ai_terminal_send_string also had no tab argument and wrote to the active tab, so a call meant for another tab could land in the caller's own tab while still reporting success. The keys you type still reach the program as before (ai_terminal_keypress). The difference from Terminus (which has terminus_send_string) is deliberate and written down in section 17 of docs/DEVIATIONS_FROM_TERMINUS.md.
- Seen live on Windows 11, build 4200, after a Sublime restart: the four classes are gone from the loaded plugin,
ai_terminal_keypressandai_terminal_renderare still there, and text typed into a cmd.exe tab with sublime-mcp'sui_type_textran and appeared in the tab. - Not seen live: typing into a Claude Code or omp tab by that route.
queue_input, its idle drain andsend_text_submitare still in the code with no command left that calls them.
Fixed: the session text log (log_tab_text) was empty for omp. An omp tab has no screen text to scrape, only panels, so nothing was logged. The log now writes the conversation from omp's native document: messages, tool calls and results as text. Folded thinking is written open (omp folds it on screen), so the log keeps what the tab hides. The new setting tsp_log_unfold (default ["omp.thinking"]; a role name, a list, or "all") chooses which folded panels are written open.
Fixed: /new in omp erased the earlier conversation from the text log, because the log lines each paint up with the previous one by its top rows and a new session does not line up. A replaced document is now recognised by the words that vanished (compared as runs of three words, so a resize that only re-wraps lines does not count), and the old one stays in the file above the new one.
Fixed: Relaunch Agent left the old session's panels on screen, so a tab restarted after omp update showed the previous session's content. The old panels are now taken down before the restart.
Fixed: omp's settings pages: a picker (such as Tool Calling Mode) now opens under its own row and the view stays where the reader is, instead of jumping and putting the picker at the top of the page out of sight.
Fixed: the toolbar (Text Edit Mode, Relaunch Agent and so on) sat at the top of an omp tab, or wherever it was first added. It now hangs under the last panel and moves when the conversation grows, and it is drawn as a card in omp's palette. Following the bottom of the conversation allows for its height.
Changed: omp's permission prompt is a card with an accent edge and a bold title, and omp's buttons (Details, Deny, Approve, Dismiss) are small outlined chips, all one colour. An error line beside buttons (the red line under a failed request) is shortened to leave room for its buttons instead of pushing them off the right edge.
- Tested on Windows 11, build 4215 (Python 3.14), in the live omp tab (omp 18.12.2): toolbar position and style, the permission prompt and its buttons, and the text log across
/new(messages ALPHA3 and GAMMA stayed in the log, followed by the new session). The first versions of the log fix failed in the same tab and were corrected before this release. - Tested on the portable build 4200 (Python 3.8): the text log of an omp conversation including thinking, and the Relaunch Agent fix.
- Not seen live: the error line shortened beside its buttons (no error was on screen when it was loaded), a window resize or
/compactduring a long omp session with the text log on, and the settings picker placement after the final change.
Fixed: a long omp session slowed Sublime down. The omp tab drew every entry of the transcript on every spinner tick; with 650 to 800 panels one drawing took about 220 ms on the main thread, 2.4 times a second, so keystrokes queued behind it while the session sat idle. An entry is now drawn again only when its content or the environment (width, palette, stylesheets, local state, image count, toast) changed, and one old tool call still marked running no longer makes every tick take down and rebuild every panel after it. The theme is built once per drawing instead of once per panel.
Fixed: opening a menu was slow. Sublime asks every entry for is_enabled, is_visible and the caption each time a menu opens, and GhostShell answered for each of the ~50 launch profiles by searching the whole PATH for its program, about 150 searches on the main thread per open. An answer is now kept for 15 seconds.
Fixed: ai_terminal_send_string and ai_terminal_send_string_window left text of about 120 characters or more in Claude Code's prompt box instead of submitting it, because the text and its Enter went out as one write and Claude Code reads that as a paste. A trailing Enter is now written on its own, submit_enter_delay_ms (new setting, default 150) after the text.
- Tested on Windows 11, build 4215 (Python 3.14), on the live omp tab with 650 to 800 panels: one drawing 220 ms before, median 45 ms after; main thread busy while idle about 53 % before, 8 % after; output equal to the uncached drawing for all 825 entries, cold and warm cache. Menu open: 514 ms before, 96 ms the first time after, 4 ms on a repeat open.
- Tested with
send_stringon the Claude Code prompt (build 4200, Claude Code 2.1.302): long text plus CR, LF and CRLF, 1500 characters, two sends in a row (both submitted, in order), and a plugin reload with live sessions (they reattach). - After the change, a PowerShell tab and a Claude Code tab were opened on both portables (builds 4200, Python 3.8, and 4215, Python 3.14) with the package linked to the repo: text and colors rendered correctly. The omp redraw and menu timing were not measured on build 4200.
Changed: Respawn (the Tune Profile settings that need a fresh tab, such as font face and size) no longer starts a worker thread for a detachable tab. Detaching from the broker is now a handle close on the event loop and does not block, so the thread was left over from before the one-thread rework; Relaunch and tab close already skipped it. The fresh tab still attaches to the same running session. Tabs of a profile with detachable off keep the thread. Nothing changes for the user.
- Tested on Windows 11 with the installed Sublime Text (build 4215, Python 3.14) after a full restart, on a throwaway tab: Respawn started no thread (13 threads before and after), the fresh tab was attached to the same broker pipe, showed the earlier output and accepted typing, and End Session removed the tab and its broker.
- Not tested on a build with Python 3.8 (build 4200 and earlier) before release, by the owner's decision. The change calls the same
kill()that closing a tab already calls on the main thread, and creates no asyncio objects.
Fixed: the toolbar's Settings panel could show a profile setting as off when it was on (or the reverse), and a second click then flipped it back. GhostShell read its settings files through Sublime's resource reader, which can return the old text for a moment after a file changes. Loose settings files are now read straight from disk, and a toggle pins its new value.
Fixed: the toolbar's Settings panel did not follow changes made any other way (the Tune Profile quick panel, or a hand edit of the settings file). Every open tab's toolbar is now redrawn when the settings change.
- Not tested live by the author before release; the change is small and only touches how settings files are read and when the toolbar is redrawn.
Fixed: a tab did not close itself after its program exited (for example after /exit in Claude Code), although close_tab_on_exit was on. When the broker ended the session, the tab's read of its pipe failed with WinError 233, and Python 3.14's asyncio crashed handling that error ('_ProactorReadPipeTransport' object has no attribute '_empty_waiter') without telling the tab the session had ended. The tab now gets the end of the session and closes itself 1.5 seconds later. The thread-free client that introduced this came with 0.2.7.
Fixed: Move to Windows Terminal no longer asks for approval; the move is harmless, the session keeps running. Recover Session now takes a session back from a Windows Terminal window: it asks the broker to disconnect that window, waits, then attaches. Before, it connected into the busy pipe, reported the live session as gone, and left an empty tab while the session stayed in Windows Terminal. The picker row says "busy in another window — picking it takes it over".
Fixed: reattaching to a session (Recover Session, a plugin reload, a restart) could draw a repeated banner and overwrite text when the tab was not the width the session had been. The broker's saved output mixes screen draws made at different widths, and the tab replayed them all at one width. The broker now records each resize in its saved output, and the tab resizes its screen at the same points during the replay. Sessions started before the update have no records and replay as before.
Fixed: Recover Session listed nothing for a tab that had died but still had its view open; it now lists such a tab. List Sessions no longer lists sessions that have already ended.
Fixed: after a plugin reload, a detached tab said "session kept alive, still running" even if the session had ended meanwhile. It now checks, and says the session had already ended.
Changed: closing a tab with Ctrl+W, the tab's close button or the Close File command is no longer blocked on GhostShell tabs. A plain close detaches the session (it keeps running, and Recover Session brings it back); it does not kill it. Kill Session, End Session and Close Tab (Keep Session Alive) work as before.
- Restart Sublime Text after updating: the changed broker is under
tools/and a plugin reload does not load it. Sessions already running keep their old broker. - Tested on Windows 11 with the installed Sublime Text (build 4215, Python 3.14): natural exit, an outside kill, Kill Session, End Session on a live and a dead tab, Close Tab (Keep Session Alive) with Recover Session, a plugin reload, Move to Windows Terminal and back, Detach All and Reattach All, and a full Sublime restart. Also on a portable build 4200 (Python 3.8): the same list, and on the final code natural exit, typing, detach with Recover Session, and a plugin reload.
- Known flaw, not fixed: in a very narrow tab (about 20 columns) on build 4200, text typed after a plugin reload was drawn into the middle of the prompt row. Tabs at the normal width (94 columns) did not show it, and it is not caused by the width records above (it also showed before them). Not investigated further.
Changed: each Sublime Text keeps the records of its own sessions in its own data folder, <data folder>\Local\GhostShell\broker_sessions, instead of one machine-wide folder (%LOCALAPPDATA%\GhostShell\broker_sessions) shared by the installed Sublime and every portable copy. With the shared folder, Recover Session and List Sessions in a portable Sublime listed the installed Sublime's sessions, and Reattach All From Windows Terminal could take over a session that belonged to another Sublime (it asks a busy session to disconnect, which would have detached the other Sublime's tab). Now a Sublime lists and reattaches only its own sessions.
- Sessions already running when you update keep their record in the old folder, and the installed Sublime still reads that folder until they end; no new record is written there. A portable Sublime does not read it.
- The
broker_registry_dirsetting still overrides the folder. tools/recover_console.pytakes--registry-dirfor its own session lookup; Move to Windows Terminal always names the session, so it is not affected.- Tested with the installed Sublime (build 4215) and a portable build 4200 side by side: each saw only its own session, and Reattach All inside the portable left the other Sublime's tab attached.
Fixed: with 0.2.7, typing did nothing in a tab on Sublime Text builds that run plugins on a real Python 3.8 (build 4200 and earlier): the keystrokes never reached the session, and the console showed "got Future attached to a different loop". The write queue was created before the plugin's event loop existed, which Python 3.8 binds to the wrong loop. It is now created on the loop. Found by running 0.2.7 in a portable build 4200, which I should have done before releasing it.
Tested on Python 3.8.12 (build 4200): opening a tab, typing, detaching with Close Tab (Keep Session Alive), Recover Session with its replay, resize, a plugin reload with the tab open, Relaunch (a new broker replaced the old one), Move to Windows Terminal (the relay was given the tab's size, 73x29) and back with Recover Session, and End Session. Also still working on build 4215 (Python 3.14).
Changed: GhostShell no longer runs a thread of its own for the terminal. Each tab used to have a reader thread and a writer thread, the broker that keeps a session alive had five, and timers, session discovery and the Windows Terminal ConPTY download each started threads too. All of that now runs on one asyncio loop that Sublime Text's main thread steps, and the broker (tools/agent_broker.py) is one asyncio program. Typing, output, resize, Close Tab (Keep Session Alive), Recover Session, Kill Session, End Session and New Session work as before. The cast recorder and the session text log keep their own thread on purpose, so a slow disk never holds up the editor. A profile with "detachable": false still uses the old direct ConPTY and its threads.
- Output is parsed on the main thread now. A 30,000-line burst stalls the editor no more than it did with threads (measured against the old client on the same burst).
- Reloading the plugin detaches each tab and reattaches it, as after a restart; the session itself keeps running.
- Tested on Windows 11 with Sublime Text build 4215, where a 3.8 plugin runs on the 3.14 host. Older builds with a real 3.8 host were not tried.
Fixed: Move to Windows Terminal opens its window at the tab's size and keeps the session at that size. Before, the session was resized to the Windows Terminal window, so what the program drew there (boxes, rules) was laid out at another width when the tab came back, and the conversation showed smeared frames and over-long lines.
Fixed: the status tones (setting status_tones) no longer play note by note with gaps. They are rendered once to a small sound file and played by Windows, so they come out faster and smoother. A plugin reload no longer makes the tone player raise "release unlocked lock".
Fixed: auto_approve_permissions, modern_conpty, scroll_manipulation_enabled and tsp_aside_column were reported as unknown profile settings every time the plugin loaded, although they work. They are known now.
Changed: Recover Session, List Sessions, Reattach All From Windows Terminal and the Windows Terminal ConPTY download no longer make the editor wait while they look for sessions, ask a busy pipe to free up, or download the 1.7 MB.
Restart Sublime Text after updating instead of reloading the package: a plugin reload loads ai_terminal.py but not the files under terminal/ and tools/.
Added: the setting tsp_tab_status (off by default, on in the omp profile) and its companion tsp_tab_prefix (omp: π). omp leaves its run state and session name out of the window title when it draws through the Tern Surface Protocol, so its tab showed only the profile name. With tsp_tab_status the tab is named the way omp names its own title in a plain terminal: the prefix, the run state, then the session name.
- The run state comes from omp's Program Status Protocol (OSC 7501) reports: a spinner frame while omp is working,
!while it waits on you, a check mark when a turn is done, a cross on an error,>when idle. omp's own title shows done and error as>; the tab does not. The cross has not been seen in testing. - The session name is shown exactly as omp sends it, with the icon if it has one. It comes from omp's card-form title in the console title (
<icon> CODE: title) or from the<name>: Completenotice omp sends at the end of each turn, which also carries a hand-typed/rename. The profile name shows until omp has sent one. - The titles that omp's child processes write to the same console (
npm exec …,cmd.exe) are not used as the session name. - A hand-typed rename shows at the end of the next turn, not at once.
- Takes effect for tabs started after the change. Tested on Windows with omp 18.11.0 only.
terminal/tsp_view.py gained an optional on_state callback that the native view calls after each draw. Restart Sublime Text after updating, because a plugin reload loads ai_terminal.py but not terminal/tsp_view.py, and the omp tab then falls back to plain text.
Fixed: the switches, steppers, drop-downs and Reset buttons on omp's /settings page did nothing when clicked. Every one of them now sends its change to omp. Reset puts a setting back to its default.
Fixed: coloured text from a program that draws through the Tern Surface Protocol (for example green "ok" marks) was drawn black on the dark panel. Programs that do not set their own colours now get the standard ANSI palette.
Fixed: the Claude tab no longer jumps past the end of its text after a large block of old output is trimmed.
Changed: omp's /settings page opens at its top, with its title, page list and search box in view, instead of at its end. Typing in its search box no longer pulls the view to the bottom. The page stays inside the omp tab: the window's groups and layout are not changed.
Added: the setting tsp_aside_column (off by default). When it is on, the Settings page opens in a column of its own beside the tab, as the Tern protocol describes, and closes again with the tab layout restored. It adds a group to the window, so it is off unless you ask for it. Takes effect for tabs started after the change.
Added: much fuller support for the Tern Surface Protocol, so programs other than omp can draw rich output in a tab: plain HTML elements and forms with checkboxes and radio buttons, images and command blocks, style sheets, output that stays in the scrollback after the program ends, scrolling and jumping to an item in a list, and announcing the terminal's colours and reduced-motion setting. A program that opens a surface with listen:false no longer gets any answers sent into its input.
Restart Sublime Text after updating instead of reloading the package. Once, after a detach and reattach that followed a code change, an omp tab showed raw protocol text until Sublime was restarted.
Fixed: in omp's native view, a view that the reader pushed below the last line while omp is working could still be thrown back to the ordinary bottom by a redraw. The view is now put back where the reader left it.
Fixed: in omp's native view, a reader who scrolls below the last line to put the input box in the middle of the screen keeps that place; the view no longer snaps back to the bottom on the next redraw. Typing no longer moves the view while the input box is completely on screen. When the input box is off screen, typing still returns the view to it.
Changed: the omp profile no longer sets tsp_animation_ms to 0, so omp's spinner and running-time counters animate again in the native view (four updates a second while omp is working). 0.2.2 shipped with the animation off; the scroll fixes in 0.2.2 were then tested with the animation on. Remaining rough edges: scrolling up while omp works can still jitter now and then, typing returns the view to the input box by design, and the view cannot be scrolled past the last line.
Fixed: in omp's native view, scrolling back no longer snaps to the bottom on every spinner tick or while /usage is open. A reader who has scrolled up keeps their place, and the scroll to the bottom that follows an overlay opening stops as soon as the reader scrolls.
Fixed: after Sublime restarts, an omp tab that was idle no longer shows the replayed raw output until a key is pressed. The tab now asks omp to send the whole conversation again straight away.
Added: moving an omp session to Windows Terminal now shows the conversation as text. Windows Terminal does not speak the Tern Surface Protocol, so the window used to stay blank or fill with escape codes. Each panel is written once to the window's scrollback, and only the newest panels, an open overlay and the input line are redrawn. Panels are plain text: no colours or images.
Fixed: the omp input box showed its placeholder as raw list text, and a completion appeared one column to the right of the caret in the Windows Terminal view.
Added: the omp tab registers its panels so editor tools that list a view's phantoms (sublime-mcp get_view_phantoms) can read the tab as text.
Added: optional view-jump tracing (debug_view_trace, off by default, switches itself off after debug_view_trace_hours), status tones when a program reports a status change (status_tones), a settings toolbar that lists every on/off setting, and an auto-approve that waits for a pause before it answers a permission prompt.
Changed: the omp profile sets tsp_animation_ms to 0, so omp's spinner and clock are not animated in the native view. Set it to 250 to bring the animation back.
Added: a Muse profile (Muse Code CLI) with entries in the Ai Terminal menu and the side bar menu. It is untuned: no mouse or page-key behaviour is claimed for it.
Fixed: when Claude Code redraws its whole conversation in one frame, a viewer who was at the end of the tab is no longer left a quarter of the way down it; the view follows the new end. A viewer who has scrolled further up keeps their place.
Fixed: a small drift of the view (a palm brushing the trackpad, a layout shrink, typing after pushing the tail up) no longer switches off following the end of the tab. Following stops only when the view is well above the end.
Fixed: Claude Code hides the terminal cursor and parks it in the bottom-right corner while it redraws the spinner or footer. The caret is no longer moved there, which had put it over the status line and scrolled the view to it.
Note (2026-09-21): the owner deleted the whole
tests/folder that day. References to tests in entries dated on or before then describe what was checked at the time; they are not ongoing protection. Changes are now proven live in Sublime (AGENTS.md, rule 7a).
Added: a newer ConPTY for profiles that set tsp_enabled (the omp native view). Windows' built-in ConPTY
swallows the questions omp asks at start-up, so that view never started. GhostShell now downloads Microsoft's own
Microsoft.Windows.Console.ConPTY NuGet package once (x64 only), checks the package hash and then each file's hash,
and keeps conpty.dll and OpenConsole.exe in terminal/bin/conpty/. A wrong hash, no network or a non-x64 CPU
prints one line and the tab uses the built-in ConPTY. Provenance: terminal/CONPTY_PROVENANCE.md.
Added: the omp native view through the Tern Surface Protocol. Experimental, opt-in per profile, not recommended.
Added: a log_root setting that sets where GhostShell's own logs go. With it unset nothing is logged and the code
fails loudly rather than guessing a location. The broker lifecycle log is opt-in via GHOSTSHELL_BROKER_LOG.
Changed: mouse routing follows Ghostty, and Text Edit Mode also takes the mouse. Font settings default to
Sublime's own font (the dead terminal_font setting is gone). The Ai Terminal menu is at the top level. Claude,
Auggie and Vibe profile tuning is now shipped instead of living only in the owner's User override. The Gemini profile
was removed because it does not work.
Fixed: the typing jiggle and status-update jiggle (only changed lines are redrawn, steady tab height), hover or focus snapping a scrolled tab to the top, Nuke never clearing the terminal engine, the GhosttyError crash while building its own message, a rewrap taking about 7 s after hiding the minimap, and leftover files from brokers that died without cleaning up.
Removed: unit tests, notes, plans and scratch files from the shipped package.
Removed: all usage and quota features. The scanner read other CLIs' saved OAuth credentials, called the
providers' usage endpoints every 20 minutes and, for Claude Code, rewrote .credentials.json when refreshing a
token. GhostShell is not an authorised app with those providers, so it no longer does any of this. The
usage_scan_enabled and usage_refresh_minutes settings and the "Refresh Usage & Quota" command are gone.
The Launch Agent list, the menu captions and the session-info view no longer show percent remaining, reset times,
"quota exhausted" or "no usage data". An agent row shows only whether its program is installed. Use omp usage
for real quota figures. A test (tests/test_no_usage_in_code.py) fails if usage code is ever added back.
Changed: an agent whose program is not installed is no longer listed on the Launch Agent list, and its menu entries are hidden. Previously it was listed and marked "Not installed". The Cody profile was removed.
Changed: agents are launched from the Ai Terminal > Agents and Ai Terminal > Shells submenus, sorted A-Z,
instead of a picker. Agents that are not installed are hidden. The "Launch Agent…" picker, its palette entry and its
Ctrl+Alt+N shortcut are gone, and so are the picker code, the folder picker that went with it, the "Default Profile" item and the sidebar's
"Open Ai Terminal here…". The same two submenus are in the sidebar's right-click menu. The submenus are
built ahead of time by tools/regen_agent_menu.py (Sublime has no API for adding menu items while it runs), and a test
fails if the menu and the agent list ever differ.
Bug fix: GhostShell still sent a 1-row SIGWINCH when Sublime's
viewport height wobbled by ~15px (H-scrollbar or int(h/lh)-1).
0.1.6 removed the extra emoji cell; the row count could still flip
47↔48, and omp still dumped the conversation.
accepted_rows now ignores a 1-row change in both directions, matching
the live pin that stopped the loop. A real window drag (≥2 rows) still
resizes the PTY.
An inline OpenUri phantom after a full-width URL can still steal one em
and pop the H-bar. That is OpenUri's "show_open_button": "always",
not this package. "hover" keeps the button without parking an icon
on the line. Do not enable OpenUri "draw_uri_regions" on a terminal
tab: GhostShell view.replaces the buffer every frame, so those
regions land on stale offsets (random blue underlines during output).
Hover still finds a URI under the caret. Underlines cannot show on the
live command line (typing + per-cell ai.fb.* fills).
Bug fix: a wide character (emoji) in a full-width TUI box made
GhostShell send a 1-row SIGWINCH in a loop. The app then replayed the
whole conversation until the prompt came back.
libghostty-vt already knew the glyph was 2 cells
(ghostty_unicode_grapheme_width). The Sublime line also kept Ghostty's
spacer space, so the box was one em too wide, the H-scrollbar stole
viewport height, and measured rows flipped 47↔48. The spacer is dropped
now. A sub-cell jog can remain if the font's emoji advance is not
exactly 2 × em_width; that is not enough to pop the scrollbar.
Also: scrollback_history_size is still lines; it is converted to bytes
at terminal_new because libghostty-vt's max_scrollback is a byte
budget (ghostty#12769).
The session text log is the painted tab without the 300-line cap.
Bug fix: the session text log dropped anything that left the tab.
With log_tab_text on, the log rewrote the whole file as a snapshot of
the current paint. Capped scrollback, in-place redraws, and replaced
lines (thinking then answer) vanished. The file now only grows: lines
are appended as they leave the live last row, and the last row is
written when the session closes.
Opt-in is unchanged (log_tab_text, default false). Anyone already
logging was losing history; this release fixes that.
GhostShell is a terminal for Sublime Text with profiles for shells and AI coding CLIs, native editor scrollback, and detachable sessions. It uses Windows ConPTY and libghostty-vt rather than depending on another terminal package.
- Profiles for shells and AI coding CLIs — launch cmd/PowerShell/WSL or any installed AI CLI (Claude Code, Codex, Pi, Cline, OpenCode, and others) in a real terminal tab, with per-profile mouse handling, alt-screen, and page-key routing tuned against each tool's actual behavior.
- Detachable sessions — a session's broker process can survive a Sublime Text restart and be recovered afterward, backed by a standalone Python interpreter and Windows Task Scheduler.
- Native editor scrollback — real Sublime scrollback and folding over terminal output, not a fixed-size alt-screen matrix.
- Privacy-conscious defaults — session recording (
log_tab_text,record_asciicast) is off by default; it is an explicit opt-in.
- Full test suite passing (624 tests, 1 intentional skip).
- Real isolated-Sublime-install smoke testing (not just unit tests) covering: privacy defaults taking effect at runtime, the DLL download/checksum path (including a real fix for a Windows ACL-related install hang), detach/ reconnect across a simulated restart, package update, and uninstall behavior. See docs/PACKAGE_CONTROL.md for the full dated findings.
- Not yet covered: interactive resize/selection in a real Sublime UI (needs a human, or a UI-driving tool this project's test harness doesn't have).
- Windows x64 only.
- First terminal launch needs internet access to download the pinned native library (see Native library for offline use).
- Not yet listed in Package Control; see docs/PACKAGE_CONTROL.md for submission status.