Claude's answers, rendered: Markdown, math, charts and diagrams drawn in the Claude Code terminal. Independent project, not affiliated with Anthropic.
TypeScript claude-code-mod
Limitations: shorter, in sections
razorback16b20d7d35fc9c
diff --git a/docs/limitations.md b/docs/limitations.mdindex fc83b81..4d0d238 100644--- a/docs/limitations.md+++ b/docs/limitations.md@@ -2,70 +2,76 @@← Back to the [README](../README.md)-- **Copying text from a picture** (refer to [Copy text from a picture](usage.md#copy-text-from-a-picture)) has these limits:- - Picture select is the copy for pictures. It works only in fullscreen mode, with Claude Code 2.1.298 or newer, and not over ssh. On the main screen, a copy gives picture cells (U+10EEEE plus combining marks), and a paste gives strange characters. Then use `/iui grab`, Claude Code's `/copy` (the last answer as Markdown, `/copy 2` for the one before it), or turn the mod off (`/iui off`) to select text.- - The `/iui grab` toast for a copy of picture cells needs a tool that tells the mod about each clipboard change. On macOS, this is `/usr/bin/perl` with Apple's PerlObjCBridge (macOS has it), which reads the change counter of the clipboard. On Linux, it is `wl-paste --watch` on Wayland, else `clipnotify` or GTK 3 from Python on X11 and Xwayland (refer to [Linux](install.md#linux)). If no such tool works, there is no toast: the mod does not read the clipboard at intervals in its place. There is no toast over ssh or in a background session. `/iui details` shows the state on the line `/iui grab hint:`.- - On GNOME with Wayland, `wl-paste --watch` does not work (GNOME does not have the data-control protocol). The mod then uses the X11 tools through Xwayland. This works on Ubuntu 24.04 with GNOME and Python GTK 3.- - On Linux with the old `clipnotify` (1.0.2 or earlier), a mouse selection (the PRIMARY selection) also makes the mod read the clipboard once. The mod changes nothing in that case.- - The mod finds the words of a page in the background when the page is on the screen. If they are not ready when you release the button (or when you run `/iui grab`), the copy takes approximately 0.05 s for plain text (refer to [The lean font set](how-it-works.md#the-lean-font-set)), 0.15–0.5 s for other text, and 2–3 s for a page with a large Typst drawing. Wait for the toast "copied N chars of text", then paste.- - The mod copies whole words. It copies a word when the selection covers the middle of the word. In a code block, in a long word (30 characters or more, for example a path or a URL) and in CJK text, it copies each character whose middle is in the selection.- - The mod copies inline math as its LaTeX source in dollars (for example `$A = \pi r^2$`), as one word: it copies the full equation when the selection covers the middle of the equation. If an inline equation breaks across two lines, select its first line. The mod does not copy display math (`$$…$$`), the text in an image, or the text in a Typst drawing.- - For picture cells on the clipboard, the cells do not identify the answer. The mod uses the answer of the selected row if it knows it, else the newest answer whose pages fit the selection. A selection in one page of a long answer fits each page that is tall enough, and the mod uses the first one. Thus the text can come from a different page or an older answer of the same width. `/iui dump` shows the page that the mod used.- - The mod knows only the last 64 answers, plans or files that it drew in this session.- - The mod never changes the clipboard for a copy of picture cells: two sessions can have the same picture cells, and the mod cannot know which session a copy is from. A toast tells you to use `/iui grab`. Run `/iui grab` in the session that has the picture.- - On the main screen, `/iui grab` does not know the row of the selection. Thus it can give the wrong text for a picture from before `/clear`, from a session that ended, or older than the last 64 pictures, and for a page after the first page of a long answer.- - In fullscreen mode, a selection that the terminal makes itself (for example, a drag with Option in iTerm2) is not picture select, because Claude Code does not see it. It copies picture cells. Select without the modifier key.-- **Picture select** (Claude Code 2.1.298 or newer, refer to [Picture select](usage.md#picture-select-claude-code-21298-or-newer)) has these limits:- - It works only in fullscreen mode, and not over ssh (pages sent as bytes).- - On Claude Code 2.1.298 to 2.1.304, a selection that starts outside a picture (in the margin or the gutter, in normal text, or a double or triple click) is the selection of Claude Code, not picture select. It can copy picture cells (kitty placeholder characters) in place of the text of the picture. Then the mod shows the toast that names `/iui grab`. Run `/iui grab` to put the text on the clipboard. To use picture select, start the drag on the picture. From Claude Code 2.1.305, the selection of Claude Code skips picture cells, so such a selection copies no text of the picture.- - A selection is in one picture (an answer, a plan or a Markdown file, all its pages). A drag that starts in a picture stays in that picture. Thus a selection of text and a picture together is not possible.- - A single click on normal text (no drag, and no typing after it) does not remove a picture selection, because Claude Code tells a mod nothing about such a click. These remove it: a click in a picture, a new picture selection, a key typed in the prompt, a new selection of Claude Code (the mod looks for one every 0.25 s while a picture selection shows), your next prompt, and `/iui off` or `/iui select off`.- - Escape does not remove a picture selection. Claude Code never gives Escape to a mod's region, and a region that takes keys would also take the keys that you type in the prompt after a click on a picture.- - A selection of Claude Code (normal text) stays on the screen when you then drag over a picture: Claude Code removes its highlight only for a press outside a mod's region, and a mod cannot remove it. Its copy is done already. To remove it first, click normal text or push a key.- - It has no double click (word) or triple click (line) selection, and no Shift+click to make a selection longer.- - The mod gets a page ready for the highlight in the background, when the page is drawn or comes on the screen (refer to [The page cache](how-it-works.md#the-page-cache)). If you push the button on a page that is not ready, the highlight shows a short time later: the mod completes that page first (approximately 0.24 s of work for a page of 3392 × 4284 pixels, 0.045 s for 3392 × 756). Each frame is a new PNG that the terminal decodes (up to approximately 3 MB for a tall page). If you select many full rows of a page whose tinted rows are not ready, the highlight of those rows comes in some steps of one frame each.- - The mod keeps the ready pages in memory, 128 MB (one page of 3392 × 4932 pixels uses approximately 74 MB). It drops only pages off the screen, the oldest first; it never drops a page on the screen or the page of the selection. If a page on the screen does not fit with the other pages on the screen, the mod does not make it ready in the background: it makes it ready at the next push of the button on it (then the memory can go over 128 MB for a short time). It makes a dropped page ready again when the page comes on the screen, or at the next push of the button on it.- - The highlight maps cells to pixels by the page's size in cells. If the terminal draws a page with space at its side or above (another aspect than its cells), the highlight can be off by part of a cell.- - When Claude Code draws the page again from the start (for example, a page that scrolled far away and comes back), the page shows without its highlight until the selection changes. The copy is not changed.- - The blue background is VS Code's selection colour, not the one of your terminal or Claude Code theme.- - A page whose PNG is over 4 MiB (the most that the mod can read) has no highlight.- - A click on a link, a file path or a command (refer to [Click a link, a file or a command](usage.md#click-a-link-a-file-or-a-command)) has these limits:- - A click copies. It does not open a link or a file: the terminal does not send cmd+click to Claude Code, and on macOS ctrl+click is the secondary click.- - A code block is not a target, also a `bash` block. To copy a command in a code block, select its text. The dim rows under the picture (with a copy button for a `bash` block) do not show with picture select.- - The mod finds the targets from the words of the page. Until they are known (the probe, refer to [The page cache](how-it-works.md#the-page-cache)), a hover shows no highlight, and a click waits for them.- - A file path is a target only when the file exists when the mod draws the answer. A link to a heading of the same text is not a target. A link, a file path or a command in a Typst drawing, in math or in an image is not a target.- - It needs `perl` (with `MIME::Base64`, a core module) to write the frames. With no `perl`, the selection and the copy work with no highlight (the mod tries one time, then writes the reason to the debug log).- - It copies at the button's up, also when `copyOnSelect` is `false` in `/config`.-- **The cache folder:** the mod uses only its private cache folder (`$TMPDIR/cc-intelligent-ui-<uid>`, mode 700, your own and not a link). If that folder is a link, is not a folder or is not yours, the mod draws nothing and picture select is off. `/iui`, `/iui details` and a toast at the start tell you why. Remove or fix that folder, then start Claude Code again. The mod also keeps the drawing space of each answer in `~/.cache/cc-intelligent-ui/designs` (`$XDG_CACHE_HOME` if set), and deletes files there after 180 days. Fonts that it copies out of a terminal program (for example Ghostty's JetBrains Mono) are in `~/.cache/cc-intelligent-ui/fonts` (`$XDG_CACHE_HOME` if set); a copy of an older program build is deleted after 30 days.-- **A fake bold** (a terminal font with no bold face, for example Monaco): bold text gets a thin outline in its colour. These limits apply:- - A character that the terminal font does not have (for example, CJK text in Monaco) comes from another font. If that font has a bold face, the character gets both the real bold face and the outline, so it is a little bolder than in the terminal.- - Bold text in a live Typst drawing (for example, `text(weight: "bold", font: theme.mono)`) does not get the fake bold. It shows as regular text.-- **Links in a picture:** without picture select (the main screen, over ssh, Claude Code before 2.1.298, `/iui select off`), a click on the picture does not open a link, because the mod cannot put a link on a picture. Use the link rows under the picture (refer to [Links, file paths and commands](usage.md#links-file-paths-and-commands)). A click on a command row copies the command only where Claude Code gets mouse clicks (fullscreen mode). A `file://` link opens in the app that the terminal chooses. A file row shows only when the file exists when the mod draws the answer.-- **PDF files** (refer to [What it draws](usage.md#what-it-draws)): a click on `‹`, `›` or the page number works only where Claude Code gets mouse clicks (fullscreen mode). The page field gets the keyboard only when the prompt is empty. If the prompt has text, the field opens without the keyboard: click the field to type. Then Esc goes to the prompt, not to the field. To close the field, click it and push Esc, or click its close mark. The mod draws one page at a time, and it does not show the number of pages. You cannot copy text from a PDF page.-- **The row grid** (`/iui grid on`, refer to [Selection and the row grid](usage.md#selection-and-the-row-grid)) has these limits:- - Inline math that is taller than a row adds 1 row or more to its line. The text stays on the rows. Math that is only a little taller than the row does not add a row, and its ink can come near the line above or below.- - At 100% text size, a level-1, level-2 or level-3 heading uses 3 rows. A level-2 or level-3 heading has 2 rows for the text and half a row above and below it. With a large text size (`/iui size`), a line uses 2 rows. A line of code uses 2 rows from approximately 111%. A line of body text uses 2 rows from approximately 117%. Then there is an almost empty row between the lines of a paragraph, and the picture starts half a row down. A heading or a code block is 1 row taller if its lines use an odd number of rows and a line of body text uses an even number of rows (or the opposite), because the mod moves its lines down by half a row. These values change with the terminal font and the cell size.- - If an answer starts with a heading that has the half rows at 100% (for example, a level-3 heading), the first row of the picture is empty.- - When a line of body text uses 2 rows, the rules of a table, display math, an image, a Typst drawing and a horizontal rule are half a row down. The text stays in the middle of the rows.- - A level-4 to level-6 heading at 100% (and a level-3 or level-4 heading at approximately 117%) has the same gap above it and below it (1 row), because the two gaps are nearest to 1 row.- - If inline math makes the first line of an answer taller, the reply bullet can be one row above the text.-- **Without the row grid** (`/iui grid off`), the space between two blocks where a long answer goes to its next page can be up to one row larger than in one page, because each page is a number of full rows.-- **Search does not find text in a picture.**-- **While Claude writes**, Claude Code shows its own text of the block (raw Markdown, for example `$…$` math as text), because Claude Code gives a mod the text of a block only when the block is complete. Then the block is blank until its picture is ready: approximately 0.03–0.07 s for plain text (refer to [The lean font set](how-it-works.md#the-lean-font-set)), 0.15–0.6 s for other text, and 2–3 s for a large Typst drawing. If the picture is not ready 2 s after the block is complete, the normal text shows until the picture is ready. If the compile fails, the normal text stays. An earlier answer that is not in the cache (for example, after a resume) is blank for up to 1 s, then shows as text until its picture is ready.+## Copy and picture select++- **Fullscreen only.** Picture select needs fullscreen mode and Claude Code 2.1.298 or newer. It does not work over ssh. Anywhere else, a copy of a picture gives picture cells, which paste as strange characters. Use `/iui grab`, Claude Code's `/copy`, or `/iui off` instead.+- **Start the drag on the picture.** On Claude Code 2.1.298 to 2.1.304, a selection that starts outside a picture (or a double or triple click) is Claude Code's own selection, and it can copy picture cells. From 2.1.305, Claude Code's selection skips pictures. A drag with a modifier key (for example Option in iTerm2) is the terminal's own selection and also copies picture cells.+- **One picture at a time.** A selection stays in the picture where it started, so you cannot select text and a picture together. There is no double click, triple click or Shift+click.+- **Whole words.** A word is copied when the selection covers its middle. In code, in long words (30 characters or more, such as paths and URLs) and in CJK text, the copy goes by character. Inline math copies as its LaTeX source (`$A = \pi r^2$`). If inline math breaks across two lines, select its first line. Display math, text in images and text in Typst drawings do not copy.+- **Clearing a selection.** A single click on normal text and Escape do not clear a picture selection, because Claude Code does not tell the mod about them. A click in a picture, a key in the prompt, a new selection, your next prompt or `/iui off` does.+- **A Claude Code selection stays on screen** when you then drag over a picture. Click normal text or push a key first.+- **Short waits.** The mod reads the words of a page in the background. If you release the button before they are ready, the copy takes up to 0.5 s (2–3 s for a large Typst drawing). Wait for the "copied N chars" toast before you paste. On a page that is not ready, the highlight also comes a moment after the press.+- **The highlight** needs `perl`. Without it, select and copy still work, with no highlight. The colour is VS Code's, not your theme's. A page over 4 MiB has no highlight. If the terminal draws a page with a different aspect than its cells, the highlight can be off by part of a cell. After Claude Code redraws a page, the highlight comes back only when the selection changes. Ready pages use up to 128 MB of memory.+- **Copy on release.** The copy happens when you release the button, even if `copyOnSelect` is off in `/config`.++## Picture cells and `/iui grab`++- **The mod never changes the clipboard for picture cells.** Two sessions can show the same cells, and the mod cannot tell which one the copy came from. A toast tells you to run `/iui grab` in the session that has the picture.+- **`/iui grab` can pick the wrong page.** Picture cells do not identify the answer, so the text can come from a different page or an older answer of the same width. This is more likely on the main screen, after `/clear`, and for pages after the first one. `/iui dump` shows the page it used. The mod remembers only the last 64 pictures of the session.+- **The toast needs a clipboard watcher.** On macOS this is `/usr/bin/perl` with PerlObjCBridge, which macOS has. On Linux it is `wl-paste --watch` on Wayland, else `clipnotify` or Python GTK 3 on X11 and Xwayland. GNOME on Wayland has no data-control protocol, so the mod uses the Xwayland tools there. With no watcher, over ssh, or in a background session, there is no toast. `/iui details` shows the state. With `clipnotify` 1.0.2 or older, a mouse selection also makes the mod read the clipboard once (it changes nothing).++## Clicks and links++- **A click copies; it does not open.** The terminal does not send cmd+click to Claude Code, and on macOS ctrl+click is the secondary click.+- **Not every link is a target.** Code blocks are not targets: select the text. A file path is a target only if the file existed when the answer was drawn. Links to headings, and links in Typst drawings, math or images, are not targets. Until the mod knows the words of a page, hover shows nothing and a click waits.+- **The dim rows under a picture** (with the copy button of a `bash` block) do not show with picture select.+- **Without picture select** (main screen, ssh, older Claude Code, `/iui select off`), a click on a picture does nothing. Use the link rows under it. A command row copies only in fullscreen mode. A `file://` link opens in the app that your terminal chooses.++## How pictures look++- **Close to VS Code, not exact.** Typst does not use CSS. Raw HTML is simplified or dropped. Loose lists get tight spacing (a one-row gap with the row grid on).+- **Fake bold.** In a terminal font with no bold face (for example Monaco), bold text gets a thin outline. A character from a fallback font that has a real bold face looks a little bolder. Bold text inside a Typst drawing shows as regular.+- **The row grid** (`/iui grid on`) puts all text on whole terminal rows:+ - Level 1–3 headings use 3 rows at 100% text size. An answer that starts with a level-2 or level-3 heading has an empty first row.+ - Inline math that is taller than a row adds a row to its line. Math that is only a little taller does not, and can come close to the next line. On the first line of an answer, it can put the reply bullet one row above the text.+ - At larger text sizes (`/iui size`; from about 111% for code, 117% for body text) each line uses 2 rows. Paragraphs then get an almost empty row between lines, tables, math, images, drawings and rules move down half a row, and headings and code blocks can grow by one row.+ - These numbers change with the terminal font and cell size.+- **Page breaks.** A long answer is cut into pages, and each page is laid out alone. Without the row grid, the gap at a break can be up to one row larger. List numbers can shift a little between pages (`9.` and `10.`), and an item alone on a page can lose the spacing of a loose list.+- **While Claude writes**, Claude Code shows the raw Markdown of a block until the block is complete. The block is then blank until its picture is ready: under 1 s for text, 2–3 s for a large drawing. After 2 s, the text shows until the picture is ready, and it stays if the compile fails. After a resume, old answers can be blank for up to 1 s, then show as text until they are drawn.- **Short summaries** between tool calls stay as text.-- **Plan approval:** a mod cannot draw the Claude Code approval dialog, so the mod shows its own question. That question can have 4 options at most. Thus it has no option to keep planning (use Type something or Esc). The edit option cannot use a terminal editor (vim, nano), because a mod has no terminal. On Linux, it uses only the GUI editors that can wait until you close the file (refer to [Linux](install.md#linux)), not `xdg-open`. Where an organization manages Claude Code, `classic.PermissionRequest` hooks of a plugin that you install do not run. Then the Claude Code dialog shows after the mod's question.-- **Typst blocks:** `#page`, `#pagebreak` and `#set page` are errors. A package that is not in the mod cannot be downloaded (the network is blocked for Typst), so its block shows as code.-- **Security:** each compile of an answer has a Typst root of its own: a private folder with only the template, the theme and the answer's Markdown images. So a Typst block cannot read other files (`read`, `include` or `image` of another path is an error, and the block shows as code). Nothing leaves the computer.-- **The look is close to VS Code, not exact:** Typst does not use CSS. Raw HTML in Markdown is shown in a simple form or dropped. Loose lists have tight spacing (with `/iui grid on`, the items of a loose list have a gap of one row).-- **A picture that the terminal dropped from its image memory** (after many large pictures) is not sent again when you scroll back to it.-- **Over ssh**, the mod cannot read the terminal's config on your computer. So it uses the metrics of the theme's code font (Menlo on macOS) for the text size, and `auto` uses `COLORFGBG` if ssh sends it. Else `auto` is dark. The mod does not use the OS appearance of the remote computer. Pages are shorter, so that each one is at most 4096 pixels tall. In tmux or screen on the remote computer, no pictures show.-- **In herdr**, herdr does not send an image to the terminal if the image is too large for its transfer limit (30 MiB as base64, approximately 22 MiB as pixels: width × height × 4 bytes). It shows no image and no message. Thus the mod makes pages shorter in herdr, so that each page is at most 16 MiB as pixels. A pasted image, an image that Claude sends, a PDF page or a live Typst drawing larger than approximately 22 MiB as pixels (for example, 2900 × 2000 pixels) does not show in herdr. With the `auto` theme, the background comes from herdr (the terminal in front). The mod asks herdr at the start and when you change to a different herdr client (with `herdr --remote`, only at the start). Then a change of the terminal's background shows only if the terminal's config or the OS appearance changes too, or at the next change of client. Claude Code sometimes reads herdr's answer first; then the mod asks again, 3 times at most, after which it uses the terminal's config. The font comes from the herdr client that the mod uses: on macOS, the client in the terminal app in front (with two or more clients in that app, the one where you typed last); on Linux, the client where you typed last. On Linux, with two terminals attached, the mod follows the terminal where you typed last, not the terminal that you look at. On macOS, when the app in front is not a terminal with a client (for example, a browser or an editor), the mod keeps the client that it used before. A change shows after the next check (up to 1 s; on Linux, the tty times change only about every 8 s, so it can take up to approximately 9 s). A new client that you attach in the app in front shows after the full check (up to 10 s). With `herdr --remote`, the client is on a different computer, so the mod does not find it and uses no terminal font, as over ssh. If the mod cannot read the processes (`ps`), it uses the variables of the terminal that started the herdr server. With more than one herdr server (named sessions), the mod uses `lsof` to find the clients of its own server; on Linux, `lsof` does not show this, so the mod can use a client of a different session.-- **In herdr, the background question can take a key.** The mod asks herdr's pane for its background (OSC 11) with a short `perl` that reads the tty for up to 0.3 s. Claude Code reads the same tty. A key, an answer in a dialog, Esc or a mouse report that comes in these 0.3 s can go to the mod, and Claude Code then does not get it. The mod asks only with the `auto` theme, at the start and when you change to a different herdr client (3 times at most each time), and not within 2 s of a key in the prompt box. It does not see keys in a dialog or mouse reports, so the risk stays there. A theme that is not `auto` stops the question.-- **In herdr on macOS, the variables of the client come from `ps eww`.** Its text has no clear end for each value, so the mod splits it before each ` NAME=` and keeps only the terminal's variables. A value of a different variable that itself contains ` TERM=` or a similar text can thus give part of that value as a terminal variable. On Linux, the mod reads `/proc/<pid>/environ`, where each variable is separate.-- **A long list cut into pages:** each page is set by itself. Thus the numbers of a numbered list can move a little to the right on a page with longer numbers (for example, `9.` and `10.`), and an item alone on a page can lose the larger spacing of a loose list (a list with blank lines between its items).-- **herdr in iTerm2:** iTerm2 3.6 and 3.7 count the top of a part of an image (a kitty placement with a source rectangle) from the bottom of the image. herdr sends each row of a picture as such a part, so in iTerm2 the rows of a picture show in the opposite order. When the herdr client that the mod uses is iTerm2, the mod stores each page and each picture with its rows moved, so that iTerm2 shows them in the correct order. The mod decodes and encodes each page again for this, so a page takes more time to show, and its file is larger. Picture select works. These items stay incorrect:- - With `herdr --remote`, the client is on a different computer, so the mod does not know that the terminal is iTerm2. The rows of the pictures show in the wrong order. Use Ghostty or kitty for `herdr --remote` with pictures.- - If the mod cannot find the herdr client (for example, it cannot read the processes), it does not move the rows. It does not use the variables of the terminal that started the herdr server for this.- - With iTerm2 and a different terminal attached at the same time, the order is correct only in the terminal that the mod uses (on macOS, the terminal app in front). After you go to the other terminal, the next check (up to 1 s) draws the pictures again for it.- - While the mod makes the new pictures after a change of terminal, an old picture can show with its rows in the wrong order for a short time. An old page that is wider than the screen (after you make the window narrower) also shows in the wrong order until its new page is ready.-- **`auto` theme** reads the iTerm2 profile, the Ghostty, kitty and Rio configs, and the cmux settings directly (in herdr, those of the terminal that herdr runs in). It does not read kitty's `globinclude`, `envinclude` and `geninclude` lines, or colours that you set while kitty runs. In other terminals, it uses `COLORFGBG` (set only when the terminal starts), then the OS appearance (on Linux, the desktop portal or GNOME's setting). If you change the theme of such a terminal and the OS appearance does not change, Intelligent UI does not see it. A change shows after up to 3 s.+- **Search** does not find text in a picture.+- **Dropped images.** If the terminal drops a picture from its image memory (after many large pictures), the mod does not send it again when you scroll back.++## Typst blocks++- `#page`, `#pagebreak` and `#set page` are errors. A package that the mod does not include cannot be downloaded (Typst has no network), so its block shows as code.+- Each compile has a private root with only the template, the theme and the answer's images. A block cannot read other files; if it tries, it shows as code. Nothing leaves your computer.++## Other features++- **PDF files.** The page buttons work only in fullscreen mode. The mod shows one page at a time, with no page count, and you cannot copy text from a page. The page field gets the keyboard only when the prompt is empty; otherwise click the field to type. Esc then goes to the prompt. To close the field, click it and push Esc, or click its close mark.+- **Plan approval.** A mod cannot draw Claude Code's dialog, so the mod asks its own question, with 4 options at most. There is no "keep planning" option: type a reply or push Esc. The edit option needs a GUI editor that waits until you close the file, so not vim or nano, and on Linux not `xdg-open`. Where an organization manages Claude Code, plugin permission hooks do not run, and Claude Code's dialog shows after the mod's question.+- **Cache folders.** The mod uses only its private folder `$TMPDIR/cc-intelligent-ui-<uid>`, which must be yours, mode 700 and not a link. If it is not, the mod draws nothing and `/iui details` says why: fix or remove the folder, then start Claude Code again. The mod also keeps drawing spaces in `~/.cache/cc-intelligent-ui/designs` for 180 days, and fonts copied out of terminal apps in `~/.cache/cc-intelligent-ui/fonts` (fonts of an older app build are deleted after 30 days). It uses `$XDG_CACHE_HOME` when set.++## Terminals++- **Over ssh,** the mod cannot read your local terminal's config. It sizes text by the theme's code font, and `auto` uses `COLORFGBG` if ssh sends it, else dark. Pages are at most 4096 px tall. With tmux or screen on the remote computer, no pictures show.+- **The `auto` theme** reads the settings of iTerm2, Ghostty, kitty, Rio and cmux directly (in herdr, those of the terminal around herdr). It does not read kitty's `globinclude`, `envinclude` and `geninclude` lines, or colours set while kitty runs. In other terminals it uses `COLORFGBG` (set only when the terminal starts), then the OS appearance (on Linux, the desktop portal or the GNOME setting). A theme change in such a terminal that does not change the OS appearance is not seen. Changes show within 3 s.++### herdr++- **Large images.** herdr drops, with no message, an image over its 30 MiB transfer limit (about 22 MiB of pixels, for example 2900 × 2000). The mod makes pages shorter in herdr to fit, but a pasted image, a PDF page or a Typst drawing over the limit does not show.+- **Background with `auto`.** The mod asks herdr for the background (OSC 11) only at the start and when you change to a different herdr client (with `herdr --remote`, only at the start). Between those times, a background change shows only if the terminal's config or the OS appearance changes too.+- **The background question can take a key.** It reads the tty for up to 0.3 s, and Claude Code reads the same tty. A key, a dialog answer, Esc or a mouse report in that moment can go to the mod and be lost. The mod does not ask within 2 s of a key in the prompt, but it cannot see dialog keys or mouse reports. A theme other than `auto` stops the question.+- **Which terminal gives the font.** On macOS, the herdr client in the terminal app in front (if that app has several, the one you typed in last). If the app in front is not a terminal with a client, the mod keeps the one it used before. On Linux, the client where you typed last, which is not always the one you look at. A change shows within 1 s (on Linux up to about 9 s; a newly attached client up to 10 s).+- **When the client is not found.** With `herdr --remote`, the client is on another computer, so there is no terminal font, as over ssh. If the mod cannot read the processes (`ps`), it uses the variables of the terminal that started the herdr server. On Linux with several named herdr sessions, `lsof` cannot tell them apart, so the mod can pick a client of a different session.+- **Variables on macOS** come from `ps eww`, which does not mark where a value ends. A value of a different variable that contains text such as ` TERM=` can leak part of itself into a terminal variable. Linux reads `/proc/<pid>/environ` and does not have this problem.++### herdr in iTerm2++iTerm2 3.6 and 3.7 count each part of an image from the bottom, so herdr's pictures would show with their rows upside down. When the herdr client is iTerm2, the mod stores each page and picture with its rows reversed, so they show correctly. Pages take a little longer to show and their files are larger. Picture select works. These cases are still wrong:++- With `herdr --remote`, the mod cannot see that the terminal is iTerm2, so rows show in the wrong order. Use Ghostty or kitty for `herdr --remote`.+- If the mod cannot find the herdr client, it does not reverse the rows.+- With iTerm2 and another terminal attached, only the terminal the mod follows shows the rows in order. After you change terminals, it draws again within 1 s.+- Right after a change of terminal, or after you make the window narrower, an old picture can show upside down for a moment.