Skip to content

Sync anthropics/claude-code upstream (da80366 → 079dc85, v2.1.77) + add --name flag#9

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/sync-claude-code-upstream-changes
Draft

Sync anthropics/claude-code upstream (da80366 → 079dc85, v2.1.77) + add --name flag#9
Copilot wants to merge 2 commits intomainfrom
copilot/sync-claude-code-upstream-changes

Conversation

Copy link

Copilot AI commented Mar 17, 2026

Advances the submodules/anthropic-claude-code pointer to v2.1.77 and exposes the --name / -n CLI flag introduced in v2.1.76.

Submodule

  • da80366 (v2.1.70) → 079dc856 (v2.1.77)

SDK surface change

v2.1.76 added -n / --name <name> to set a session display name at startup.

  • ClaudeExecArgs: new SessionName property
  • ClaudeExec: NameFlag = "--name" constant; emits --name <value> when set
var result = await thread.RunAsync("Summarize the diff", new TurnOptions
{
    // resolved via ClaudeExecArgs.SessionName → --name "My review session"
});

// or directly:
var args = new ClaudeExecArgs
{
    Input = "Summarize the diff",
    SessionName = "My review session",
};

Not changed

  • Effort levels (v2.1.72 dropped max): SDK has no effort-level surface — no change needed.
  • Opus 4.6 / Sonnet 4.6 models referenced in v2.1.73–v2.1.77: identifiers unverifiable without a live claude CLI; deferred per project policy.
Original prompt

This section details on the original issue you should resolve

<issue_title>Sync Claude Code upstream changes (da80366 -> f6dbf44)</issue_title>
<issue_description>

Detected upstream updates in anthropics/claude-code affecting Claude Code CLI surface tracking.

Runtime source of truth for this SDK is the real print-mode CLI contract:

  • claude -p --output-format json

  • claude -p --output-format stream-json --verbose

  • Submodule path: submodules/anthropic-claude-code

  • Published CLI package used in CI: @anthropic-ai/claude-code

  • Watched branch: main

  • Current pinned commit: da80366c484698e6370ad9e8abf121f33f8f79e0

  • Latest upstream commit: f6dbf44cd5f5a90f8fd2608c13f3d7bcf15bfe6f

  • Compare: anthropics/claude-code@da80366...f6dbf44

  • Latest commit: anthropics/claude-code@f6dbf44

Changed files (CLI-relevant)

  • CHANGELOG.md

Potential CLI flag changes from diff

  • --compact
  • --continue
  • --effort
  • --git
  • --print

Potential model changes from diff

  • claude-code

Potential feature changes from diff

  • (no feature tokens detected from diff)

Commits

  • f6dbf44 chore: Update CHANGELOG.md (2026-03-10)
  • 540b61b chore: Update CHANGELOG.md (2026-03-10)
  • 00553de chore: Update CHANGELOG.md (2026-03-10)
  • 53a5f3e chore: Update CHANGELOG.md (2026-03-07)

Action required

  • Pull the new anthropics/claude-code submodule commit into this repository
  • Validate latest claude --help output and representative non-interactive runtime behavior
  • Re-check claude -p --output-format json and claude -p --output-format stream-json --verbose payload shape
  • Sync C# SDK constants/options/models with upstream CLI changes
  • Add or update tests for new flags/models/features
  • Update docs (README + docs/Features + docs/Architecture if needed)

Opened automatically by scheduled workflow 'Claude Code Upstream Watch'.</issue_description>

<agent_instructions>Check and update code if needed but create just one. Branch and on pr </agent_instructions>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

… add --name flag

Co-authored-by: KSemenenko <4385716+KSemenenko@users.noreply.github.com>
Copilot AI changed the title [WIP] [CLAUDE-UPDATE] Sync Claude Code upstream changes Sync anthropics/claude-code upstream (da80366 → 079dc85, v2.1.77) + add --name flag Mar 17, 2026
Copilot AI requested a review from KSemenenko March 17, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync Claude Code upstream changes (da80366 -> f6dbf44)

2 participants