Skip to content

Config: drop env duplicates of DB config (GITHUB_REPOS_TO_MONITOR etc.), clear no-agent error, HEAD~1 loop on 1-commit repos #3805

Done

Description

@integry

Found during the Fly fixture E2E for #3804 (fresh instance, no UI setup).

1. Remove env-var configuration that duplicates DB-backed config

GITHUB_REPOS_TO_MONITOR and persisted repository configuration are two sources of truth, and components disagree on which one to use. On a fresh instance with GITHUB_REPOS_TO_MONITOR=integry/propr-fly-fixture and an empty DB:

  • the daemon logged Using repositories from environment variable: [integry/propr-fly-fixture] (loadReposFromConfig, packages/core/src/daemon/configLoader.ts)
  • another service logged Successfully loaded enabled monitored repositories … total_configured: 0 and Scheduled the status update of open ProPR pull requests … repositories: 0

So intake processed the repo while the DB-driven services (PR status updates and others) saw none. An env var also can't express the rest of a repository's config (base branch, enabled, follow-up options, models).

Proposal: make the DB the only runtime source and drop GITHUB_REPOS_TO_MONITOR (it is not kept as a seed). Deploy tooling (propr deploy fly, the Fly tutorial, the headless paths) seeds repositories through the API, MCP or CLI after first boot. Audit for similar duplicates (env var vs DB setting) and remove each one or mark it bootstrap-only: for example GITHUB_USER_WHITELIST, AI_PRIMARY_TAG, GITHUB_BOT_USERNAME, AGENT_DOCKER_IMAGE (default agent), and others the audit finds. Update the docs and .env examples, and warn on startup when a removed variable is still set.

2. Unknown agent alias with zero agents configured gives a misleading error

With no agent configurations, AI + llm-claude ran a placeholder default agent with model claude and failed with There's an issue with the selected model (claude). It may not exist or you may not have access to it. It should fail before running anything with a clear message: "No agent with alias claude is configured; add one in Settings → Agents (or create_agent_configuration)". The issue comment should say the same.

3. HEAD~1...HEAD error loop on single-commit repositories

On a repository with a single commit, the worktree-progress poller logs every ~2 s, throughout the run: Error getting worktree changes: fatal: ambiguous argument 'HEAD~1...HEAD': unknown revision. Diff against the run's recorded base commit (or the empty tree) instead of HEAD~1.

Activity

  1. propr-dev commented on Nov 29, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3805/gpt-6.2-sol-config-drop-env-duplicate-20261129-0147-9sf
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3805-20261129-0147-gpt-6.2-sol-9sf

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3885, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions