Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: chriswritescode-dev/opencode-forge
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.3
Choose a base ref
...
head repository: chriswritescode-dev/opencode-forge
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.4
Choose a head ref
  • 6 commits
  • 14 files changed
  • 1 contributor

Commits on Apr 20, 2026

  1. fix(permission): use worktreeDir to identify worktree loops

    Change permission checks from sandbox-only to all worktree loops.
    In-place loops now fall through to host default permissions.
    chriswritescode-dev committed Apr 20, 2026
    Configuration menu
    Copy the full SHA
    7354d31 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2026

  1. Implement bootstrap performance optimizations

    - Add database connection caching in src/storage/database.ts to share SQLite handle across sub-instances
    - Refactor src/index.ts to return hooks immediately and initialize services in background
    - Use initPromise pattern to defer expensive operations (DB init, graph service, sandbox setup)
    - All hooks now await initPromise before executing, allowing POST /session to return quickly
    - Database caching uses refcounting to ensure proper lifecycle management
    
    Expected performance improvement:
    - Cold bootstrap: ~90ms → ~15ms
    - Subsequent sub-instances: ~90ms → ~1ms (reusing cached DB connection)
    chriswritescode-dev committed Apr 21, 2026
    Configuration menu
    Copy the full SHA
    2a183ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    216910e View commit details
    Browse the repository at this point in the history
  3. fix(loop): enforce agent tool exclusions on all session creation paths

    buildLoopPermissionRuleset was called without excludedTools at 3 of 5
    call sites (rotateSession, CLI restart, TUI restart), defeating the
    agent tool exclusion feature after the first iteration or restart.
    
    Extract getAgentExcludedTools helper to dedupe the 5 existing
    agents.code / agent?.tools?.exclude ?? [] blocks and prevent future
    omissions.
    chriswritescode-dev committed Apr 21, 2026
    Configuration menu
    Copy the full SHA
    052c4ce View commit details
    Browse the repository at this point in the history
  4. fix(loop): guard null scenario in audit prompt formatter

    Migration 111 made review_findings.scenario nullable, so formatReviewFindings
    could render the literal string 'Scenario: null' in the audit prompt.
    Fall back to 'N/A' to match the pattern in src/tools/review.ts.
    chriswritescode-dev committed Apr 21, 2026
    Configuration menu
    Copy the full SHA
    fefa390 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #5 from chriswritescode-dev/fix-agent-perms

    fix-agent-perms → main
    chriswritescode-dev authored Apr 21, 2026
    Configuration menu
    Copy the full SHA
    2d71edb View commit details
    Browse the repository at this point in the history
Loading