Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Claude @ imports skipped, the "Allow external CLAUDE.md file imports?" prompt is never shown #46673 (GitHub #46669)

Openvojtech-grosser(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. A folder/repo ~/top with CLAUDE.md (the single line @AGENTS.md) and AGENTS.md, and a repo at ~/top/middle/bottom.
  2. Add ~/top/middle/bottom as a T3 project and start a Claude thread there (normal mode, not a worktree).
  3. Ask the agent which memory files it was given at startup.

Expected behavior

Display the "Allow external file imports" prompt. Same as claude in ~/top/middle/bottom: Claude Code asks "Allow external CLAUDE.md file imports?" and lists ~/top/AGENTS.md. Once allowed, the session gets AGENTS.md.

Actual behavior

The thread gets ~/top/CLAUDE.md but not the AGENTS.md it imports. There is no prompt and no notice, so the agent runs without those instructions silently.

Once the import is allowed in a terminal claude session in the same folder (Claude Code stores hasClaudeMdExternalIncludesApproved: true for that path in ~/.claude.json), new T3 threads there load AGENTS.md. Only the prompt is missing.

Impact

Minor bug or occasional failure

Version or commit

0.1.13

Environment

macOS 26.7.2

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Run Claude Code in the project repo or edit .claude.json with hasClaudeMdExternalIncludesApproved: true

  1. vojtech-grosser(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. Hmm okay dug a bit more into this, looks like its an issue with the Agent SDK, it does not expose it... So T3 would only have to do some workaround, like detecting imports and asking itself. Or editing the .claude.json... :/

    From my Claude investigation:

    • Loading. External @ imports are skipped unless hasClaudeMdExternalIncludesApproved is set for that project in ~/.claude.json. The flag is read the same way in interactive and headless mode.
    • Approving. The only ways to set the flag are the terminal's ClaudeMdExternalIncludesDialog and a /config toggle. In the headless code path that toggle is hard-coded off (shouldShowExternalIncludesToggle:!1).
    • What a host could act on. I found no stream-json or SDK message for this: no request to approve, no "imports withheld" event, no init field. The skip only reaches the debug log ([CLAUDE.md] not loading …).

Sign in to join this conversation.