{"version":"2.1.287","anchor":"ccr-first-turn-plugin-rescan-fold-behind-a-new-env-var","canonical_anchor":"ccr-first-turn-plugin-rescan-fold-behind-a-new-env-var","heading":"Opt-in setting delays the first-turn command refresh in remote sessions","tier":"use","area":"Sessions","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287\/e\/ccr-first-turn-plugin-rescan-fold-behind-a-new-env-var","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.287","markdown":"### Opt-in setting delays the first-turn command refresh in remote sessions\n\nWith `CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN` set, remote sessions wait for plugin startup before refreshing commands on the first turn\n\n**Unclear.** It is not clear whether the late `SessionStart` hooks step also depends on the variable or always runs.\n\n**What**\n\nAt the start of a remote session, Claude Code refreshes its list of available commands. If you set the environment variable `CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN` and plugins are still starting up, that refresh now waits until plugin startup has finished, and is skipped if a refresh has already completed. Without the variable, the refresh runs right away as before.\n\nA new step also runs `SessionStart` hooks for plugins that load late, where hooks are commands set to run automatically at points in a session.\n\n**Why**\n\nThe delayed refresh is off unless you set the variable, so nothing changes by default.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5"}