mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 02:18:29 +00:00
docs(tui): explain global form routing
This commit is contained in:
parent
96bfd4912d
commit
1043615df2
1 changed files with 1 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ function display(field: Field, value: FormValue | undefined) {
|
|||
|
||||
function requestOptions(form: FormInfo) {
|
||||
if (!form.location) return undefined
|
||||
// Global forms have no session row, so the server needs their location to select the owning Form.Service.
|
||||
return {
|
||||
headers: {
|
||||
"x-opencode-directory": encodeURIComponent(form.location.directory),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue