Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/lib/CommitManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,20 +637,6 @@ describe('CommitManager', () => {
)
})

it('should pass CLAUDE_CODE_SIMPLE env var for minimal mode', async () => {
vi.mocked(claude.launchClaude).mockResolvedValue('Add feature')
vi.mocked(git.executeGitCommand).mockResolvedValue('')

await manager.commitChanges(mockWorktreePath, { issuePrefix: '#', dryRun: false })

const claudeCall = vi.mocked(claude.launchClaude).mock.calls[0]
expect(claudeCall[1]).toEqual(
expect.objectContaining({
env: { CLAUDE_CODE_SIMPLE: '1' },
})
)
})

it('should use structured XML prompt format', async () => {
vi.mocked(claude.launchClaude).mockResolvedValue('Add feature')
vi.mocked(git.executeGitCommand).mockResolvedValue('')
Expand Down
1 change: 0 additions & 1 deletion src/lib/CommitManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ export class CommitManager {
timeout: 120000, // 120 second timeout
appendSystemPrompt: 'Output only the requested content. Never include preamble, analysis, or meta-commentary. Your response is used verbatim.',
noSessionPersistence: true, // Utility operation - don't persist session
env: { CLAUDE_CODE_SIMPLE: '1' }, // Minimal mode - no MCP, hooks, or CLAUDE.md loading
}
getLogger().debug('Claude CLI call parameters:', {
options: claudeOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/claude.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ describe('claude utils', () => {
['-p', '--output-format', 'stream-json', '--verbose', '--model', 'haiku', '--add-dir', '/tmp', '--no-session-persistence'],
expect.objectContaining({
input: expect.stringContaining(issueTitle),
env: expect.objectContaining({ CLAUDE_CODE_SIMPLE: '1' }),
env: expect.objectContaining({ CLAUDECODE: '0' }),
})
)
})
Expand Down
1 change: 0 additions & 1 deletion src/utils/claude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,6 @@ Generate a git branch name for the following issue:
model,
headless: true,
noSessionPersistence: true, // Utility operation - don't persist session
env: { CLAUDE_CODE_SIMPLE: '1' }, // Minimal mode - no MCP, hooks, or CLAUDE.md loading
})) as string

// Normalize to lowercase for consistency (Linear IDs are uppercase but branches should be lowercase)
Expand Down
Loading