Skip to content

Fix Prompt Optimization Ollama access from sandbox - #261

Draft
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-fix-prompt-optimization-issue-again
Draft

Fix Prompt Optimization Ollama access from sandbox#261
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-fix-prompt-optimization-issue-again

Conversation

Copilot AI commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Prompt Optimization prepared Ollama on the runner, but the sandboxed agent was told to use 127.0.0.1, which resolves inside the sandbox and caused missing-tool reports for the GGUF model server.

  • Sandbox networking

    • Add host.docker.internal to the workflow allowlist.
    • Keep port 11434 exposed through the existing sandbox host-port configuration.
  • Ollama binding

    • Start Ollama on the runner interface so it is reachable from the sandbox:
      OLLAMA_HOST=0.0.0.0:11434 ollama serve
  • Optimizer endpoint

    • Point both model evaluation URLs at the runner-hosted Ollama server:
      --eval-url http://host.docker.internal:11434/v1
      --ios-eval-url http://host.docker.internal:11434/v1
      
  • Generated workflow

    • Recompile prompt-optimization.lock.yml from the updated workflow source.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing tools for prompt optimization workflow Fix Prompt Optimization Ollama access from sandbox Sep 5, 2026
Copilot AI requested a review from pelikhan September 5, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Prompt Optimization is missing required tool

2 participants