Skip to content

[Bug]: Not able to use prompt file under home directory #4593

@troyliu0105

Description

@troyliu0105

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-openagent
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

I set prompt_append to file://~/.config/opencode/prompts/sisyphus.txt as indicated under https://github.com/code-yeongyu/oh-my-openagent/blob/dev/docs/reference/configuration.md

But I checked the actual request sent to provider, it shows:

[WARNING: Path rejected: file://~/.config/opencode/prompts/sisyphus.txt (resolved outside project root /path/to/my/project; file:// prompts must reside within the project boundary)]

Steps to Reproduce

  1. set prompt_append to file under home directory.
  2. check request

Expected Behavior

prompt file will be parsed correctly.

Actual Behavior

path rejected

Doctor Output

troy@SM-NG ~/.c/opencode> bunx oh-my-openagent doctor

 oMoMoMoMo Doctor

 ⚠ 3 issues found:

1. Loaded plugin is outdated
   Loaded 4.2.3, latest 4.5.1.
   Fix: Update: cd "/home/troy/.cache/opencode" && bun add oh-my-openagent@latest
   Affects: plugin features

2. Model override uses unavailable provider
   Provider(s) not found in OpenCode model cache: mas-swap, mas-codex
   Affects: model resolution

3. Configured models rely on compatibility fallback
   sisyphus=mas-swap/glm-5.1 (heuristic-backed), oracle=mas-codex/gpt-5.5 (heuristic-backed), librarian=mas-codex/gpt-5.5 (heuristic-backed), prometheus=mas-codex/gpt-5.5 (heuristic-backed), metis=mas-swap/glm-5.1 (heuristic-backed), momus=mas-swap/glm-5.1 (heuristic-backed), atlas=mas-swap/glm-5.1 (heuristic-backed), sisyphus-junior=mas-codex/gpt-5.5 (heuristic-backed), ultrabrain=mas-codex/gpt-5.5 (heuristic-backed), deep=mas-codex/gpt-5.5 (heuristic-backed), artistry=mas-codex/gpt-5.5 (heuristic-backed), unspecified-high=mas-swap/glm-5.1 (heuristic-backed), writing=mas-swap/glm-5.1 (heuristic-backed)
   Affects: sisyphus, oracle, librarian, prometheus, metis, momus, atlas, sisyphus-junior, ultrabrain, deep, artistry, unspecified-high, writing

Error Logs

Configuration

Additional Context

No response

Operating System

Linux

OpenCode Version

1.15.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions