mirror of
https://github.com/lukaszraczylo/harness-sync.git
synced 2026-10-12 00:45:22 +00:00
fix(zed): switch to language_models.openai_compatible for Agent panel visibility
The Zed Agent panel (new ACP-based UI) only discovers providers registered
under language_models.openai_compatible.<name>, not language_models.openai.
Each named entry appears as its own provider in the LLM Providers list.
- language_models.openai_compatible.harness-sync-gateway holds gateway URL + models
- agent.default_model.provider = 'harness-sync-gateway' (was 'openai')
- Model entries include capabilities {tools,images,parallel_tool_calls}
- Export common.GatewayProviderID so zed.go can reference it
- Fix staticcheck QF1001 (De Morgan's law) in io.go
- Fix struct field alignment in File (80→72 bytes)
- gofmt remaining files
This commit is contained in:
@@ -24,6 +24,9 @@ func (d *detectableAdapter) Render(_ *canonical.Bundle) (*adapter.FileSet, error
|
||||
func (d *detectableAdapter) Import(_ string) (*adapter.ImportResult, error) {
|
||||
return &adapter.ImportResult{}, nil
|
||||
}
|
||||
func (d *detectableAdapter) Capabilities() adapter.HarnessCapabilities {
|
||||
return adapter.HarnessCapabilities{ManagesMCP: true}
|
||||
}
|
||||
|
||||
func TestDetectCommandPrintsList(t *testing.T) {
|
||||
reg := adapter.NewRegistry()
|
||||
|
||||
@@ -23,6 +23,9 @@ func (i *importableAdapter) Render(_ *canonical.Bundle) (*adapter.FileSet, error
|
||||
return adapter.NewFileSet(), nil
|
||||
}
|
||||
func (i *importableAdapter) Import(_ string) (*adapter.ImportResult, error) { return i.res, nil }
|
||||
func (i *importableAdapter) Capabilities() adapter.HarnessCapabilities {
|
||||
return adapter.HarnessCapabilities{ManagesMCP: true}
|
||||
}
|
||||
|
||||
func TestInitImportWritesCanonical(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
|
||||
@@ -31,6 +31,9 @@ func (r *renderingAdapter) Render(_ *canonical.Bundle) (*adapter.FileSet, error)
|
||||
}
|
||||
return fs, nil
|
||||
}
|
||||
func (r *renderingAdapter) Capabilities() adapter.HarnessCapabilities {
|
||||
return adapter.HarnessCapabilities{}
|
||||
}
|
||||
|
||||
func TestShowPrintsTargets(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
|
||||
Reference in New Issue
Block a user