Changelog
Changelog
Everything that has changed in fictty, newest first, from the prototype on 9 October to today. All
dates are 2026. Four releases were tagged, all on 11 October; everything since is unreleased work
on main, broken up by day and theme. Since 11 October fictty has been moving from the terminal
into a native window, and since 13 October the terminal is dropped: the phases are in
native.md, the layout and style stack in expressive.md,
step 3 in layout-step.md, step 4 in rows-step.md,
and what comes next in building-blocks.md and the plan.
How to use what’s listed here is in the guide; how a release is cut is in
releasing.md.
Unreleased (since v0.2.2)
Six days of work after the last tag: a fuzz driver and a pseudo-terminal sim, then the move to a native GPUI window on macOS (phase 0, then phase 1’s steps 1 to 4), a public demo, two dogfooding apps (Daybook and Nocturne) and the fixes they found.
17 October: rows as nodes (step 4) and the demo audit
Lists, trees and tables
- A list’s view has one model,
state::Lines: its lines (rowscolsto a line), each line’s height in cells and the view’s height, withtopin lines. Following the selection, the wheel, paging, what’s in view, what the window builds and the readback’s scroll all ask it, where each did its own arithmetic on a count of rows (step 4a). - A row template with
size: "fit"makes rows as tall as what they show. The frame reports the height of each row it built, the state keeps them by row key (dropped on a new width), rows not built yet count as the average, and a line is as tall as its tallest row. A fit list, or a list in a scroller, takes its lines’ total as its height. A 50,000-row list of fit rows takes 12.6 ms a frame headless against 10.9 for fixed rows (4a). - A button in a list’s row template keeps its click: a press on it selects that row, without
the list’s own click, and runs the button’s click on it (
Msg::Press, by the button’s path in the row template), so a card’s ♡ loves that card. Keys stay the list’s. Tests press it withat_part, and an agent with the socket’sclickand a part (4b). - Fixed: a click on a row whose action wrote the store sent the selection back to the row it left, because the click didn’t note the new row’s key (4b).
- Trees in the window have their indent (two cells a level) and fold glyph (▾, ▸, or the tree’s
leaf), styled by
tree.guideand worked out once in the core (model::fold_lead) for the window and the readback. A press on the glyph is a press on the row’s partfold: it selects the row and folds or opens it. A tree’s rows can be a row template, as a list’s can, with its buttons reaching their own row. The window drew trees flat before (4c). - Tables in the window lay every line (header, rows, a footer of totals) on the same columns:
sizein cells, px, a percentage or a share, andalignfor titles and cells. They were equal shares that ignored size, align, heat and total. Afitcolumn is a problem rather than a guess, since each line is laid out apart (4c). heaton a table column has one meaning, where the value sits frommintomax(Heat::at), drawn as the theme’snegorposover the cell, stronger towards the ends (4c).- Table totals are
Column::total, formatted bymodel::grouped(the terminal’s money format, moved to the core) and read back as the table’s footer (4c). - A table column’s
cellis a node template filled from$item; its buttons are the row’s parts, the column first (Node::row_part), so a ✕ in a row removes that row (4c). - A list, table or tree’s title takes
{$rows}, how many rows it shows after its filter. Inside aneachit’s the list’s own count, where{$count}is the each’s. - Tabs count their choices by their titles, not their pages, and a tab without a page shows nothing, so tabs alone are a bar of choices (a radio group). More pages than tabs is a problem.
- Tab titles, and the tab bar’s lead and trail, take
{$store.key}as texts do.
Styling and themes
onis a condition, read aswhenis: while it holds the node is in its on state, styled by the theme’s parts (button.on) and its variant’s, and the readback says(on). A toggle is one node, where Nocturne had Play and Pause, ♡ and ♥ as pairs swapped bywhen.- A variant takes
partsof its own over the theme’s, name by name with their states, so one list’s rows can be cards while another’s stay rows. justify,itemsandselftake a placeholder (a value, or kept as written until a template fills it; a problem if it’s left unfilled), so a chat bubble sits on its message’s side from its data.
Templates and actions
{$store.key}in a template reads a store entry beside the bound value, so one text can say NOW PLAYING or PAUSED where two were swapped.{$item.x}takes filters as any placeholder does.{"select": "next", "in": "tracks"}(andprev) moves another list’s selection a row, without moving the focus there and back.- Fixed: an
eachinstance filled the$iteminside a list’s row template with its own item, so every kanban card’s title was empty. Filling now stops at a template inside the template. - Fixed: a whole list’s height rounded down, so it was half a cell short and scrolled.
Window
- The node renderer’s stack, table and tabs arms are methods of their own, as the grid’s is: Nocturne’s deeper tree overflowed a debug test thread’s stack.
- Known: a
fitnode held bymaxinside a fit row is measured one line tall (Taffy measures under max-content without the max). rows-step.md records it, and the chat bubble is built from shapes that measure right.
Examples and demos
- The wringer’s chat is a thread of bubbles, a row template on each message’s side with a look
from its data, and kanban’s columns are lists of cards as tall as their titles. Both run in
every theme without problems or cuts in
tests/wringer.rs(4d, which landed before 4c). - The wringer’s sheet wrote its heat value as a path (
"q1") where it’s a template ("{q1}"), so its heat never showed; fixed, and it joins the every-theme test. - Nocturne without workarounds: its toggles are single nodes with
on, its heading reads the store, n and p useselect next, its shelf’s rows are cards through variant parts, its spacers are justified rows, and its player readsplayingandshufflefrom the store rather than from which button shows. - The other demos audited the same way: empty spacer texts are gone from the player, Kestrel’s and mail’s button rows; the settings radio group has no empty pages; kanban no longer stores each column’s count beside its cards; Kestrel no longer binds its tabs to a store entry only to show an unread count; chat’s Send button sends, sharing the composer’s Enter action.
Docs
- rows-step.md plans step 4, rows as nodes: one model of a list’s view and fit rows, a row’s own buttons, trees and tables, then chat and kanban rebuilt.
- building-blocks.md writes up the demo audit: Aram’s rule for demos (only the building blocks, no workarounds), the signs of a workaround, what each demo needed and the blocks it got, what was kept and why, the gaps left, and the next steps in order.
17 October: wrap, grid and scroll (steps 3c to 3f)
Layout
- A list’s
colstakes{"min": len}beside a count: as many rows to a line as fit, each at least that wide. The width the frame laid the rows across is kept in the list’s view state,state::per_lineis the one place the count is worked out, and the readback says(N to a line). Nocturne’s shelf went from six copies of one list, one per width, to one. colsalso takes amaxbeside itsmin({"min": "240px", "max": 3}), so three features on a wide window don’t become three and two empty columns.wrap: trueon a row, col or each flows the children that don’t fit onto the next line, by their own sizes (3c).- A
gridlays its children out a line at a time in columns that line up:colsis a count,{"min": len}for as many as fit, or a size per column (["200px", "*", "2*"]), and a child takesspancolumns. Aneachwithcolsis a grid of its instances. A list’scolstakes sizes per column too (3c). - A grid column that’s a percentage or
fit,cols {min}without an id to keep its width by, andspanoutside a grid are problems. scroll: trueon a col, grid or each scrolls down, on a row across. Its offset and extent are in the state by id. The wheel pans the innermost node under it and what a list or scroller can’t take goes to the scroller around it. Page Up and Page Down page a focused list, else the scroller around the focus. The readback says(scroll 12/40)(3d).- The focus is brought into view whenever it moves, its list’s row moves, a key comes or a paste arrives (not on a page of a scroller, and not on a UI’s first focus). The wheel doesn’t, since the fuzz caught it scrolling the focus away (3d).
{$index}and{$count}in each and row templates; a float’sxandyare lengths, so data can fill them; and aneachwithstack: truefloats its instances where their data puts them, as a calendar’s events (3e).- A node clipped away by a scroller has no rectangle or hit, and a list’s or editor’s room is its whole box, not the part a scroller shows (or a list inside one scrolled itself instead of letting the page move).
- Fixed: since 3c each row of a list with
colssat in a slot whose height Taffy found by laying the card out again. The slot takes the row’s known height now, and Nocturne’s frame went from 4.4 ms to 3.4 ms headless. - The grid is drawn by its own method: inside the recursive node renderer its locals made every frame bigger and overflowed a debug test thread on Nocturne.
Engine and CLI
fictty run --watchreloads the--themesfile as well as the UI, replacing themes of the same names and keeping the one shown chosen.
Templates
- A map’s catch-all can read the value as
$({kind|done=✓;*=<accent>$</>}); it always could, and is now documented and tested with the?and!forms beside it.
Examples and demos
- The wringer’s settings, landing and calendar, and Kestrel’s Floor, are rebuilt without tricks
(3f): settings’ labels are centred beside their fields and its save bar is justified; landing
scrolls and its features and prices are grids of as many as fit, up to three; the calendar’s
hours are an
eachand its events aneachwithstack, placed atyfrom their data instead of a script working out the gaps; Kestrel’s Floor cards are a grid of up to four that wraps on a narrow window.tests/wringer.rsandtests/demo.rscheck them in every theme at two sizes. - Nocturne’s room scrolls: the hero is fixed, the shelf as tall as its covers, and the album chosen is brought into view; its test runs at 1280x800 too.
- Nocturne’s player keeps time with Up Next hidden:
nocturne.pywriteslibrary.jsonwith each album’s track lengths, which the player reads instead of the hidden list.
16 October: alignment and fit (step 3b), and Nocturne
Layout
justify(start, center, end, between, around) anditems(stretch, start, center, end, baseline) on a col, row or each place its children along and across it, and a node’s ownselfoverridesitemsfor it. Unknown words fail to parse, naming the ones they take."aspect": "16/9"(or a number) keeps a node’s shape: it takes the side it’s given and works out the other.size: "fit"makes a node as big as what it shows (flexbox’s0 1 auto), held bymaxand giving way when there isn’t room. An editor in a fit node is as tall as its rows wrapped at its width, so Headless now draws until the sizes it learns settle, up to four times. A cut line carries an unseen copy of itself for measuring only inside fit nodes, so other lists pay nothing for it.- Fixed: the window drew a hidden node (its
whenfalse) as an empty box, so its row or column still put gaps on either side of it. - Fixed: rows in a list with
colsgrew from nothing, so a short last line’s rows came out wider than the rest. Each row is now a fixed share of its line. - Fixed: of several nodes with one id (one shown per width), keys and clicks acted on the first in the tree, shown or not. Lookups by id now take the node that shows.
Styling and themes
- Colours take an alpha: a token, part or style may be
#rrggbbaa(or#rgba), drawn see-through in the window; shadows multiply their own alpha into it, and an opaque alpha reads back as#rrggbb. - The window draws a
gauge: its style is the track and a new part,gauge.fill, the bar, with a label over it; the readback says its label or percent. - A gauge’s maximum is now
of, a number or a template. Fixed: its oldmaxnever reached it, since every node’s ownmax(how big it can grow) took the key first, so"max": 100drew 100% in the terminal too. - A type role named like a part (a role called
title) is a theme problem naming both, since<title>also took the title part’s ink. - A token
edgethat isn’trounded,square,plain,thickordoubleis a theme problem; a theme that usededgeas a border colour lost every corner.
Actions and readback
- An action from a node that isn’t a list, tree or table reads the value it’s bound to, so a
love button bound to
@albumswith{"toggle": "store.loved/{id}"}loves the album it shows. - The readback says a node was cut even when it has no id, naming it by the nearest id (or root) and the way down from there.
Examples and demos
- Daybook centres its writing column with
justify: "center"instead of empty texts either side. - Nocturne (
examples/nocturne/): a listening room of twelve made-up albums whose covers and roomsnocturne.pydraws with Pillow into the temporary directory, so nothing binary is checked in. Its theme sets three faces, gradients and coloured shadows, and the whole screen follows the album chosen. It plays: space, the transport, ♡, ⇄, a click on a track, search and Browse all work as data, andplayer.pykeeps time over the socket. It fits a laptop: the sidebar and rail go when there’s no room and the shelf holds three to eight covers a line. tests/nocturne.rswrites it with--no-artand checks no cuts and no problems at three sizes, that the room follows the album, and the controls.- The release fuzz is clean after 3b.
Docs
- native.md no longer points at the spike’s branch, which is removed; its numbers stay.
- The plan marks 3b done and 3c next, and places Nocturne’s gaps in step 3’s finish line.
14 October: lengths and boxes (step 3a), and a gallery from parts
Layout
pad,margin(new, on any node),gap,minandmaxtake one length type: cells,"8px", or a name from the theme’sspacescale.padandmarginare one length for every side,[x, y], or[top, right, bottom, left], as in CSS, so a node’s pad and a style’s pad mean the same thing; agapis one length or[x, y]. A length that isn’t one is a problem, per node and field (3a).- Lists scroll smoothly and show where they are:
topis in lines and may be a fraction, the window turns a trackpad’s pixels intoMsg::Pan, a mouse wheel’s notch is still three lines, and a scrollbar is drawn from thescrollbarandscrollbar.thumbparts (now defaults; shapenonehides it). The readback says(scroll 6/16).
Lists, trees and tables
multi: truelets a list, tree or table pick several rows as a Mac list does: ⌘-click (⌥ in a terminal), ⇧-click and ⇧↑/↓ for a range, ⌘A for all, Esc or a plain move back to one. Picked keys and the anchor live in the node’s view state, so they replay and survive rows coming and going.$pickedgives each node’s count, keys and rows to templates andwhen, andtoggleandremoveact on every picked row. Over the socket it’ss-clickandd-click.$picked.<id>hasindexandtotal, for “6 of 47”.- A list’s row can be a node template, filled from
$itemas an each’s is, so thumbnails are rows that select, pick, scroll and take keys.colslays rows N to a line, withnext_rowandprev_rowkeys for one row on or back. - Fixed:
row.selected.blurpainted the panel colour, so a list’s selection vanished once the focus moved away. It’s the hover grey now, as a Mac list out of focus is.
Editors
- An editor bound to a multi list’s selection, with a
docper row, edits every picked row’s entry. While they hold the same text, every edit goes to each (so undo steps back in each); while they differ it shows an empty text of its own with “Multiple values”, and its first edit puts what it holds into every entry. A field left alone writes nothing. The readback counts the entries and says when they’re mixed. - Fixed: mirroring only edits let picked entries drift apart; every message now goes to each, and undo on a mixed field steps back in each entry’s own history.
- Fixed: under a theme whose
screenpart names a type role, an editor drew in its monospace face at the role’s size, so the caret sat inside the last word. The editor sets its grid’s own face, size, line height and weight.
Window
- Images draw in the window with GPUI’s
img(PNG, JPEG, GIF, WebP, BMP, TIFF), whole inside the node or withfit: "cover".srcis a template over the bound value, so a picture follows a list’s selection;altor the path shows when the file can’t be drawn. - A click on a node without a click runs the nearest click around it, so a picture inside a clickable row no longer swallows the click.
Styling and themes
- The shown tab’s part is
tabs.selected, nottabs.active, matchingrow.selected; every theme in the repo is renamed. - A font file a theme names that doesn’t load is a problem naming the font, the file and why
(
fonts_failedinget --state); its text still shows in the default font. - A default token (
accentwith no theme loaded) is no longer reported as an unknown tone; the check asks the sameTheme::knowsthe resolver uses. - A style’s
bordercan be written short,"[width] [solid|dashed|double] [colour]"; a string failed the whole push before, naming no node.
Store, binds and templates
toggleofstore.remove/{id}flips an entry named from each picked row, so a flag lives beside a row’s fields and a row template shows it with awhenon that entry.- A
whenis filled from its node’s bound value before it’s checked, asdocandsrcalready were, so a detail pane can show the selected row’s flag. - A bind names a store key with dots in it (
remove/photo.tif): it reads the longest store key it starts with, and the rest is the path into it. It cut at the first dot before. - A name that’s both a store entry and a data source is a problem saying which one binds read; a stale seeded entry had silently hidden a source’s new rows.
fictty delete(the socket’s writedelete, with--if-rev) deletes a store entry; the log shows it and a replay repeats it.
Socket and CLI
fictty quit(and thequitrequest) ends a screen wherever the focus is;key c-cis an editor’s copy while a field has the focus.- A running screen holds a lock on its store file, and a second screen on the same store refuses to start, naming the pid that has it. The lock lives in the temporary directory, named from a hash of the store’s full path, so nothing is written beside a store in a synced folder.
- Fixed: a quitting window removed its socket path after a new screen had already bound a new file there, leaving it unreachable (one relaunch in five). A screen now removes the path only while it’s still the file it made.
Docs
- layout-step.md gains “Start here”: the decisions to confirm, 3a as a list of commits, a release-build baseline of frame build time, measurements after 3a, and what 3a taught for 3b.
- AGENTS.md records what CI taught (no terminal on CI, slow debug runners, two clocks in one test,
Linux-only clippy), how to close a window with
fictty quit, and to leave other people’s screens alone. - gallery-notes.md records the session that built the fictty-ui skill
and the gallery from parts (Aram’s call: no gallery node). The plan ticks the gallery and the
skill and drops to-dos the move to the window superseded; the guide names
next_rowandprev_row.
13 October: themes as whole styles (step 2), the public demo and Daybook
Styling and themes
- The layout and style stack is decided in expressive.md: adopt what GPUI already has (Taffy layout, text, paint), themes as whole styles resolved in the core and read back by agents, a layout vocabulary, rows as nodes, and drag and motion as data. The terminal is dropped and the theme kit pulled forward.
- A theme token
edgesets every node’s border shape: anything butroundedsquares the corners, andthickordoubledraws a panel’s border heavier. - Style resolution in the core (
style.rs, step 2a): a node’s part, the parts of the states that hold layered over it, then its variant, tone and own style, with tokens filled in as#rrggbb; its border, title, edge and backdrop resolve with it. The readback carries it:fictty screen --nodes --style,fictty render --nodes --style, andstylein the JSON. - Wrong names in a theme are problems: parts no component has, spec words that mean nothing, colours that aren’t tokens, skips that aren’t row variants, unknown scale entries, roles, shapes, cursors, border styles and fields no style has.
- Parts as whole styles (2b): a part, a node’s
styleand a variant’sstyleare a short ink ("accent+b") or a whole style withfg,bg(a colour or a gradient), ink modifiers, a type role,pad,radius,border,shadow,ring,shape,opacityandcursor. Themes gain scales (space,radius,depth,type), fonts, andmotion(kept for later). - The window draws the resolved style (2c) through one mapping: background or gradient, ink, pad, corners, borders (dashed too), shadows, a ring, opacity and cursor. What it hard-coded (a button’s pad, a panel’s inset, tab pills, row hover, the input’s box, Markdown’s inks) is now default parts in the core, so the readback shows what’s drawn. Tabs take the shape their part gives: pill, underline, segment or plain. Frames build in about twice the time (0.06 to 0.11 ms on the ticker) with the frame rate unchanged.
- The window reports any node under the mouse, not only rows, so
.hoverparts hold for buttons. - Type roles and theme fonts (2d):
"style": {"type": "display"}or<display>…</>in markup sets the family (or a theme’s font file), size, weight, line height and tabular numbers. Tracking reads back but isn’t drawn (GPUI 0.2.2 has no letter spacing). - Our own ellipsis (2d): a one-line text is shaped once it knows its width, and what doesn’t fit
is cut with
…, keeping the right side whole andkeepcells of the left.lines: nshows at most n wrapped lines. The readback says(cut). GPUI’s own clamp kept Taffy’s smallest measure and showed a single word. - Cards and the status line (2e): a
backdropresolves into a card (fill or gradient, border, corners, a shadow or glow). The status line is the UI’s: the status, else the first problem in thestatus.errorpart, else hints;"status_bar": "speed"adds the speed meter andfalsehides the line. - The styling study (2f):
examples/window/themes.pywrites the wringer’s six themes as whole styles sharing one vocabulary, so any screen wears any theme, and a test checks every example screen under every theme. styling-study.md found type moves a screen’s character most, then edges and depth, then selection and focus, palette last; its before-and-after screenshots were taken in the window.
Editors and input
- A ⌃, ⌥ or ⌘ key a focused editor has no use for (by caretline’s keymap) goes on to the UI’s keys, so ⌘T works while writing.
- Fixed: a click on a task’s box ticked it and moved the caret into the box; the caret stays.
- An input’s
requiredholds its keys while it’s blank.
Templates and actions
- Action templates read sources by name (
{today.id}), behind the selected row’s fields. {"toggle": "store.zen"}flips a store entry, not only a field of a selected row.- Fixed: a
dothat stepped a list’s selection and then wrote the store had the selection follow its old row back. - Fixed:
fictty set <list> {"selected": n}was undone at once, since the list still remembered the old row’s key.
Testing and CI
- CI is green again, after failing since 12 October: the terminal fuzz builds a fresh emulator on
a resize (ratatui’s
Terminal::resizeasks the real terminal, which CI hasn’t got), Linux’sopenptysignature is handled, and a debug build’s fuzz time budget is four times a release build’s (FUZZ_BUDGET_MSoverrides it). - The pty test spaces presses half a second apart on both clocks, so timing never turns them into double or triple clicks on one screen and not the other.
Examples and demos
- The wringer (
examples/window/): nine designed screens, six themes andopen.sh, the test of done for each step. - The public demo (
examples/demo/):open.shopens the window andagent.pybuilds Kestrel Cycles, a made-up bike workshop, one logged command at a time (push,put,screen --nodes,set,patch,merge,theme,screen --nodes --style), then hands the app over with its live numbers running. One beat patches a stat card with a misspelt variant, reads the problem back and fixes it. demo.md gives its rules. - Fixed in the demo: the floor log’s events carried markup in their data, which isn’t parsed, so
events now carry a kind the template maps to a tone; the logged
setandputcommands show reading stdin, as they really run. - Daybook (
examples/journal/): a journal after Thought Control’s, one JSON value with no host (today on ⌘T, pages on ⌘N, ⌥[ ⌥] for days, zen on ⌥Z, tasks that cycle on ⌃T).tests/journal.rsruns its flows in the window, and the window fuzz runs it.
Docs
- layout-step.md plans step 3, the layout vocabulary, and native.md’s steps are reordered from 2 on.
12 October: the core crate, the engine thread and the window (phase 0, phase 1 step 1)
Engine and embedding
- The repo is a workspace:
crates/fictty-coreholds the UI value, state, store, lists, host, fuzz driver and engine, and never compiles ratatui or GPUI;crates/ficttydraws it and re-exports the core, so embedding apps keep their imports. - The engine (
Live, grown from the runtime) owns the socket, sources, host, saves, the watched file and upgrade, on its own thread withspawn, ringing whatever draws; input arrives through anInbox. In a pty it runs as fast as the old loop: 108 fps on the ticker and patch storms. - Readback:
fictty screen --nodes(--json), thereadbacksocket request andHeadless::readback()list the shown nodes in order with kind, id, text, focus, selection and the rectangle each was laid out in.
Window
fictty run --windowopens a GPUI window on macOS, driven by the engine’s thread: keys, clicks, the system clipboard,screen, upgrade and quit go through fictty’s own messages.- The window reports what it laid out (rectangles, hits, editor and list sizes,
$widthareas, the wake time), so spinners turn and toasts go on their own. - Editors draw caretline’s own frame (caret, selection, wrap, scroll), and presses, drags and the wheel in their text select as in the terminal. Each row is one shaped run with selections drawn behind it, so glyphs no longer shift as a selection changes.
- The window draws the active theme (tokens as colours, parts and
<spec>runs as inks) and template markup: colours, bold, italic, underline, strike, dim, reverse, signed numbers, a tab right-aligning the rest and a fill. Markdown roles move to the core (model::md_roles). - The window pastes the system clipboard on ⌘V and hovers the row under the mouse.
- The window lays out like the terminal (step 1): sizes read once in the core (
Size::measure: cells,"48px","30%", shares); a fixed size shrinks when there’s no room;min,max,padandalignwork; a float sits at its edge or corner; a modal puts a scrim over its stack that takes presses and the wheel. What a frame notes is clipped to what holds it.
Testing
App::in_window(w, h)is a headless screen drawn by the window under GPUI’s test platform, with keys arriving as macOS keystrokes, pastes through the clipboard and ⌘V, and the window’s own mouse handlers.Headless::at(id, row, tab)andtext_at(id)say where something was drawn.tests/window.rsdrives layout, presses, carets, drags, multi-clicks, the wheel, resizes, keys, paste and copy; the fuzz runs editors, lists, tables and every tour chapter through the window.fuzz::laid_outchecks that nodes nest in their parents and don’t overlap but over a stack..github/workflows/test.ymlruns clippy and the tests on macOS and Linux on every push, as a signal, not a gate.
Docs
- native.md’s phase 1 checklist and its next steps in order; AGENTS.md lets an agent launch the native window itself on its own socket, drive it and close it.
11 October (after v0.2.2): fuzzing, the pty sim and the native plan
Testing and fuzzing
fictty::fuzz(thefuzzfeature) generates keys, clicks, double clicks, drags, the wheel, pastes, resizes and waits on fresh headless screens, with built-in properties (no panic, a time budget per act, the same acts replaying to the same state and frame, and the terminal showing the frame through a vt100 emulator).fuzz::editing()adds the editing invariants, an app adds its own withfuzz::check, failures shrink to the fewest acts, andfuzz::replayruns a printed sequence again. The generator is a seeded splitmix, so there’s no new dependency.Headlesstakes the mouse, pastes and resizes, answersscreenandmouserequests, says when its screen has quit, and skips frames when nothing changed.App::commands(false)turns offrunactions and command sources, so tests never start a script.fictty::sim(thesimfeature) runs any fictty binary in a pseudo-terminal with vt100 on the other end: it answers the terminal queries, sends keys as kitty CSI u or legacy bytes, the mouse as SGR reports, pastes bracketed, and resizes the pty.tests/sim.rschecks the binary against a headless twin.FICTTY_SIM_TRACE=1prints every byte.- Driver host acts:
Act::Hostruns the screen’s host handler inside an act, withConfig::host_acts,Config::normalizeandConfig::classfor apps’ own fuzzing.
Editors
ordered(say["1.", "a.", "i."]) keeps an editor’s Markdown ordered lists in number after every edit, in numbers, letters or roman numerals, as part of the same undo step;{"list_style": "next"}changes one list’s style.- Fixed (found by the fuzzer): undo renumbered the text it had just put back, so it could never get past it; a paste didn’t renumber; numbers after bullets at the same indent were counted as the bullet list; and bullets made numbers after a numbered list now carry its count on.
- Fixed: a key at the end of a 1,200-character paragraph took 573 ms in a release build; a line’s Markdown looks and links are now worked out once, and the key takes well under a millisecond.
- Fixed: a whole-text put (an agent’s or a host reload) moved every caret past it; it now goes through caretline’s diff and edits only what changed.
Engine and state
- The expanded tree of
eachnodes is kept until the UI or a value an each reads changes: 21 eaches went from 0.236 to 0.126 ms a key. Msg::Focus(andNotifier::focus) moves the focus and nothing else."wait": trueon a host action holds keys typed meanwhile until it has answered and its sources have landed.- A running screen knows its size before the first push, so a
whenon$screenstarts right. State::deriveworks out the expanded tree and rows of a state read back fromget --state.- Fixed: a list bound to its own selection recursed until the stack overflowed; it reads nothing and a problem says why.
- Fixed: the focus now moves off a node that hid, whatever hid it.
- Fixed: a host reload with unsaved typing saves the typing first, and a headless reload marks what it loaded as kept.
- Fixed: a click on a wiki link’s
[[or]]places the caret; Esc drops a selection first even where a node binds Esc; while a modal shows, a click or the wheel outside it goes nowhere. - Fixed: a wide character with something drawn over its second cell (a toast’s corner) kept both in the frame; the view drops the wide character so what’s on top wins.
- A headless screen’s clock stays still through agent requests, and its log has no wall-clock times, so the same writes replay to the same state.
Docs and site
- The demo for “Built for a real app” is frozen on v0.2.2, and the post is published.
- native.md plans the move to a native GPUI window: why, what stays and goes, the architecture, six phases, risks. Aram’s answers: the name stays, macOS first, one app with tabs.
v0.2.2 · 11 October 2026
Examples and demos
- Fixed: the tour’s Pages chapter started with the focus in its editor and nothing else took
keys, so Esc couldn’t leave the page and
ntyped into it. A list of the pages now starts with the focus: Enter goes to a page,oopens it beside, and Esc from the editor comes back to it.
v0.2.1 · 11 October 2026
Examples and demos
- A tenth tour chapter, Pages: a notebook of store entries where a click on a
[[link]]opens the page beside it as another panel of a sidebar made witheach, Shift-click goes there, a tag link raises a toast, Tab nests a line, Enter continues a list, and the main pane switches layout on its own$width. Opening a page marks it for a moment with a write that expires (for_ms), and every chapter’s toasts sit in the bottom bar.
Docs
- The README, the guide and the plan say ten chapters and record the milestone.
v0.2.0 · 11 October 2026
The kit, the library and the tour, then what Thought Control asked for from a real terminal.
Embedding
- fictty is a library:
Appbuilds a screen from aUivalue or a file, with a socket, a store, themes and aHost. A source{"host": name, "args"}callsHost::fetchand an actionHost::act, off the drawing thread, with answers coming back as messages.Host::startgets aNotifierwhosechanged(name)refetches the sources that read it. Headlessreplacesrender: a terminal-less screen to send keys and messages to and read back as text or state.Headless::requestanswers a socket request without a socket.- Upgrade re-runs the same command line with
FICTTY_RESTORE, so it works for an embedding app’s binary too. - Store entries a host keeps (
Host::keys, by prefix) are loaded when first shown (with a spinner, or the reason it failed), saved withHost::saveonce changed and still for half a second, and left out of the--storefile.Notifier::reload(key)reloads one as an edit by the host. - A host source’s
argsare templates over the state ({@list.id},{store.key}), fetched again only when they come out different. fictty::setupexposes the WezTerm module aswezterm_lua()andwezterm().
Components
treeshows nested rows that fold with left, right and space; folds are view state by row id.- Lists, tables and trees take a
filter: an input’s text narrows the rows to those matching every word, and a filtered tree opens to its matches. - A shown row carries
$ptr, a JSON Pointer to where it sits, soremoveand the newtoggleaction (a checkbox) reach it through a filter or deep in a tree. whenshows a node only while a condition holds;$screengives the terminal’s size;stackdraws children over each other, a child withfloatsits at an edge or corner, and amodalchild dims what’s behind, swallows clicks there and keeps focus inside;buttonruns its click on Enter, Space or a click.- Toasts (an action, the
toastsocket request andfictty toast) show until their time is up; the view tells the runtime when the frame next changes by itself, so nothing redraws in between. Atoastsnode shows them where a UI wants, with a part per tone (toast.<tone>), and$toastingsays whether one shows. spinner, and a spinner in place of a source that hasn’t arrived; scroll bars on long lists, tables and trees (scrollbar,scrollbar.thumb).gapon rows and columns, an accent underline under the active tab, and an ellipsis where a line’s left side is cut.- Lists and trees share their row options (
Rows): mark, lead, selected style,row_variant, skip, a leaf glyph,linesfor multi-line rows andkeepfor the cells kept before a cut. A selection follows its row’s key when rows come and go above it. eachdraws a template once per item of a bound list, filling only{$item}and{$item.path}; the expanded tree is inState::tree.- Container queries:
$widthand$heightin awhenare the size of the area the parent lays the node out in. - Choosing a tab (a click, or
{"tab": N, "of": id}) moves the focus into what it shows; a tabs node’stabis where it starts; tab titles are templates over the bind, take markup, and the bar takes a lead and trail. minandmaxbound a node’s share of its row or column.- Fixed: a list’s row field was
variant, shared with the node’s own, so row variants were lost through every push and restore; it’srow_variantnow.
Editors
- Markdown task items (
- [ ],- [x]) are styled (md.task,md.done) and tick with Ctrl-T or a click on the box; Ctrl-T also makes any line a task, and"tasks": "cycle"cycles text, task, done, text. readonlyshows a text the person can select and copy but not change; agents can still write it.- Editing keys and the mouse follow the Mac text-field conventions: keys name every modifier in
one order (
c-,a-,d-for ⌘,s-), the kitty keyboard protocol is turned on where the terminal has it, bracketed paste types into the focused editor, a drag stretches the selection, Shift-click extends it, double and triple clicks select a word and a line, and Esc drops a selection before it leaves. An editor’s copies go out over OSC 52 and its messages show as toasts.tests/editing.rsis the acceptance suite from Thought Control’s editing contract. "tab": "indent"makes Tab and Shift-Tab indent and outdent the selection or a list item;"tab": "indent-lines"indents the lines the caret is on, never typing spaces.- Enter continues a Markdown list (bullet, next number, an open task), and Enter on an empty item outdents it or ends the list.
- Links in editor text (
[[Page]],#tag, URLs) run their kind’s click or Shift-click action with{$match}, and an action run with the caret on one reads{$link}; styled withmd.link. "caret": "end"starts an editor’s caret at the end of an entry the first time it shows it.- Keys typed into an editor whose hosted text is still loading wait (
typed_ahead) and land once it does; a put by the person leaves every editor after what it wrote.
Templates and actions
{key:11}fits a value to 11 cells and{key:>11}right-aligns it;<<is a literal<in markup; a markup tag can name a theme part (<link>); a tab in a|markupvalue right-aligns.- Chords: a binding of several keys (
"p h") waits for the rest, and$keysshows the keys so far and what could follow. - A UI’s
focussets where the focus starts; Esc in a text field with nothing selected moves to the next node that isn’t one;{"focus": …}takes a template or$prev. - Layers take
when, and awhencan join conditions with&;removewithwheretakes matching rows from an array entry. {"select": "{store.k}", "in": id}andsetwithkeypick a row by key, even one that hasn’t arrived yet.for_mson a write (fictty put/merge --for-ms, the put action,Notifier::write_for) takes it away again on the screen’s clock, kept inState::expiring, so it replays.
Engine and state
- Fixed: a failed
runor host action raises a toast as well as the status line. - Derived rows settle only when a tree’s or filter’s rows changed (update back to 8.2 µs a message), and a source’s new value re-derives only what reads it: a 100,000-row filtered list beside a stream went from 43 to 114 fps.
- A push fetches only sources that are new or changed, so the same definition keeps its value, stream and timer.
- A refetch asked for while one is under way runs again when it lands.
- A write over the socket goes through the driver, so its effects (a host source refetch) happen at once; an expiring write refreshes what reads it.
- A floating or modal stack child clears what’s under it.
- Headless draws a frame after each key, as a running screen does.
Socket and CLI
- The wheel over a list, tree or table scrolls its view three rows a notch and leaves the selection where it is.
fictty setup wezterminstalls a WezTerm module that sends ⌘ keys as kitty bytes only to fictty panes (found by OSC 1337SetUserVar); an emptyXDG_CONFIG_HOMEcounts as unset.
Releases
- The release workflow cross-builds Intel Mac binaries on Apple silicon (GitHub retired its Intel
runners) and rebuilds a tag’s binaries by hand with
workflow_dispatch. try.shwith no cargo runs the newest release; the stack post’s demo moves to v0.1.0, so readers get a binary. releasing.md says how to release, with CI as a background signal.
Examples and docs
- The tour: nine chapters, each with a lesson, something to try and a quest kept in the store,
including an autopilot driving the screen over the socket and a speed chapter of 100,000
filtered rows beside a firehose.
tour.pywrites the chapters, and the one-liner opens the tour. - The demo for “A kit for apps, and a tour” is frozen and the post published; the guide, plan, README and AGENTS.md cover the kit, the library and the tour.
v0.1.0 · 11 October 2026
fictty as its own project: the store, editors, themes, the showcase, the site, and a one-line demo.
Engine and store
- The prototype moves from Thought Control with its history, renamed to fictty throughout (the
binary,
FICTTY_*variables,fictty.sock). - A store for the app’s data, apart from the UI: versioned entries (a JSON value, or a text with
its undo history) that a push never touches. Writes (
put,merge,edit) take--if-revand are refused when someone wrote in between;fictty run --store file.jsonkeeps it, written atomically. fictty setmoves view state;$logis what agents did over the socket, newest first. A refused write shows asrefusedwith why, and entries carry the local clock time.- Themes as their own layer:
fictty run --themes themes.jsonloads named themes (tokens, parts, variants);{"theme": "next"}orfictty theme <name>switches; nodes ask for avariantand atoneinstead of colours. - Store actions on keys:
append,put,removeanddo; templates read the selected row,{store.key}and{$id}. problemslists what’s wrong in sentences (a value of the wrong shape, an unknown variant), in the state, replies and the status line.- Built-in sources
$theme,$storeand$self(the screen’s binary, socket and folder). - Commands the screen runs get
FICTTY_SOCKETandFICTTY.
Components and editors
editoron caretline: carets and scroll are view state, and an agent’s edit goes through its own view, so the person’s carets move with the text and one undo takes it back.input, a one-line field whose Enter runskeys.enter;"accept": "number"; an editor withdocedits the entry its template names."syntax": "markdown"styles headings, list markers, quotes and inline code (md.*parts); a click places the caret and the wheel scrolls.pad, bars across, a table column’stotal, andloadreading its file from the selected row.{"copy": "…"}puts text on the clipboard over OSC 52.
Socket and CLI
fictty rendertakes--store,--themesand--theme.- Fixed: under
curl | shthe screen spun on macOS’s generic/dev/tty;try.shhands over the terminal’s own device, and fictty refuses/dev/ttywith a sentence.
Examples and demos
- The showcase: notes, a ledger, a live market, a gallery of every component and an agent’s log,
sharing one store and three themes (glass, paper, phosphor), with
tour.shdriving it. curl -fsSL https://fictty.com/try.sh | shruns it;try.shtakes a version, gives each install its own socket, and writesficttyandfictty-tourfor a second terminal. The agent screen’s commands copy on a click.scripts/freeze-demo.shpins a demo to a commit for a post, andscripts/try-test.pyruns a one-liner like a reader.
Docs and site
- The README, guide, architecture, plan, time-travel proposal, identity explorations and the preflight check; scope.md, adopt-or-build.md, state-and-theme.md and prototype-notes.md; 82 research dossiers on the agent UI landscape.
- fictty.com, an Astro site in the glass identity, with the blog, the guide, the landscape board, a demo link component and the latest demo in the hero.
- The first posts: “Why the terminal?”, “Interfaces you throw away” and “Kicking the tyres”, with
graphics, Tilde as a speaker and a Tokens panel (
scripts/blog-tokens.py). - The
blog-postandshipskills, and a release workflow for macOS and Linux binaries.
Before v0.1.0
The prototype, built on 9 October inside Thought Control as thc-scene.
- The proof of concept: the whole screen as JSON, a tree of components (col, row, text, list,
table, sparkline) bound to data sources, with state, update and view in the Elm shape;
run,push,patch,key,get --state,renderand--watch. - Stream sources (one long-running command, each JSON line a new value), binds that reach into a
source, drawing only when something changed (capped at 120 fps), lists that build only the rows
that fit (a 50,000-row list in 0.18 ms), an fps meter,
get --statsand a stress suite. - The mouse (click, wheel, hover,
tipcallouts), layers on caretline-layers (callouts, arrows, rings, spotlights), charts, bars, gauges, big digits, tabs, a world map,{±x}, themes,@nodebinds and a live finance dashboard. - Thought Control’s Today screen rebuilt from components, identical cell for cell across 13
states, which brought templates with
<style>runs, value maps, conditionals, fills and per-kind list rows. - Pixels through the kitty graphics protocol (cards, plots, PNG images), larger text over OSC 66, SVG with live placeholders, and upgrade in place.