Updates
You install Next Term once. After that it keeps itself current from GitHub Releases, and every update is checked before it replaces anything.
How it works
Section titled “How it works”- A daily check. Once a day, at 11:00 or the first moment after it in your Mac’s time zone, Next Term asks GitHub for the latest release, in the background. Opened before 11:00, it waits for 11:00; opened later, it checks about 20 seconds after launch if today’s check hasn’t happened yet. If the check can’t get through (no network, GitHub not answering), it tries again an hour later. After sleep, a new time zone or a change of the clock, it works out the next 11:00 again. Drafts and pre-releases are ignored.
- You decide. When there is a newer version, the update window opens over your project with what’s new: the notes of every version since yours, newest first. It offers Install Update…, Remind Me Later and Skip This Version. Opened by the daily check, it doesn’t take the keyboard: what you’re typing to an agent stays in the terminal until you click the window.
- Download and verify. Install Update… checks the release as the one-line installer does. The release’s SHA-256 checksum must be signed with the Next Term release key and must name that version’s disk image (
NextTerm-0.11.83.dmg). Next Term then downloads the disk image with a progress window and checks that it matches the checksum. It opens the image read-only, copies the new app next to the current one, and checks that it really is Next Term, at the expected version, with an intact code signature. A copy signed with the release certificate (0.11.14 and later) also requires the update to be signed with that same certificate, and refuses one that isn’t. - Swap on quit. The update sheet shows what the update does to each tab. Update Now quits, puts the new version in place of the old one and opens it again, with your windows and tabs brought back when you leave its checkbox checked; When I Quit puts it in place the next time you quit. If anything goes wrong during the swap, the old app is put back.
If any step fails, nothing is replaced, and Next Term says what went wrong. A release whose checksum isn’t signed with the release key for that version’s disk image, that has no checksum, or whose download doesn’t match it, is refused. For any other failure, such as a lost connection, Next Term offers the release’s page so you can download it there instead.
Each release is signed a few minutes after it is published. If you install one before that, Next Term says it isn’t signed yet, checks again every 10 minutes for the next two hours (also when GitHub doesn’t answer), and downloads it once it is signed; the Update button then reads Relaunch to Update. The checks and the download run without a window, so what you’re typing stays in the terminal. A release more than a day old with no signature is refused at once; when GitHub’s API is rate-limited, Next Term doesn’t know a release’s date and refuses it after the two hours.
Keep your sessions through an update
Section titled “Keep your sessions through an update”An update doesn’t end your work. Before anything quits, Next Term shows what will happen to each tab, and after the relaunch your windows, tabs and splits come back in their folders. Programs still stop when Next Term quits: each tab comes back with its agent resumed, a line waiting on the prompt, or a note. See What comes back.
The update sheet
Section titled “The update sheet”Install Update… in the update window downloads and checks the release, then opens the update sheet over your window. The Update button and Check for Updates… open the same sheet once the update is downloaded. The sheet asks whether to update Next Term to the new version, and says “Next Term quits, installs the update and opens again.” Under that:
- Reopen windows and resume sessions after the update is checked the first time, then starts as you last left it. Checked, the relaunch brings back your tabs. Unchecked, every tab closes, and Next Term opens as a launch with nothing to bring back does: under Resume where I left off, the default in Settings › General, your projects’ windows with one fresh shell each; under Show the Welcome window, the Welcome window. Kept tmux and herdr tabs reattach either way.
- One line counts what will happen, for example “2 agents resume · 1 command goes back on the line · 1 tab gets a note”, or “Every tab closes.” with the box unchecked (“Every tab closes. Kept remote tabs reattach.” when you have some). Show Details lists each window and its tabs, such as “api: Claude Code resumes”, with split panes under their tab.
- The restart drops these open decisions: lists the agents’ requests still waiting for your answer, such as an approval window, a proposed edit or an import waiting for your Apply. The update quit declines them. A change you approved that is still under way finishes first, and the sheet says the update waits for it.
- When your sessions can’t be kept, the box is unchecked and dimmed, and a line says why: Next Term is running from a temporary location (move it to Applications), or it could not save your sessions.
The buttons depend on what is running:
- Nothing busy: Update Now, When I Quit and Cancel.
- A busy tab: Wait for Them, Update Now and Cancel. A tab is busy with an agent working or waiting on you, a command running, a job running or suspended in the background, or a program started outside the terminal by what runs in front, such as the dev server an idle Claude Code started. The busy tabs are listed first, each with Wait for this, checked. Uncheck one and the update doesn’t wait for it: its line says what stops at the update and what comes back, as in “the update stops “next-server” (started by “claude”); Claude Code resumes”. Update Now stops every busy tab.
- Remote tabs are never busy. A tmux or herdr session keeps running on the server and reattaches; a plain ssh tab is listed as “connection closes”.
No button is the default, and the sheet doesn’t take the keyboard when it opens, so a Return meant for the terminal never starts an update. After Update Now, Next Term quits without asking “Quit Next Term?”, since the sheet showed what stops; unsaved files in the editor are still asked about, once. If things got worse since you clicked (a tab became busy, a session can no longer be kept, or a remote tab would now be lost), nothing quits: the sheet shows again with those lines marked. While a dialog or sheet is open on a window, the update doesn’t start, and the sheet says so.
Waiting for busy tabs
Section titled “Waiting for busy tabs”Wait for Them opens a small panel that waits, with no time limit, for the tabs you left checked. It shows how long it has waited and lists each tab as “working”, “a job runs in the background”, “a job is suspended”, or “needs your answer” with Show, which brings that tab forward. It never takes the keyboard. Update Now updates at once; Stop Waiting ends the wait and keeps the update on the Update button.
When every tab it waits for is done, the panel counts down “Updating in 10 s”, with Cancel. If another tab became busy meanwhile, the sheet shows again instead. ⌘Q while waiting is an ordinary quit: it asks the quit question, and the update installs without opening Next Term again.
While Next Term waits, agents driving it over MCP can still type into the tabs it waits for and ask again for the answer to a request already open, but start no new work elsewhere. See Through an update or a quit.
When I Quit, and an install that fails
Section titled “When I Quit, and an install that fails”When I Quit keeps the update ready and installs it the next time you quit, without opening Next Term again. The sheet’s checkbox plays no part: that quit asks its own question, and the next launch follows your answer.
If the new version can’t be put in place after Update Now, the version you had opens again, with your tabs brought back when the box was checked. One alert says the update was not installed, with Open Release Page and Cancel, and the Update button offers the update again once Next Term has checked for it.
What comes back
Section titled “What comes back”This is what comes back after an update with Reopen windows and resume sessions after the update checked, and at the next launch after a quit under Resume where I left off (Settings › General).
- Every window, where it was and at its size, with its project, its tabs in order, split panes with their dividers, the pane that had the keyboard and a maximized pane.
- Each tab in its folder, with the title you gave it. A title a program set comes back when the program sets it again. If the folder is gone, the tab opens in the nearest folder above it in the project, else in the project or your home folder, and its note says so.
- Scrollback, with Keep scrollback on in Settings › General: each tab’s last 5,000 lines at most, above a dim line, “── Restored from before the update ──” or “── Restored from before Next Term quit ──”. Secrets in it are masked on a best-effort basis (see Sessions kept for an update or a quit). An agent’s pane keeps only what came before the agent started.
- Kept remote tabs (tmux or herdr) reattach in their window and place, split panes included. A plain ssh tab opens a fresh connection to the same server and folder, with a note of its last command. Nothing is typed into either.
- Tab ids, for agents that drive Next Term over MCP.
Each tab’s note is one dim line above its first prompt, for example “npm run dev is back on the line, not run. Press Return to run it, or edit it first.”
Agents that resume by themselves
Section titled “Agents that resume by themselves”Claude Code, Codex and Qwen Code resume their own conversation by themselves, in the folder it ran in, once the tab’s shell is ready. They come back as you started them, with your options, permission options included, and never with your prompt’s words. They do so only:
- after an update with the box checked, or after a quit you let go ahead with Reopen them next time checked;
- when the agent’s own session file names the exact conversation;
- and when every check passes:
- each option the agent was started with is one Next Term knows, with a plain value: a model choice, or a permission option such as
--dangerously-skip-permissions,--permission-mode,--yoloor--approval-mode. An option that loads code, settings or instructions (--settings,--mcp-config,--add-dir,--plugin-dir, a system prompt, Codex’s-c), or one Next Term doesn’t know, sends the agent to the line instead; - each permission option shows both in what you typed, or in your alias’s expansion, and in the running agent. A program can change how it looks to have been started, so the running agent alone never brings a permission option back by itself;
- the program that ran is the one the resume runs: the same file, by its full path, or another version in the agent’s own install, so no alias or shell function can swap in another. How the agent was started doesn’t matter: typed in zsh, in bash, by a script or by another agent;
- when the agent ran with provider or settings variables set (
ANTHROPIC_BASE_URL,CLAUDE_CONFIG_DIR,CODEX_HOMEand the like), they match your login shell’s; - the agent’s program lies outside your projects and temporary folders, belongs to you or the system, and no one else can change it;
- no project setting the agent reads changed since it started (for Claude Code:
.claude/settings.json,.claude/settings.local.jsonand.mcp.json), and neither did a script those settings start that sits in a project or a temporary folder; - the conversation isn’t open in another process, and its folder still exists, is yours and is on a local disk.
- each option the agent was started with is one Next Term knows, with a plain value: a model choice, or a permission option such as
The resume runs the agent’s own program by its full path, with its resume command and the options it carries. Its note names each permission option it carried, so a permission bypass never comes back unannounced: “Resumed Claude Code session 7ce4… with --dangerously-skip-permissions.” With alias claude-auto-danger='claude --dangerously-skip-permissions', a tab that ran claude-auto-danger resumes that way. A tab that ran claude --model opus "fix the tests" resumes with --model opus, and “fix the tests” is not sent again.
A resume never continues the turn the update or quit cut off, and never sends your prompt again. The tabs in view resume first, a moment apart. If you type in a tab before its shell is ready, its resume doesn’t run, and the note says how to resume it. When two tabs held one conversation, the tab you looked at last resumes it, and the other gets the resume command on its line. Next Term then watches each agent start (see If an agent doesn’t start).
When an agent is held
Section titled “When an agent is held”An agent that doesn’t resume by itself says why, in its tab’s note: “Held: its launch flags.” Agents see the same reasons in list_tabs, as held_because.
- What can clear by itself is checked again. When only something that can come back held the agent, such as its session file not being readable yet or its folder not there yet, Next Term checks again 1, 3, 7, 15 and 30 seconds after the tab’s shell is ready, with the same checks, and resumes it once they pass. Typing in the tab stops it.
- A safety reason waits for you. A permission option, a changed program, a changed project setting and the like keep the resume command on the line for your Return.
- Each restore leaves a record.
last-restore.jsonin Next Term’s sessions folder says what the restore decided for each tab and why, and the next launch replaces it. It holds ids and reasons, never what was on screen.
Agent sessions
Section titled “Agent sessions”A Claude Code or Codex agent session tab comes back with the update, or after a quit you let resume, and goes on with the same conversation: its tab runs nxtrm agent claude (or codex) with --resume and the session’s id. If that conversation can’t go on, it starts a new session and says so. Other agents’ sessions come back as a new session, with a note.
Lines put back on the prompt
Section titled “Lines put back on the prompt”In every other case, an agent’s resume command is put back on the prompt line, unrun: press Return to resume, or edit it first. That covers a check that failed, a quit that asked nothing (with Ask whether to resume when quitting off, or at a logout or restart), a crash, Try Again in safe mode, and the agents that don’t resume by themselves: GitHub Copilot CLI, Gemini CLI, Cursor Agent, OpenCode, Amp, Junie, Command Code, Kiro CLI and Goose.
- The line is your own launch, with the conversation swapped in. An alias, or a command typed with words it passes on to the agent, comes back with the options you typed after it:
claude-auto-danger --resumefollowed by the id. Otherwise the line is the agent’s program with the options it ran with:claude --dangerously-skip-permissions --resumefollowed by the id, after a shell function that started it that way. - Permission options come back too, because you chose them. On the line, they run only when you press Return.
- It never holds your prompt’s words, an option that runs the agent once (
-p) or one that picks another conversation (--continue, an earlier--resume). - An alias that sets a variable comes back whole. With
alias cw='CLAUDE_CONFIG_DIR=~/.claude-work claude', the line iscw --resumefollowed by the id, so Claude Code looks for the conversation where that alias keeps it. - An option Next Term can’t tell from a prompt is left off and named. When Next Term doesn’t know
--newflag, the word after it inclaude --newflag valuecould be its value or your prompt, so the line isclaude --resumefollowed by the id, and the note says “Left off:--newflag(Next Term can’t tell its value from a prompt).” Written as--newflag=value, it stays on the line. An alias that ends in such an option is not replayed either: withalias ca='claude --agent', a tab that ranca reviewergetsclaude --resumefollowed by the id, and the note names--agent. - When an option the agent ran with looks like it holds a secret, none of its options is kept: the line is the agent’s plain resume command, and the agent doesn’t resume by itself.
- The note names the conversation: “
claude-auto-danger --resume 7ce4…is back on the line, not run. Press Return to resume Claude Code session 7ce4…, or edit it first.” When the id is a guess (the newest conversation in that folder since the agent started), the note says so. OpenCode keeps no record of the session it has open, so for OpenCode the id comes first from the title it gave its tab, the session it was showing, and the note says “This is a guess: the session OpenCode showed.” With no id at all, the line is your launch without the resume part, and the note says “No Claude Code session could be named, so Return starts a new one.” - agy and Aider get a note instead: type
/resumein agy, or start Aider with--restore-chat-history. Aider’s note names--yes-alwaystoo when Aider ran with it: “Aider was running. Start it with--restore-chat-history --yes-alwaysto reload the chat.” - In bash or fish, which have no Next Term integration, an agent’s tab gets a note that names its resume command, and nothing is typed.
A command that was running stops at the quit, then goes back on the prompt line, unrun, when it was typed whole on one line in the Mac’s own zsh, /bin/zsh, where Next Term’s zsh integration reports what you typed. Press Return to run it again. A command in bash, fish or another zsh, or typed over several lines, gets a note naming it and saying why it wasn’t put back.
A command line that looks like it holds a secret, or starts with a space, is never saved: its tab says “The last command was not kept, because it looked like it held a secret.” An idle tab gets its shell and folder back, with a note of its last command and its exit code. Nothing is typed.
If an agent doesn’t start
Section titled “If an agent doesn’t start”Agents change their options from one release to the next, so a resumed agent may reject one you started it with. For 5 seconds after an automatic resume, or after you press Return on an agent’s line Next Term put back, unedited, Next Term watches the agent start:
-
It exits at once with an error, with a status other than 0, before you pressed a key, and not from ⌃C: the note quotes the agent’s error, and a plain resume command goes back on the line, unrun. The note names each option the plain command leaves off, as in “claude exited at once (status 1): “error: …”. The plain resume is back on the line. Left off:
--permission-mode.” Which plain command depends on what ran:- After an automatic resume, or a line that starts with the agent’s program: the agent’s plain resume command, such as
claude --resumefollowed by the id, with none of your options. - After a line that starts with your alias, with options you typed after it: the alias with the resume command alone, such as
cw --resumefollowed by the id, so an alias that keeps its conversations elsewhere still finds this one. The note names the options you typed. - After your alias with the resume command alone, such as
claude-auto-danger --resumefollowed by the id: when the alias is only the agent and its options, the agent’s plain resume command,claude --resumefollowed by the id, and the note names the alias’s own options, as in “Left off:--dangerously-skip-permissions(from claude-auto-danger).” An alias that sets a variable or runs something first, such ascw, or a script, gets the note alone: the agent’s own command could look for the conversation in the wrong place.
Each tab gets one plain command: if it fails too, you get the note alone.
- After an automatic resume, or a line that starts with the agent’s program: the agent’s plain resume command, such as
-
It starts a new conversation instead: Claude Code, Codex and Qwen Code show it in their session file, and the note says so, as in “Claude Code started a new session instead of resuming session 7ce4…”
-
You stopped it with ⌃C, pressed a key first, or it ended with status 0: the tab stays as it is.
After a crash
Section titled “After a crash”If Next Term crashes or is force quit, the next launch brings back the same windows, tabs and splits from its last save, made every 2 seconds while something changes. Scrollback doesn’t come back, and nothing runs by itself: each agent’s resume command, and each command that qualifies, waits on its line. A shutdown that stops Next Term without letting it quit counts as a crash.
Safe mode
Section titled “Safe mode”If two restores in a row don’t finish, for example because Next Term crashed while bringing your tabs back, the next launch brings back the layout alone, with nothing typed or run. One alert says “Next Term restored your windows but ran nothing, because the last two restores did not finish.” Each tab says what it held. Keep As Is leaves the tabs as they are, and Try Again puts back what each tab held, once. If a third restore doesn’t finish, Next Term opens without it, and an alert says where it set the saved session aside.
If a window didn’t come back
Section titled “If a window didn’t come back”When you click Update Now or When I Quit, Next Term also keeps a list of every window and its tabs in a file of its own. After the update’s restart it checks that each one is open again. When they all are, the list goes five minutes later. When some aren’t, a notice says how many, with Reopen, and File › Reopen Windows from Before the Update does the same: each window opens again with a tab for each of its tabs, in their folders and with the names you gave them, and windows that were merged are merged again. An agent can ask for it with reopen_before_update, once you approve on the Mac. A list a day old goes at the next launch.
What doesn’t come back
Section titled “What doesn’t come back”- Running programs. They stop when Next Term quits, and come back only as a resumed conversation, a line on the prompt or a note.
- Files open in the editor.
- Shell state, such as an active virtual environment, an
nvmversion or an exportedAWS_PROFILE. - An agent’s screen. Its pane keeps scrollback only from before the agent started.
- Your sessions at your first update to a version that keeps them. The version you update from does the quitting, so that one update can’t keep them: install it with When I Quit at the end of a working session. If you had chosen Show the Welcome window in that version, the first launch shows it; otherwise it reopens them with one fresh shell each, as Resume where I left off does.
The Update button
Section titled “The Update button”While a new version waits, a blue Update button sits at the top right of each project window. Click it to open the update window again. Once the update is downloaded, it reads Relaunch to Update, and a click opens the update sheet.
- Remind Me Later (or the window’s close button) keeps the button. The daily check opens the window again after a day.
- Skip This Version hides the window and the button for that version. The next version is offered as usual, and Check for Updates… still shows a skipped one.
Check now
Section titled “Check now”Next Term › Check for Updates… checks at once and tells you either way: a new version, “Next Term is up to date”, or that GitHub did not answer.
Turn automatic checks off
Section titled “Turn automatic checks off”Untick Next Term › Check for Updates Automatically. Next Term then makes no update check on its own; Check for Updates… still works when you ask. (Its only other requests of its own are background fetches from your projects’ git remotes, wherever they are hosted; Settings › Editor › Git turns those off. See Background fetch.)
What the check sends
Section titled “What the check sends”Only a request for the latest release of MishukAdhikari/next-term on GitHub, with the app’s version in the User-Agent header (“NextTerm/0.11.71”). When there is a newer version, a second request reads the recent releases, for the notes of each version since yours. There is no other identifying data, no account and no analytics. If GitHub’s API is rate-limited, Next Term reads the newest version from the releases page instead. Downloads are accepted only over HTTPS from GitHub.
Updating from an earlier version
Section titled “Updating from an earlier version”Every version since 0.1.0 has the updater: choose Next Term › Check for Updates… and install the newest from there. The update from 0.11.13 or earlier to 0.11.14 or later moves to the release certificate, so macOS may ask its privacy questions once more after it. Release notes for every version are on the releases page.
Development builds (swift run) have no version and never check for updates.
