gatelineAPI reference
WriteFailure:
    | "ref-moved"
    | "dirty-worktree"
    | "stale-checkout"
    | "no-branch"
    | "no-identity"
    | "view-mode"
    | "error"

view-mode: the source is in view mode and writes nothing (§7.3).