Skip to content

bug: run workflow ignores brownfield default repo path, uses $HOME as cwd #1312

@kenlin8827

Description

@kenlin8827

Bug Description

When running ouroboros run workflow, the opencode runtime is launched with $HOME as the working directory instead of the registered brownfield default repo path.

Steps to Reproduce

  1. Register a brownfield repo:
    ouroboros setup scan /path/to/project
    ouroboros setup default  # select the project

2. Verify registration:
   ```bash
     ouroboros setup list
     # Shows: ★ project-name /path/to/project
   ```
3. Run workflow from the project directory:
   ```bash
     cd /path/to/project
     ouroboros run workflow seed.yaml --sequential
   ```
4. Check logs - shows cwd=$HOME instead of /path/to/project

Expected Behavior

opencode should be launched with the brownfield default repo path as cwd:

cwd=/path/to/project


Actual Behavior

opencode is launched with user home directory:

cwd=$HOME


Environment

- OS: Windows
- Ouroboros version: 0.40.1
- Runtime: opencode
- Shell: Git Bash

Impact

- opencode has to search for project files, adding significant startup time
- Execution context is wrong, potentially causing file path issues
- Brownfield registration appears to be metadata-only, not used for execution context

Workaround

None found. Even running from the project directory doesn't help - ouroboros seems to hardcode $HOME as cwd when launching the runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OSCore engine, state machine, internal pipeline, and system-level behaviorbugReproducible defect or broken behaviorin-progressStory currently being implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions