Run your own server
On this page
- 1. Rules that protect your work
- 2. Going back in local history: undo, redo, restore
- 3. Interrupted operations: tjet recover
- 4. Preimages (displaced bytes)
- 5. Unsynchronized and offline work
- 6. Exports for safekeeping
- 7. Removing workspaces: workspace close
- 8. When the workspace daemon is down
- 9. Quick reference
Workspace recovery guide
How to get local work back, and how to finish or undo an operation that was interrupted, in a materialized workspace. Everything here is local to your machine: undo, redo, restore and recover never change anything on the server. Exact options are in the CLI reference.
Status. This describes the F1 client as implemented and tested on Linux (real ext4, real
kill -9 at named crash points). Power loss and the macOS and Windows clients are not qualified
yet (T073). Crash tests model a killed process, not a lost disk cache.
1. Rules that protect your work
- Saves are local first.
tjet savewrites a local checkpoint (LOCAL_DURABLE) in.tjet/. Nothing reaches the server untiltjet sync(ortjet save --remote) succeeds. - Replaced files are moved, not deleted. Every operation that changes workspace files
(
workspace update,undo,redo,restore,sync --rebase,sync --reconcile) runs through a journal in.tjet/journal/<operation>/. The old version of each path is moved into the journal'spreimages/before the new one is put in place (06 §4). - Unsynchronized content is never evicted. The shared object cache holds only content the
server already has. Your own checkpoints, captured files and their trees stay in the
workspace's
.tjet/objects.tjet cache gcandTJET_CACHE_BUDGET_BYTEScannot remove them, and never remove a pinned object either (see User configuration). - A file that is absent locally is not a deletion. In a sparse view, or after a crash, a
base file that is not on disk is recorded as
UNMATERIALIZED, never as a deletion you made . - Do not delete
.tjet/, the journal or preimages by hand to "unblock" something. Use the commands below. Exporting a recovery bundle first (section 6) is always safe.
Exit codes that matter here (09 §6): 4 the workspace has unsaved or unique work
(WORKSPACE_DIRTY) or another command holds the workspace lock ("workspace is locked by another
operation"; tjet waits up to 5 s for it first, e.g. while the workspace daemon's background
sync makes one attempt); 6 recovery is required (JOURNAL_RECOVERY_REQUIRED) or an integrity check failed;
7 a budget would be exceeded (BUDGET_EXCEEDED); 8 the remote outcome is unknown.
2. Going back in local history: undo, redo, restore
tjet checkpoint list # local checkpoints: state and remote revision
tjet undo # files back to the previous local checkpoint
tjet redo # re-apply the checkpoint the last undo left
tjet restore --checkpoint ID # preview: what would be replaced, created, removed
tjet restore --checkpoint ID --yes # apply
tjet undoreturns the workspace files to the previous local checkpoint, or to the base revision when the current checkpoint has none. It refuses with exit 4 while you have unsaved changes: save them first. It refuses when either checkpoint was captured on another base revision (afterworkspace updateor a rebase); userestorefor those, so you see a preview first.tjet redore-applies the checkpoint the most recent undo left. It works only while no save, restore or update happened since that undo ("nothing to redo" otherwise). The same unsaved-change and base rules apply.tjet restore --checkpoint ID(ID or a unique prefix) moves the files to any local checkpoint, also one taken on another base. Without--yesit only previews:replace,create,remove,preserve_untracked, andoverwrites_unsavedfor paths whose unsaved edits would be displaced. With--yes, unsaved edits are first captured in a recovery checkpoint (its id is printed asrecovery_checkpoint), so they can be restored later. An edit made while that save runs is saved again before anything is displaced, or the restore refuses and changes nothing.--no-recovery-checkpointskips that save; the displaced bytes are then kept only as preimages (section 4).- Untracked files in the way are never overwritten: they are moved into the journal's preimages and listed.
None of these commands touch the remote change. After an undo or restore, tjet save and
tjet sync publish the new state as a new revision.
3. Interrupted operations: tjet recover
A crash, a kill or a full disk during an operation leaves the workspace in a state that every
mutating command refuses with exit 6 until you decide. tjet status points at the command that
finishes the work. Nothing is published meanwhile: tjet sync (also --checkpoint), the
workspace daemon's background sync and tjet land refuse (exit 6), because an interrupted
undo or restore moves the head checkpoint only when it completes, so the head would still be
the checkpoint you were leaving.
tjet recover # inspect only (read-only)
tjet recover --resume # finish the interrupted operations
tjet recover --rollback # undo them instead
Choose one of --resume or --rollback. Inspect first; it changes nothing. Its JSON report
lists:
| Field | Meaning |
|---|---|
integrity | SQLite integrity check of the local database (["ok"] when healthy) |
workspace_state | READY, or UPDATING / JOURNAL_RECOVERY_REQUIRED while a journal is incomplete |
incomplete_operations | Each interrupted journaled operation: kind, applied and pending paths, and conflicts |
staged_files | Files an interrupted workspace exclude or workspace close left under .tjet/exclude/ or .tjet/close/, exclude paths not reached yet, and an interrupted tjet mv |
orphan_journals | Journal directories with no operation row (a crash while staging) |
orphaned_checkpoints | Verified checkpoints of this workspace in the local store with no row |
ambiguous_remote | Checkpoints whose upload, seal or accept may already have committed on the server (section 5) |
missing_pinned_objects | Pinned local objects that are missing or do not verify |
pointer_issues | Workspace pointers that do not match the database |
What the actions do:
- Journaled operations (update, undo, redo, restore).
--resumecontinues each path from the filesystem evidence (is the preimage there, is the staged file still there) and completes the operation.--rollbackmoves installed content back and preimages back into place. A path that changed unexpectedly is never overwritten: the operation stops atCONFLICT, and both your version and the target are kept. Running--resumeagain retries the conflicting paths once you have moved your version aside. - Staged files from
excludeorclose. Both--resumeand--rollbackfinish them. A file an exclude staged is removed only if it verifiably holds its recorded base content, and is put back otherwise. A file a close staged is put back (the workspace still exists; runcloseagain). A file whose name has meanwhile been taken is never overwritten: a verified base copy is removed (it holds nothing unique), a changed one stays in staging and is listed again instaged_files; move it yourself. A base file the close had already removed is written back if its content is stored locally, otherwise it is recorded asUNMATERIALIZED, never as a deletion. - An interrupted
tjet mv. While it is pending every mutation refuses with "an interruptedtjet mv...; runtjet recover --resume". Recovery reads the disk: destination present and source absent means the rename happened and the rows are written; otherwise the record is dropped. For a case-only rename (readmetoREADME) the directory listing decides, since on a volume that ignores case both spellings find the file. A process killed between the two steps of a case-only rename through a temporary name leaves the file as.tjet-case-...beside it; the name is recorded with the move, and--resumerenames it to the new spelling and records the move,--rollbackrenames it back. Otherwise no file is touched. - An interrupted
tjet remove. Every deletion is recorded before any file is deleted, so a process killed meanwhile leaves the rest recorded as deleted with their files still on disk (the statetjet untrackleaves):tjet addthem again to keep them, or delete the files. An added file never saved is not recorded as deleted: its record is dropped first, so it stays untracked (D-583;--resumeand--rollbackdrop such records an older version left). If the process is killed between moving a file aside and deleting it (Unix), the file stays as.tjet-removing-...-NAMEbeside it:--resumedeletes it when it holds NAME's recorded bytes (the base or a checkpoint keeps them) and otherwise renames it back to NAME.tjet removerecords that exact name before moving the file, and recovery acts only on recorded names. - Files under private names.
statuslists.tjet-removing-...,.tjet-case-...and.tjet-link-...(an interrupted Windows symbolic link creation) underleftovers, never as untracked;save --include-untracked,addandmvnever track them or anything below a directory with such a name. A tracked path is never a leftover, whatever its name (any revision may hold one).tjet recover --resumefinishes only the names an interrupted command of this workspace recorded (a removal's file, a case-onlytjet mv's intermediate name); anything else under such a name is listed for you to look at, rename or delete, and never touched. What cannot be finished (its original name is taken, its directory cannot be written or read) is listed inleftoverswith its path and the reason; it never stops the rest of recovery, and the next--resumetries again. Recovery does not walk the workspace for them: it looks up recorded names, and lists other leftovers only in directories that hold tracked files, skipping (and naming innotes) any it cannot list. - Orphan staging journals.
--rollbackremoves those without preimages (they hold only downloads). Anything with preimages is reported and kept. - If
integrityis notok,--resumeand--rollbackrefuse and repair nothing. Export a recovery bundle (section 6), then consider--rebuild.
Recovery is never automatic: workspace open, include and exclude do not run it, and
close refuses while anything is staged.
Damaged local metadata: --rebuild
tjet recover --rebuild rebuilds the local database from the canonical checkpoint objects
(06 §6). The damaged database is moved aside as .tjet/state.sqlite.damaged-<time>, never
deleted. Every verified checkpoint of this workspace becomes a checkpoint row; the newest one is
the current state; base entries of the paths it changed are looked up at its base revision on
the server (so it needs the server for those). What cannot be proven is reported, not invented:
older checkpoints' remote mappings become SKIPPED_REMOTE, observed file metadata is dropped
(the next status hashes every file), and apply journals stay in place with their preimages.
Damaged local object packs: workspace compact --quarantine
A save of many new objects writes them as one pack file in .tjet/objects/packs/; the
workspace daemon merges small packs once there are more than 32 (tjet workspace compact does
it by hand; --loose also moves the one-file-per-object files in). A crash at any point of a
merge loses nothing: the new pack is durable before an old one is removed.
When a pack fails its format checks, tjet status lists it under "local objects unavailable"
(object_store_faults in JSON) and never reports "no local changes"; a read of an object only
that pack held fails instead of reporting it absent. tjet workspace compact --quarantine moves
such packs into .tjet/objects/packs/quarantined/, never deleting them; the loss of their objects
still shows in status (and tjet recover lists the missing pinned objects). Objects that were
synchronized are fetched again from the server; local-only checkpoints whose objects only that
pack held cannot be read. Keep the quarantined file for diagnosis; status reports the loss until it
is removed from quarantined/ by hand. A pack of a newer format is not damaged and is
never moved: upgrade the client instead.
A newer client opened this workspace
The local database has a schema version. A client older than the one that last wrote it refuses
the workspace: "local database schema N is newer than this client supports (M); upgrade the
client" (exit 1, UNSUPPORTED_VERSION; D-266, D-426, D-910; builds before D-910 answered exit 6
JOURNAL_RECOVERY_REQUIRED, which is not a reason to run tjet recover). Upgrade tjet (and tjet-agent). Do not edit the database or
delete .tjet/ to downgrade.
4. Preimages (displaced bytes)
Every journaled operation keeps the old version of each path it replaced in
.tjet/journal/<operation>/preimages/.
tjet workspace preimages # retention, budget, pinned and only-copy operations
tjet workspace preimages --retention-days N # default 7
tjet workspace preimages --pin OP | --unpin OP # keep one operation's preimages until unpinned
tjet workspace preimages --budget BYTES # advisory: reported, never enforced
tjet workspace preimages --remove OP # delete one finished operation's preimages now
- Preimages of finished operations expire after the retention period (default 7 days), unless pinned.
- A preimage that holds the only copy of displaced bytes never expires: an
untracked file or directory content displaced by an update or restore, or unsaved edits
displaced by a restore without a recovery checkpoint. These operations are listed in
only_copy_operations. They stay until you remove them with--remove OP, which deletes the journal and its preimages at once, including bytes that exist nowhere else. It is refused for an unfinished operation or one without a journal. - The rule is conservative: base content displaced by a restore or undo that is not stored locally also counts as an only copy (the journal does not record which revision held it), so such journals stay until removed.
- The budget is advisory. Exceeding it is reported (
over_budget), and nothing unexpired is deleted to meet it.
To get a displaced file back, copy it out of the operation's preimages/ directory. The
journal's manifest.json (nscm-apply-journal-v1) maps each item's path (path_hex, the path
bytes in hexadecimal) to its preimage name. Operation ids are in tjet operation list and in
each command's output. Copy, don't move, while the operation might still be resumed or rolled
back.
5. Unsynchronized and offline work
tjet doctorreports server reachability, identity, workspace state and unsynchronized work.tjet checkpoint listshows each checkpoint's state and, once synchronized, its remote revision.- Interrupted
tjet sync. Each checkpoint's upload, seal and accept use stable request identities stored in the workspace. Runtjet syncagain: it resumes with the same identities, so the server replays what it already committed instead of doing it twice.tjet operation listshows unfinished synchronization jobs, their attempts and last error;tjet operation resolve REQUEST_IDasks the server for the recorded outcome of one (never re-executed). Exit 8 means the outcome is unknown: retry the same command, never with a new request id. - Back after a long time offline (a laptop closed for more than about 8 days in the middle
of a sync). The server keeps a finished upload session's record for 7 days after the session
expires (24 hours after it began), then removes it. Run
tjet sync: when the server answers that the upload this checkpoint began is not found (or expired), the job is renewed with a new upload and newly stored request identities, and the checkpoint is published. Local work is never discarded. When the checkpoint had already been prepared,tjet syncfirst asks the server for the recorded outcome of its accept and replays it if one exists; it renews only when the server has no record of it. After a renewaltjet operation listshows async_renewentry with the reason and the replaced identities. A renewal is never made after an unknown outcome (exit 8): only after the server definitively reports the upload gone. - The remote change moved (exit 4,
CHANGE_MOVED): choosetjet sync --rebase(update to the remote revision carrying your edits),--fork(publish your checkpoints as a new change) or--reconcile(adopt the remote revision; your local checkpoints stay local and restorable withtjet restore). - Working offline.
tjet workspace pin --offline [--budget BYTES] [--history N]hydrates and pins what local status, undo, redo and restore need; it refuses (exit 7) rather than evict anything.tjet workspace unpinmakes that content ordinary cache again; pins that protect unsynchronized checkpoints are not affected.tjet checkpoint pin IDkeeps one checkpoint's local closure. - Virtual workspaces: download before you need it. In a virtual workspace
tjet workspace prefetch PATH... [--budget BYTES]downloads the files at or below each path (refused, exit 7, over the budget) andtjet workspace pin --offlinedownloads and pins the whole view. On Windows (Cloud Files, the default backend) this is required in session 0 (services, SSH, CI agents): there a file not yet downloaded fails to open with error 395 (ERROR_CLOUD_FILE_ACCESS_DENIED) at once, and the CLI prints a hint. ProjFS serves only withTJET_VFS_WINDOWS_BACKEND=projfsset for the daemon; it is experimental and outside the V1 scope (a daemon death can hand a reader in flight zeros, W-D4). - Local diff without content.
tjet diffwithout revisions works offline;NEEDS_CONTENT(exit 1) names base content that is not local. Pin it while online.
6. Exports for safekeeping
tjet checkpoint export ID --output DIR # one checkpoint's local closure plus a digest manifest
tjet recover --export-bundle DIR # everything: every checkpoint's closure, journals,
# preimages, a copy of the local database, a manifest
Both write into a new directory (an existing one is refused) and change nothing in the
workspace. Take a bundle before any manual repair, before --rebuild, and before reporting a
problem.
7. Removing workspaces: workspace close
tjet workspace close removes the current workspace only if it holds nothing unique: no unsaved
or unsynchronized work, nothing staged. Otherwise it exits 4 and changes nothing.
tjet workspace close --expired removes every expired agent workspace (workspace fork --ttl)
that holds nothing unique, and forgets the entries of tjet workspace list whose workspace was
deleted or replaced by another one (listed under missing until then, and reported in
forgotten; nothing else ever drops them).
Close stages each base file into .tjet/close/<op>/ and verifies it before anything is unlinked
. If a file changes while close runs, close stops, puts every staged file back and refuses
(<path> (changed while closing)). A file on another filesystem below the root is left in place
and listed in not_removed. If close is killed, tjet status lists the staged files under
staged, close refuses, and tjet recover --resume puts them back (section 3); then run close
again. A program that keeps a file open across close keeps writing into the staged inode.
tjet workspace exclude uses the same staging under .tjet/exclude/<op>/ and the same recovery.
8. When the workspace daemon is down
The daemon (tjet-agent, started with tjet daemon start) is an accelerator, never a
requirement:
tjet statususes a running, compatible daemon's watcher index and otherwise runs a full scan in-process.tjet saveandtjet syncgo through the daemon when it runs and otherwise run in-process.--no-daemon(status) orTJET_NO_DAEMON=1forces in-process operation;TJET_AGENT_AUTOSTART=1starts the daemon on demand.- If the daemon dies or is stopped while it works on a save or sync,
tjetreports "the daemon did not complete ...; running it in-process" and repeats the command itself. Local operations are transactional, so the retry either finds the work done or does it. tjet daemon statusshows whether it runs, its versions and the registered workspaces. An incompatible (older or newer) daemon is not used. It exits after 30 idle minutes by default.- The watcher cannot see every write (for example writes through a shared memory mapping). The
daemon runs a full verification at least every 300 s per workspace (
--verify-interval), andtjet status --fullor--verifyforces one. Whatever a full status finds is captured by the next save. - The watcher is used only when the workspace root is on a local filesystem whose change notifications are complete: Linux ext2/3/4, xfs, btrfs, tmpfs and f2fs; macOS APFS; Windows NTFS and ReFS on a local drive. Anywhere else (network shares, FUSE, overlay, FAT/exFAT, ZFS, ...) every status is a full scan and its reason names the filesystem.
A daemon problem never requires deleting anything: stop it (tjet daemon stop), work with
TJET_NO_DAEMON=1, and start it again later.
To report a daemon problem, tjet daemon diagnose writes a local bundle (its log files, crash
records, counters, settings) with tokens redacted and paths hashed; read it before sending it to
anyone. Nothing is sent by the command (DB-23).
9. Quick reference
| Situation | Do this |
|---|---|
Exit 6 JOURNAL_RECOVERY_REQUIRED | tjet recover, then --resume or --rollback |
status lists staged files | tjet recover --resume |
| Want yesterday's files back | tjet checkpoint list, tjet restore --checkpoint ID, then --yes |
| Restored too far | tjet restore --checkpoint <recovery_checkpoint> --yes |
| Untracked file vanished after update or restore | Look in .tjet/journal/<op>/preimages/ (listed in only_copy_operations) |
| Journals use too much disk | tjet workspace preimages, then --remove OP for operations you no longer need |
| Sync exit 8 | Re-run the same tjet sync; check tjet operation list |
Sync exit 4 CHANGE_MOVED | tjet sync --rebase, --fork or --reconcile |
tjet sync (exit 6): "the stored prepare request ... is unusable (does not match the checkpoint, change or upload)" | A checkpoint queued with save --remote, undone, then brought back with redo/restore after sync --fork, change new or change switch in a version before D-597 kept the old change's identities. tjet sync --fork renews every unsynchronized job for a new change; nothing local is lost |
Killed save --remote, then undo: tjet land named the change's revision "published from elsewhere" | Run tjet sync (or tjet land, which does it too): it asks the server for the recorded outcome of that exact accept, so the revision is known as this workspace's own undone checkpoint; status then names it and tjet save --remote publishes the current state. Do not --reconcile or --revision it: that would land what you undid |
Killed save --remote, then undo, then tjet change new, change switch or sync --fork | Before moving to another change, these ask the server for the recorded outcome of every publication whose response was lost. If it took effect, the checkpoint is recorded as that change's revision (never published again); when you had undone it, the command's warnings, tjet status (undone_on_other_change), tjet sync and tjet doctor name the change that still holds it until you tjet change switch to it (then tjet save --remote publishes your current state) or tjet change abandon --change it. sync --fork refuses with "nothing was forked" when that publication was all there was to fork |
save --remote completed, then undo, then tjet change new or change switch | The change you left keeps the undone content as its latest revision. The command's warnings, tjet status (undone_on_other_change) and tjet doctor name that change and revision; tjet change switch CHANGE then tjet save --remote publishes your current state to it, or tjet change abandon --change CHANGE abandons it. tjet sync asks the server about each such change: abandoned or landed (one last warning: the content is in the stream's history, or may be when the change landed at a later revision) ends the reminder (undone_on_other_change_cleared); a change that moved to another revision keeps it, because that revision may still hold the content: undone_on_other_change_moved names the revision to check (tjet file show PATH --rev REVISION). tjet doctor reports the same without clearing |
save --remote completed, then undo (or restore --checkpoint of an older checkpoint), new work saved, then tjet sync --fork | The new work goes to a new change; the change you left keeps the undone content as its latest revision. The fork's warnings and the reminders above name it, as for change new. Work saved on top of the published checkpoint (no undo), or carried onto a new base by tjet workspace update, is not reported: the change holds what your files were built on. An undo before the update is still reported |
change split or change move-paths interrupted (killed, or the remaining part's publication failed) after save --remote, undo and new work | The workspace may be left on the split-off change (or the move's target) while the change you split from keeps the undone content as its latest revision: tjet status (undone_on_other_change) and tjet doctor name it, as for change new. Back on that change, its own earlier publications are still known, so a later sync --fork warns about it too |
tjet sync stops on a job "prepared for change A, which this workspace left" or operation resolve reports NOT_FOUND for it | A publication prepared for the change the workspace was leaving (a change switch racing a sync). tjet sync asks the server about its accept: committed, it is recorded as change A's revision (and, when undone, remembered as above); no record, the job gets new request identities for the current change and is published there; anything else refuses with OUTCOME_UNKNOWN naming tjet operation resolve ACCEPT_ID, which renews it on NOT_FOUND |
Ctrl-C during change switch | A lock wait interrupted before anything changed says the step did not start; after earlier steps ran, the answer (CANCELLED, exit 130) lists what was done (accepts adopted, files returned to the base, moved to the target's base, merged, saved) and that the workspace is still on the old change; check tjet status |
change new/switch/sync --fork refused: "may have taken effect ... could not be asked" (exit 5) or "the record expired" (exit 8) | The server must say whether a publication whose response was lost took effect before the workspace leaves the change; nothing was changed. Unreachable: retry when it is reachable. Expired (older than the retention window): for a checkpoint you still have, tjet sync resolves it on the current change (a change that moved stops with CHANGE_MOVED); for one you undid, check the change (tjet change show), then tjet operation resolve ACCEPT_ID (from the message or tjet operation list) gives the job new identities |
A checkpoint of a change you left, brought back with tjet restore --checkpoint (or redo) on your new change; tjet sync said "no unsynchronized checkpoint" | Before D-599 it was mapped to the old change's revision, so nothing published it to the new change. Now tjet sync (or tjet save --remote) publishes the restored state to the current change as a new checkpoint with its own request identities; the change you left keeps its revision. With unsaved edits tjet sync publishes nothing (save them first). When this workspace already published to the current change, the note "the change's latest revision ... holds content this workspace no longer has" applies instead, and tjet save --remote replaces that revision |
Ctrl-C while tjet waits for the workspace lock | Stops at once with CANCELLED (exit 130); nothing was done |
tjet recover --rebuild after an undo | The rebuilt head is the newest checkpoint, which may be the one you undid (the head was recorded only in the damaged database; the report says so). Check tjet status, and tjet restore --checkpoint ID --yes before tjet sync publishes it. The reminders about changes you left holding undone content are lost too (unavailable says so): check the latest revision of each change you left |
| Local database damaged | tjet recover --export-bundle DIR, then tjet recover --rebuild |
Exit 1 UNSUPPORTED_VERSION, "schema ... newer than this client" | Upgrade tjet (and tjet-agent), not tjet recover |
| Daemon down or misbehaving | TJET_NO_DAEMON=1; tjet daemon stop / start |
cannot read .tjetignore (exit 1 INVALID_ARGUMENT; exit 5 FILE_BUSY while another Windows program holds it) | Make .tjetignore a readable file (permissions; close the program holding it) or remove it, then retry. status and save --include-untracked refuse rather than treat ignored files as untracked; a plain save still works. It must be a regular file of at most 1 MiB: a symbolic link (or junction), a FIFO or a larger file is refused, and the message says which |
A save --include-untracked, add, remove or untrack failed | A failed save --include-untracked tracks no new file, and a missing or untracked path refuses the whole add/remove/untrack before anything changes. Fix the cause and run it again |
tjet remove: "unsaved modifications that no checkpoint holds" (exit 4 WORKSPACE_DIRTY) | Nothing was changed. tjet save first (the bytes are then in a checkpoint), or tjet remove --force to delete them |
tjet remove: "is now a directory" (exit 1) | Nothing was changed. tjet untrack PATH records the tracked file's deletion and keeps the directory |
tjet remove: "cannot remove PATH" | That path and every later one are still tracked; the paths named as "already removed" were removed and recorded. Close the program holding it (exit 5 FILE_BUSY; on Windows also a program that has it open for writing) or fix its permissions, then run tjet remove again for the rest. "the file is now named .tjet-removing-...": it had been moved aside to be deleted and could not be renamed back; tjet recover --resume renames it back once the directory is writable (details.kept_as) |
status lists respelled ("tracked under another spelling than on disk") | Another program renamed a tracked file or directory to a spelling that differs only in case, on a volume that ignores case. It is still tracked under the old spelling; save --include-untracked does not add the new one. tjet mv OLD NEW records the new spelling |
status lists reverted ("reverted to the base since the latest checkpoint") | The file is back at the base content (an edit undone by hand, a deleted file restored), but the latest checkpoint still holds the earlier content, and so does the change once that checkpoint is synchronized. tjet diff shows it under "reverted to the base since checkpoint ...". tjet save records the revert (a checkpoint with no mutations), tjet save --remote publishes it. modified, added and deleted compare with the base |
tjet land: "this workspace holds work that change ...'s revision ... may not hold, or no longer holds content that revision has" (exit 4 WORKSPACE_DIRTY) | Nothing was landed. Inside the change's own workspace, land without --revision (also --prepare-only, and --candidate of that change) refuses while a tracked path differs from the latest checkpoint (an edit or a revert made since), a checkpoint is not synchronized, or the head checkpoint is not the revision to land (an undo or restore --checkpoint after save --remote, or a revision published to the change from another workspace, the web UI or the API, which it names; a server-side tjet rebase is accepted). A checkpoint that was undone, or left behind by a restore (its recovery checkpoint included), does not count: it is not the workspace's state, tjet sync never publishes it, and it stays local for tjet redo or tjet restore --checkpoint. tjet save --remote publishes the workspace's state as a new revision to review; tjet sync --reconcile adopts a revision published from elsewhere into the files (review them, then land); tjet land --revision REV lands a named revision as it is. tjet sync lists such paths as unsaved. Only the CLI inside the workspace can check this: a land from another directory with --repo/--change, the web UI or the API cannot see local work. A workspace that cannot be opened refuses (repair it, or land from outside any workspace); one awaiting recovery of an interrupted operation refuses with exit 6 (tjet recover first) |
status (and sync, doctor): "the change's latest revision ... holds content this workspace no longer has (undone or restored to ...)" | tjet undo or tjet restore --checkpoint went back past a checkpoint already published to the change, so the change still has what was undone. tjet save --remote publishes the current state (a new checkpoint even when nothing changed since the head); tjet redo returns to the published state |
status lists a file as deleted after tjet untrack of a file added in an earlier checkpoint | The checkpoint (and the change, once synchronized) still adds it; the file stays on disk. tjet save records that it is gone, after which it is listed as untracked |
save --include-untracked: "are the same name on case- or normalization-insensitive volumes" (exit 1) | Nothing was saved. Two untracked files, or an untracked file and a tracked path, differ only in case (portable-v1). Rename, remove or ignore one, or tjet mv the tracked path to the new spelling |
tjet remove: "changed while tjet remove was running" (exit 4 WORKSPACE_DIRTY) | The file was written, replaced or created after the check and was not deleted; it and every later path are still tracked, the paths named as "already removed" were removed. Look at it (tjet save keeps its bytes), then run tjet remove again. "kept as .tjet-removing-...": a new file took the name while the changed one was moved aside to be deleted; both are kept, rename the kept one back when you have looked at both |
tjet remove: "is outside the selected view" (exit 1) | Nothing was changed. Include the path first (tjet workspace include PATH), then remove it |
tjet mv: "are the same name on case- or normalization-insensitive volumes", or "is not the directory's name" (exit 1) | Nothing was moved. Choose a name that does not collide with a tracked path, or use the spelling the directory has on disk. A case-only rename of the moved path itself (tjet mv readme README) is allowed |
tjet add: "are the same name on case- or normalization-insensitive volumes", or "is not the file's name" (exit 1) | Nothing was added. Name each file once, with the spelling it has on disk; to change a tracked path's spelling use tjet mv |
cannot read PATH (exit 1 INVALID_ARGUMENT) or "is open in another program that does not share it" (exit 5 FILE_BUSY) during save or status | This user may not read the file, or (Windows) another program holds it without sharing. Nothing is captured from it, never through a backup privilege. Give read access, close the program, or tjet untrack the file |