Repository navigation
feat(agents): resolve skill sources and track updates - #66
Merged
Merged
Conversation
nixuuu
force-pushed
the
feat/agent-environment-3
branch
from
November 4, 2026 15:44
bfa293a to
2e2f809
Compare
nixuuu
marked this pull request as ready for review
November 4, 2026 16:28
nixuuu
added a commit
that referenced
this pull request
Nov 4, 2026
Adds Settings → Proxies: save a model proxy once and pick it in any provider instance instead of typing the URL and key into every profile. - Proxy kinds: CLIProxyAPI (or a fork), generic Anthropic-compatible, generic OpenAI-compatible. Name, base URL (with or without `/v1`), secret encrypted in the gateway (never shown again, Replace), owner-scoped, audited; deleting a proxy in use is blocked. - Harness mappings: Claude `ANTHROPIC_BASE_URL` + `ANTHROPIC_AUTH_TOKEN` + empty `ANTHROPIC_API_KEY`; Codex isolated `CODEX_HOME` with a `model_providers` entry (`wire_api = "responses"`, `env_key`, optional websockets/extra headers); Grok custom endpoint through an isolated `GROK_HOME`. - "Test connection" lists models and detects CLIProxyAPI. - Provider instance Connection: Device login / Proxy (pick or add inline). Existing endpoint profiles migrate into proxies automatically (identical URL+key deduplicated), same env/config on workers as before. - Built-in Device login instance: the locked choice now looks disabled and offers "add an instance"; manual `ANTHROPIC_BASE_URL`/`ANTHROPIC_AUTH_TOKEN` (or Codex equivalents) in an instance's variables get "Move to a proxy", which moves the secret server-side. - Migration `0061_proxies`. Docs: `docs/proxies.md`. Checks: install, gen:check, typecheck, lint, format:check, web build; check:tmp 919 pass / 151 skip / 1 fail — the failure is the skills.sh catalog request-count test from #66, which also fails on clean dev on this machine only (investigated separately; CI passes). Browser checked light/dark at desktop and phone widths. Connection tests used fakes, no live model calls.
nixuuu
added a commit
that referenced
this pull request
Nov 4, 2026
Updating a worker from a Docker gateway failed with "The gateway is not available" (BFF 502) while everything else worked. The gateway logged `worker update unavailable: EACCES: permission denied, mkdir '/.cache'` and answered gRPC `internal`. **Cause:** #66 moved the gateway image from distroless `nonroot` (HOME=/home/nonroot) to `debian:bookworm-slim` with `USER 65532`, which has no home, so the release cache under `~/.cache` resolved to `/.cache`. **Fix** - Images: non-root users (65532) get a real, writable home, so release caches and git configuration (skill sources) work. - Gateway: the release cache uses `CANOPY_UPDATE_CACHE_DIR`, then `XDG_CACHE_HOME`, then `~/.cache`, and falls back to a directory under the OS temp dir (one warning) when that isn't writable. Release resolution failures reach the UI as a specific error instead of `internal`. - BFF: only gRPC `unavailable` / connection failures become 502 "The gateway is not available"; `internal` → 500 with the gateway's sanitised message; precondition/argument errors → 4xx with their message. - Docs (deploy.md): image home/cache location and the optional `CANOPY_UPDATE_CACHE_DIR` server override. Verified: gateway and web images built locally; UID/GID 65532, writable HOME, cache writes, git config and `--version` checked in standalone containers. Checks: install, gen:check, typecheck, lint, format:check, check:tmp (1039 pass, 153 skip, 0 fail), web build. Fixes: #66
This was referenced Nov 13, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 19, 2026
## Changes Skill and marketplace imports listed unrelated connector accounts, including Slack and Notion, for GitHub repositories. Web and mobile now use the gateway's source parser to offer connected accounts with a matching repository origin and supported authentication. The official GitHub connector remains eligible for github.com. Editing the source clears an incompatible selection. When no account matches, the forms hide the picker and preview public repositories without credentials. ## Copy audit Passed the checklist in docs/copy.md §8. The instruction to choose a GitHub account and manage connectors in Settings became “Choose an account for a private repository.” The hint appears only when the user has an eligible account. Verified short and long labels on desktop and phone-width layouts. ## Verification - 18 integration tests passed across agent-skill-sources and agent-plugins, including a regression assertion against the gateway's connector list. - Web and mobile typechecks and scoped lint passed. - Verified both web forms in Chromium at 360 and 1280 px in light and dark themes with controlled API responses. Covered unrelated accounts, exact port matching, clearing stale selections, public previews and long account names. - Native device verification is outstanding. GitHub CI runs the full gate. Fixes: #66
nixuuu
added a commit
that referenced
this pull request
Nov 22, 2026
## Change - Check path portability for files inside discovered Git skill directories. An unrelated website asset such as `[email protected]` can coexist with importable skills. - Preserve the full `SKILL.md` and cap its library description at 1,024 characters. Workers need the updated validator to install skills with longer descriptions. - Skip Git skills with invalid YAML when the preview can satisfy the request. Identify the skipped file and explain how to retry after fixing it. ## Verification - `bun run check:tmp ./tests/integration/agent-skill-sources.test.ts ./tests/integration/agent-website-skills.test.ts` passed all 9 tests. The Git test verifies the original `SKILL.md` bytes after worker reconciliation. - Gateway typecheck, lint on edited files, and `git diff --check` passed locally. The remaining repository checks run in CI. - Ran `npx skills add Jakubantalik/transitions.dev` as a preview input in the web UI. The review showed `transitions-dev` and `transitions-polish` and identified the invalid YAML in `transitions-ui-generation`. ### Copy audit The generic source failure now gives way to a review with a specific notice when there are valid results. The notice names the skipped file, explains the YAML problem, and tells the user how to retry. The actual notice and a long path both wrapped in a 360 px dialog without overflow. Fixes: #66
nixuuu
added a commit
that referenced
this pull request
Nov 24, 2026
## Change - Honor `--skill` before fetching skill assets. For Git servers with object filtering, fetch discovery metadata and the selected skill files from the resolved commit. - Limit the preview and confirmed import to the requested skills. Upstream checks continue to resolve the saved skill by name and path. ## Verification - Resolved `npx skills add https://github.com/github/awesome-copilot --skill apple-appstore-reviewer` against the public repository. The preview contained exactly the requested skill. - Ran the skill source, website skill and plugin integration suites through `check:tmp`. Twenty tests passed, including a gateway-to-worker regression for importing a single skill from a repository over 50 MiB. The native plugin CLI reader timed out in the first run and was skipped on the rerun. - Gateway typecheck, lint and format for changed files, and `git diff --check` passed locally. ## Copy audit Source errors identify missing selections, duplicate names or the exceeded limit and give a next step. The existing alert renders the text with wrapping and announces it to assistive technology. Browser viewport verification was not run. Fixes: #66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage 3 of the agent environment stack (on top of #63).
npx skills add …commands (grammar of skills 1.7.6: multi-skill discovery, root precedence, refs, flags, skills.sh resolution) with a preview before import.Design:
docs/agent-environment.md, verification notes:docs/agent-environment-verification.md.Checks: install, gen:check, typecheck, lint, format:check, check:tmp (870 pass, 150 skip, 0 fail), web build. Browser checked light/dark at desktop and phone widths.
Draft until the whole stack is done.