<!-- Template from
https://github.com/kubevirt/kubevirt/blob/main/.github/PULL_REQUEST_TEMPLATE.md?-->
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Consider creating this PR as draft:
https://github.com/CherryHQ/cherry-studio/blob/main/CONTRIBUTING.md
-->
### What this PR does
Before this PR: Node type checking fails on `release/v2.2.4` because
#25563 requires the Agent name in the shared prompt builder and four
callers still use the previous input shape.
After this PR: The backport of #25583 passes the Agent name through
Claude Code, Pi Durable, and the system prompt preview. Two test
fixtures supply a name.
<!-- (optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)`
format, will close the issue(s) when PR gets merged)*: -->
Fixes #
### Why we need it and why it was done in this way
The following tradeoffs were made:
None. The patch matches #25583.
The following alternatives were considered:
N/A
Links to places where the discussion took place: #25563, #25583, [failed
basic-checks
job](https://github.com/CherryHQ/cherry-studio/actions/runs/45946887022/job/140336197613)
### Agent Note / Spec
<!-- Link the note and Spec PR, or write `N/A — <reason>` for a
local/mechanical change. -->
Agent Note: N/A — mechanical backport of the existing prompt caller fix.
Spec PR: N/A
Acceptance criteria: Regression. Node type checking passes and prompt
onboarding and preview tests pass with the required name.
### Verification
<!-- List only evidence actually run. Map Spec work to AC IDs; use
Regression/N/A for direct fixes or process changes. -->
- `pnpm typecheck:node` reproduced the four hosted type errors on
release head `402d4c239791` and passed after the backport.
- `pnpm test:main src/main/ai/agents/__tests__/bootstrap.test.ts
src/main/ai/agents/prompt/buildAgentPrompt.test.ts
src/main/ai/runtime/claudeCode/__tests__/settingsBuilder.test.ts
src/main/ai/runtime/piDurable/durablePromptPreview.test.ts` passed (169
tests across 4 files).
- Oxfmt, Oxlint with `--deny-warnings`, and ESLint with `--quiet` passed
on the five changed files.
- `pnpm docs:affected --base origin/release/v2.2.4` identified eight
documents. Reviewed them for impact and found no required edits.
### Breaking changes
<!-- optional -->
None.
### Special notes for your reviewer
<!-- optional -->
This PR targets the release branch that failed CI. The source fix is
already on `main`.
### Checklist
This checklist is not enforcing, but it's a reminder of items that could
be relevant to every PR.
Approvers are expected to review this list.
- [ ] Branch: This PR targets `main`
- [x] PR: The PR description is expressive enough and will help future
contributors
- [x] Code: [Write code that humans can
understand](https://en.wikiquote.org/wiki/Martin_Fowler#code-for-humans)
and [Keep it simple](https://en.wikiquote.org/wiki/KISS_principle)
- [ ] Refactor: You have [left the code cleaner than you found it (Boy
Scout
Rule)](https://learning.oreilly.com/library/view/97-things-every/9780596809515/ch08.html)
- [x] Upgrade: Impact of this change on upgrade flows was considered and
addressed if required
- [ ] Documentation: A [user-guide update](https://cherryai.com/docs)
was considered and is present (link) or not required. Check this only
when the PR introduces or changes a user-facing feature or behavior.
- [x] Self-review: I have reviewed my own code (e.g., via
[`/gh-pr-review`](/.claude/skills/gh-pr-review/SKILL.md), `gh pr diff`,
or GitHub UI) before requesting review from others
### Release note
<!-- Write your release note:
1. Enter your extended release note in the below block. If the PR
requires additional action from users switching to the new release,
include the string "action required".
2. If no release note is required, just write "NONE".
3. Only include user-facing changes (new features, bug fixes visible to
users, UI changes, behavior changes). For CI, maintenance, internal
refactoring, build tooling, or other non-user-facing work, write "NONE".
-->
```release-note
NONE
```
<!-- release-backport-source-pr: 25583 -->
Signed-off-by: suyao <sy20010504@gmail.com>