Commit 9afac06
feat: add MCP auto-reconnect + expand terminal rendering optimization (#40)
* feat: add MCP Auto-Reconnect as item 70 (from PR #2866 analysis)
New P2 item from QwenLM/qwen-code#2866 upstream backports analysis:
- Claude Code: MAX_ERRORS_BEFORE_RECONNECT = 3, SSE auto-reconnect,
session expired (404) auto-refresh
- Qwen Code: no MCP reconnect mechanism
- Source: services/mcp/client.ts L1225-L1357
Also confirmed PR #2866 items already covered:
- Compress orphan funcCall → item 1 (compression) enhancement
- API-round grouping → item 1 grouping.ts (63 lines)
- Follow-up suggestions → item 3 (Speculation)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: expand terminal rendering item + add MCP auto-reconnect
Item 54 expanded from "Fullscreen Rendering" to full "终端渲染优化":
- DEC 2026 synchronized output (BSU/ESU atomic rendering)
- Cell-level differential rendering (ink/log-update.ts)
- Double buffering (frontFrame/backFrame swap)
- DECSTBM hardware scroll
- CharCache/StylePool/CharPool caching (16K cap)
- Damage tracking (dirty rectangle)
- Render throttling (~60fps via queueMicrotask)
- Alt-screen fullscreen mode
Qwen Code has only message-splitting (useGeminiStream.ts L632-634).
Claude Code has 8-layer anti-flicker in customized Ink engine (~7000 LOC).
Item 70: MCP Auto-Reconnect (from PR #2866 analysis)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0c6c4f0 commit 9afac06
File tree
2 files changed
+38
-8
lines changed- docs/comparison
2 files changed
+38
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
| 676 | + | |
677 | 677 | | |
678 | | - | |
| 678 | + | |
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
685 | 691 | | |
686 | | - | |
| 692 | + | |
687 | 693 | | |
688 | | - | |
689 | | - | |
690 | | - | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
691 | 699 | | |
692 | 700 | | |
693 | 701 | | |
| |||
770 | 778 | | |
771 | 779 | | |
772 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments