Repository navigation
Commit 94bf8ba
feat(acp): deliver system prompt via _meta.systemPrompt for claude-agent-acp
claude-agent-acp (since v0.6.0 / PR #91) accepts a custom
_meta.systemPrompt: {append: text} field on session/new that appends to
the adapter's native preset rather than replacing it. This is the same
pattern as _session/steering -- a nonstandard extension available now,
before the RFD #1237 standard field lands.
Add SystemPromptTransport enum to acp.rs:
Field(&str) -- existing bare systemPrompt field (protocol v2)
ClaudeMeta(&str) -- new _meta.systemPrompt: {append: text}
session_new_full() now accepts Option<SystemPromptTransport> instead of
Option<&str>. When both ClaudeMeta transport and a session_title are
present the two _meta members are merged into a single object.
Gate in pool.rs: session_new_system_prompt() routes
@agentclientprotocol/claude-agent-acp to ClaudeMeta regardless of the
reported protocolVersion (CC declares v1). has_system_prompt_support()
gains the same name check so user-message [Base]/[System] framing is
suppressed for claude sessions. The old @zed-industries package name
falls through to the protocol-version gate (status quo, harmless).
All other paths -- goose post-hoc method, protocol-v2 Field, legacy
user-message framing -- are byte-identical to before.
Co-authored-by: Will Pfleger <[email protected]>
Signed-off-by: Will Pfleger <[email protected]>1 parent 318fbf8 commit 94bf8ba
4 files changed
Lines changed: 386 additions & 25 deletions
File tree
- crates/buzz-acp/src
- desktop/src/features/agents/ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
624 | 631 | | |
625 | 632 | | |
626 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
627 | 636 | | |
628 | 637 | | |
629 | 638 | | |
630 | 639 | | |
631 | 640 | | |
632 | 641 | | |
633 | | - | |
| 642 | + | |
634 | 643 | | |
635 | 644 | | |
636 | 645 | | |
637 | 646 | | |
638 | 647 | | |
639 | 648 | | |
640 | | - | |
641 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
642 | 658 | | |
643 | 659 | | |
644 | | - | |
| 660 | + | |
| 661 | + | |
645 | 662 | | |
646 | 663 | | |
647 | 664 | | |
| |||
663 | 680 | | |
664 | 681 | | |
665 | 682 | | |
666 | | - | |
| 683 | + | |
667 | 684 | | |
668 | 685 | | |
669 | 686 | | |
| |||
2038 | 2055 | | |
2039 | 2056 | | |
2040 | 2057 | | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2041 | 2074 | | |
2042 | 2075 | | |
2043 | 2076 | | |
| |||
3271 | 3304 | | |
3272 | 3305 | | |
3273 | 3306 | | |
3274 | | - | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
3275 | 3313 | | |
3276 | 3314 | | |
3277 | 3315 | | |
| |||
3423 | 3461 | | |
3424 | 3462 | | |
3425 | 3463 | | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
3426 | 3545 | | |
3427 | 3546 | | |
3428 | 3547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| 189 | + | |
| 190 | + | |
181 | 191 | | |
182 | 192 | | |
183 | 193 | | |
184 | 194 | | |
185 | 195 | | |
186 | | - | |
| 196 | + | |
187 | 197 | | |
188 | 198 | | |
189 | | - | |
190 | | - | |
191 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
192 | 203 | | |
| 204 | + | |
| 205 | + | |
193 | 206 | | |
194 | | - | |
| 207 | + | |
195 | 208 | | |
196 | 209 | | |
197 | 210 | | |
| |||
907 | 920 | | |
908 | 921 | | |
909 | 922 | | |
| 923 | + | |
910 | 924 | | |
911 | 925 | | |
912 | 926 | | |
| |||
4003 | 4017 | | |
4004 | 4018 | | |
4005 | 4019 | | |
| 4020 | + | |
4006 | 4021 | | |
4007 | | - | |
| 4022 | + | |
4008 | 4023 | | |
4009 | 4024 | | |
| 4025 | + | |
4010 | 4026 | | |
4011 | | - | |
4012 | | - | |
| 4027 | + | |
| 4028 | + | |
4013 | 4029 | | |
| 4030 | + | |
4014 | 4031 | | |
4015 | | - | |
| 4032 | + | |
4016 | 4033 | | |
4017 | 4034 | | |
| 4035 | + | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
4018 | 4062 | | |
4019 | 4063 | | |
4020 | 4064 | | |
| |||
0 commit comments