{"version":"2.1.324","anchor":"teleport-stash-now-verifies-the-stash-list-and-merge-autosta","canonical_anchor":"teleport-stash-now-verifies-the-stash-list-and-merge-autosta","heading":"\/teleport checks git's stash more carefully before and after saving your changes","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/teleport-stash-now-verifies-the-stash-list-and-merge-autosta","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### \/teleport checks git's stash more carefully before and after saving your changes\n\n\/teleport can now verify the git stash before and after setting your changes aside, refuse during an auto-stashed merge, and give new recovery advice\n\n**Unclear.** It is not clear whether the switch behind the new stash checks is on by default.\n\n**What**\n\n`\/teleport` pulls a cloud session into your terminal. Before it does, it sets your unsaved changes aside with `git stash`, git's way of storing work temporarily. That step can now do more:\n\n- It notes the state of the stash list before stashing, and afterwards checks that only the one expected entry was added. If something else is there, or the list cannot be read, `\/teleport` stops.\n\n- It refuses if a merge left an auto-stash record behind, with the message \"Nothing was stashed: this checkout has a MERGE_AUTOSTASH record.\"\n\n- Its recovery advice now points you to a `git stash show` command piped through `cat -v`, instead of the old advice to check `git stash list`.\n\nThe stash-list checks and the auto-stash check only run when an internal switch is on.\n\n**Why**\n\nThis stops a command running inside the sandbox from planting fake stash entries that `\/teleport` would then trust. The error and recovery messages you see from `\/teleport` are also different.\n\n- Area: Elsewhere\n- Names: `\/teleport`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}