Repository navigation
Commit 65c9f07
fix(web): read new-thread defaults from the primary environment
The "New threads" default (local vs. new worktree) and "start from
origin" are stored in the server-side settings.json, but the settings UI
only ever writes to the primary environment's settings. New-thread code
paths read the setting from the thread's own environment, so threads
created on remote environments always fell back to the decoded defaults
("local" mode on the current branch) no matter what the user picked.
Read the defaults from the primary server settings everywhere they seed
new drafts: useNewThreadHandler, the sidebar's per-project new-thread
seeding, and ChatView's env-mode/start-from-origin resolution.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent 32c6012 commit 65c9f07
3 files changed
Lines changed: 27 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
1139 | 1140 | | |
1140 | 1141 | | |
1141 | 1142 | | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1142 | 1147 | | |
1143 | 1148 | | |
1144 | 1149 | | |
| |||
3734 | 3739 | | |
3735 | 3740 | | |
3736 | 3741 | | |
3737 | | - | |
| 3742 | + | |
3738 | 3743 | | |
3739 | 3744 | | |
3740 | 3745 | | |
| |||
5023 | 5028 | | |
5024 | 5029 | | |
5025 | 5030 | | |
5026 | | - | |
| 5031 | + | |
5027 | 5032 | | |
5028 | 5033 | | |
5029 | 5034 | | |
| |||
5035 | 5040 | | |
5036 | 5041 | | |
5037 | 5042 | | |
5038 | | - | |
| 5043 | + | |
5039 | 5044 | | |
5040 | 5045 | | |
5041 | 5046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
| |||
202 | 200 | | |
203 | 201 | | |
204 | 202 | | |
205 | | - | |
| 203 | + | |
206 | 204 | | |
207 | 205 | | |
208 | 206 | | |
| |||
1106 | 1104 | | |
1107 | 1105 | | |
1108 | 1106 | | |
1109 | | - | |
| 1107 | + | |
1110 | 1108 | | |
1111 | 1109 | | |
1112 | 1110 | | |
| |||
1894 | 1892 | | |
1895 | 1893 | | |
1896 | 1894 | | |
| 1895 | + | |
| 1896 | + | |
1897 | 1897 | | |
1898 | | - | |
1899 | | - | |
1900 | | - | |
| 1898 | + | |
1901 | 1899 | | |
1902 | 1900 | | |
1903 | 1901 | | |
| |||
1946 | 1944 | | |
1947 | 1945 | | |
1948 | 1946 | | |
1949 | | - | |
| 1947 | + | |
1950 | 1948 | | |
1951 | 1949 | | |
1952 | 1950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| |||
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | | - | |
| 23 | + | |
27 | 24 | | |
| 25 | + | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
67 | | - | |
68 | | - | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
0 commit comments