CLAUDE_CODE_DESKTOP_RESULT_FIRST
Updated by Alex Sorokoletov
CLAUDE_CODE_DESKTOP_RESULT_FIRST is a Claude Code environment variable. Added between v2.1.326 and v2.1.331 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| Added | Added between v2.1.326 and v2.1.331 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_DESKTOP_RESULT_FIRST=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_DESKTOP_RESULT_FIRST": "<value>"
}
}Related variables
CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN: When set and plugin startup is still pending, folds the first-turn command rescan into the plugin state refresh instead of running a separate command refresh.CLAUDE_CODE_DESKTOP_MESSAGE_CARD: In desktop mode, and when not reattaching a bridge session, enables the desktop message card.CLAUDE_CODE_DESKTOP_MODE_FROM_RECORD: In desktop mode, enables setting the desktop mode from a record.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER: Exit after first UI render (testing).CLAUDE_CODE_INVESTIGATE_FIRST: Instructs the agent to read and investigate before acting — enforcing "read before write." Converts an agent that might immediately start editing into one that first gathers context.CLAUDE_CODE_RESULT_NONCE: Supplies a nonce value that is attached as the nonce field on emitted command results.CLAUDE_SLOW_FIRST_BYTE_MS: Default 30,000ms.CLAUDE_CODE_ARTIFACT_ASK_FIRST
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_DESKTOP_RESULT_FIRST?
Added between v2.1.326 and v2.1.331 and still present in v2.1.332.
How do I set CLAUDE_CODE_DESKTOP_RESULT_FIRST?
Export it before starting Claude Code (export CLAUDE_CODE_DESKTOP_RESULT_FIRST=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.