Repository navigation
Commit 001e00e
fix(serve): ACP conformance — session/set_mode, sessionCapabilities, agentInfo
1. Add standard `session/set_mode` handler (Zed SDK calls
setSessionMode(modeId), not set_config_option for modes)
2. Advertise `sessionCapabilities: { list: {}, resume: {} }`
so Zed can discover session/list and session/resume support
3. Add `agentInfo: { name: "qwen-code", version: "0.17.0" }`
for Zed display
4. Remove incorrect `configOptions: true` from agentCapabilities
(config options are per-session in session/new response)
Generated with AI
Co-authored-by: Qwen-Coder <[email protected]>1 parent 8f02791 commit 001e00e
1 file changed
Lines changed: 56 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | | - | |
404 | | - | |
405 | 404 | | |
406 | 405 | | |
407 | 406 | | |
408 | 407 | | |
409 | 408 | | |
410 | | - | |
411 | | - | |
412 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
798 | 849 | | |
799 | 850 | | |
800 | 851 | | |
| |||
0 commit comments