Skip to content

[TASK] Refactor dedupe sidecar config path and env override helpers in cmd/runtime #1154

Closed

Description

@edenreich

Summary

cmd/runtime/config.go has twelve copies of the same twenty-line getEffective<X>ConfigPath() function (mcp, keybindings, channels, heartbeat, memory, computer_use, browser_use, prompts, reminders, hooks, judge, ...), each differing only in the sidecar file name. The apply<X>EnvOverrides functions likewise each hand-roll their own setString / setInt closures (judge, heartbeat, hooks, computer_use).

Replace them with one sidecarPath(fileName) helper and one shared pair of env helpers.

Acceptance Criteria

  • A single project-then-home sidecar path resolver, used by every sidecar config
  • Shared envString / envInt helpers used by every apply<X>EnvOverrides
  • Behaviour unchanged: existing config and env override tests pass

Activity

  1. added
    refactor
    on Sep 2, 2026
  2. added theissue type on Sep 2, 2026
  3. moved this to Todo in 2026on Sep 2, 2026
  4. inference-gateway-maintainer commented on Sep 2, 2026

    @inference-gateway-maintainer
    Contributor

    Model: ollama_cloud/glm-5.3-flash · View Job

    I'm cooking...will get back to you soon...

    ❌ Infer Result: Failed

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 1 · Duration: -

    Traces
    No traces recorded yet.
    
    Traces accumulate as you use `infer chat` / `infer headless` (when telemetry.enabled).
    
    Stats
    No telemetry recorded yet.
    
    Telemetry accumulates as you use `infer chat` / `infer headless` (when telemetry.enabled).
    

    Triggered by edenreich · Infer Action · OSS

  5. added a commit that references this issue on Sep 2, 2026
    3ad2feb
  6. inference-gateway-releaser commented on Sep 2, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.188.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  7. moved this from Todo to Done in 2026on Sep 3, 2026
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

    refactorreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions