{"version":"2.1.287","anchor":"bash-shell-snapshot-rewritten-behind-tengu-lucky-garden","canonical_anchor":"bash-shell-snapshot-rewritten-behind-tengu-lucky-garden","heading":"Reworked saving of your shell setup for Bash commands, behind a remote switch","tier":"soon","area":"Bash Tool","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287\/e\/bash-shell-snapshot-rewritten-behind-tengu-lucky-garden","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287","markdown":"### Reworked saving of your shell setup for Bash commands, behind a remote switch\n\nA reworked way of capturing your shell's functions, aliases and options for Bash commands is in the code, off unless switched on remotely\n\n**Unclear.** Besides the remote switch there is another condition on when the new snapshot is used, and what it checks is not clear.\n\n**What**\n\nBefore Claude Code runs commands with its Bash tool (the tool Claude uses to run shell commands for you), it takes a snapshot of your shell setup: a saved copy of your shell functions, aliases and shell options, so commands behave the way your own terminal does. This release contains a rewritten way of building that snapshot. It is used in place of the old one only when a remote switch named `tengu_lucky_garden` is on, and it is off unless the server switches it on.\n\nThe rewritten snapshot:\n\n- Functions are saved one at a time, so a function Claude Code cannot read drops out on its own instead of breaking the rest.\n\n- Aliases are capped at 1,000 lines.\n\n- Shell options are captured as before, alongside the functions and aliases.\n\n**Why**\n\nIf this is switched on for your account, the shell functions and aliases that Claude's Bash commands can see may differ from before. One broken function in your shell setup would no longer stop the others from being available, and a very long list of aliases would be cut off at 1,000 lines.\n\n- Flag `tengu_lucky_garden`: Off in both readings (read for one account on one subscription tier against v2.1.287; this account: off, anonymous baseline: off, compiled default: off) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Bash Tool\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 4\/5\n- Present in the build but not switched on"}