Skip to content

Bug: .continuerc.json files fail to load due to 'this' binding issue #9312

Closed

Description

@shanevcantwell

Description

Workspace .continuerc.json files are silently ignored because ide.readFile loses its this binding when passed directly to .map().

Location

core/config/json/loadRcConfigs.ts line 21

Current code

return await Promise.all(rcFiles.map(ide.readFile));

Problem

When ide.readFile is passed as a callback to .map(), it's called without the ide context, causing this to be undefined inside the method. This causes the file read to fail silently.

Fix

return await Promise.all(rcFiles.map((uri) => ide.readFile(uri)));

Impact

  • All .continuerc.json workspace-level configuration is ignored
  • Tool overrides, custom rules, and other per-repo settings don't work
  • The function returns an empty array with no error logged

How to reproduce

  1. Create a .continuerc.json in a workspace with any valid config
  2. Add debug logging inside getWorkspaceRcConfigs
  3. Observe that workspaceConfigs is always empty despite the file existing and being found by listDir

Activity

  1. continue commented on Dec 25, 2025

    @continue
    Contributor

    Related issues:

  2. added
    area:configuration
    kind:bug
    on Dec 25, 2025
  3. added a commit that references this issue on Dec 25, 2025
    12176f1
  4. sestinj commented on Feb 3, 2026

    @sestinj
    Contributor

    🎉 This issue has been resolved in version 1.41.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    area:configurationkind:bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions