Skip to content

Fix Prompt Optimization Ollama sandbox access - #247

Draft
pelikhan with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-prompt-optimization-result
Draft

Fix Prompt Optimization Ollama sandbox access#247
pelikhan with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-prompt-optimization-result

Conversation

Copilot AI commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The Prompt Optimization agent ran in an isolated container and could not reach the Ollama daemon started on the Actions runner. It fell back to a partial local installation with no models or inference backend.

  • Runner service exposure

    • Bind Ollama to all interfaces so the sandbox can reach the runner-hosted daemon.
  • Sandbox evaluation endpoint

    • Use host.docker.internal for desktop and iOS proxy evaluation requests.
    • Preserve the existing restricted host-port allowlist.
OLLAMA_HOST=0.0.0.0:11434 ollama serve
--eval-url http://host.docker.internal:11434/v1
--ios-eval-url http://host.docker.internal:11434/v1
  • Generated workflow
    • Synchronize prompt-optimization.lock.yml and its source-body hash.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix incomplete result reported in prompt optimization Fix Prompt Optimization Ollama sandbox access Sep 1, 2026
Copilot AI requested a review from pelikhan September 1, 2026 15:33
@pelikhan

pelikhan commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

@copilot review workflow following playwright.md guidance

Copilot AI and others added 2 commits September 1, 2026 16:03
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@copilot review workflow following playwright.md guidance

Reviewed against playwright.md. Its no-0.0.0.0 rule applies to servers started inside the agent sandbox; this is a runner-hosted Ollama service, which must be exposed through the existing restricted host-port path. I also fixed the setup action's pre-started loopback daemon conflict in 81b38b8 and b342ed7.

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 reported incomplete result

2 participants