Repository navigation
Commit 945cb7a
fix(server): reapply an ACP agent's selected mode after it switches mode itself
When the agent left its configured mode on its own (OMP leaving plan mode),
later turns with an unchanged selection skipped configureSession, so the turn
ran in the agent's mode while T3 showed the selected one. startTurn now also
reconfigures when the live mode differs from the one configureSession left.
Setting the mode-category config option now updates the runtime's mode state
too; it previously stayed at the old mode, which hid a drift back to it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent ed40a5a commit 945cb7a
2 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2031 | 2031 | | |
2032 | 2032 | | |
2033 | 2033 | | |
2034 | | - | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
2035 | 2045 | | |
2036 | 2046 | | |
2037 | 2047 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
| 1599 | + | |
| 1600 | + | |
1599 | 1601 | | |
1600 | 1602 | | |
1601 | 1603 | | |
| |||
6874 | 6876 | | |
6875 | 6877 | | |
6876 | 6878 | | |
| 6879 | + | |
| 6880 | + | |
6877 | 6881 | | |
6878 | 6882 | | |
6879 | 6883 | | |
6880 | | - | |
| 6884 | + | |
6881 | 6885 | | |
6882 | 6886 | | |
6883 | 6887 | | |
| |||
7352 | 7356 | | |
7353 | 7357 | | |
7354 | 7358 | | |
7355 | | - | |
| 7359 | + | |
| 7360 | + | |
7356 | 7361 | | |
7357 | 7362 | | |
7358 | 7363 | | |
| |||
0 commit comments