Commit df06b8b
fix(server): port #13368 to V2 — OpenCode names its own sessions
OpenCode generates a session title from the first prompt only when
session.create leaves the title unset (SessionPrompt.ensureTitle). Main
stopped forwarding prompt-seeded titles from the V1 ProviderCommandReactor,
which V2 deleted. V2's OpenCode adapter sent a placeholder title,
"T3 Code <threadId>", on every session.create, so every V2 OpenCode
session in OpenCode's own UI and history was named after an id.
session.create no longer sends a title. Main also forwards a title the
user renamed by hand. V2 has no title-provenance field on the thread and
never sent the thread title, so that part is left out.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 11acae1 commit df06b8b
2 files changed
Lines changed: 11 additions & 6 deletions
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1944 | 1944 | | |
1945 | 1945 | | |
1946 | 1946 | | |
| 1947 | + | |
1947 | 1948 | | |
1948 | 1949 | | |
1949 | 1950 | | |
| |||
1961 | 1962 | | |
1962 | 1963 | | |
1963 | 1964 | | |
1964 | | - | |
| 1965 | + | |
1965 | 1966 | | |
| 1967 | + | |
1966 | 1968 | | |
1967 | 1969 | | |
1968 | 1970 | | |
| |||
2038 | 2040 | | |
2039 | 2041 | | |
2040 | 2042 | | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
2041 | 2048 | | |
2042 | 2049 | | |
2043 | 2050 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3117 | 3117 | | |
3118 | 3118 | | |
3119 | 3119 | | |
| 3120 | + | |
| 3121 | + | |
3120 | 3122 | | |
3121 | 3123 | | |
3122 | | - | |
3123 | | - | |
3124 | | - | |
3125 | | - | |
| 3124 | + | |
3126 | 3125 | | |
3127 | 3126 | | |
3128 | | - | |
3129 | 3127 | | |
3130 | 3128 | | |
3131 | 3129 | | |
| |||
0 commit comments