Skip to content
Open
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
2 changes: 2 additions & 0 deletions src/config/profile-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type StoredProfileConfig = Pick<
ProfileConfig,
| 'schemaVersion'
| 'agentKind'
| 'mode'
| 'accounts'
| 'secrets'
| 'preferences'
Expand Down Expand Up @@ -86,6 +87,7 @@ function serializeProfileConfig(profile: ProfileConfig): StoredProfileConfig {
return {
schemaVersion: profile.schemaVersion,
agentKind: profile.agentKind,
mode: profile.mode,
accounts: profile.accounts,
...(profile.secrets ? { secrets: profile.secrets } : {}),
preferences: profile.preferences,
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/commands/profile-config-command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ describe('profile-aware account and config commands', () => {
const h = await createHarness();

await h.command('/config submit', {
deploy_mode: 'team',
message_reply: 'text',
show_tool_calls: 'hide',
max_concurrent_runs: '7',
Expand All @@ -73,6 +74,7 @@ describe('profile-aware account and config commands', () => {
expect(root.schemaVersion).toBe(2);
expect(root.activeProfile).toBe('claude');
expect(root.profiles['codex-dev']).toBeDefined();
expect(root.profiles.claude?.mode).toBe('team');
expect(root.profiles.claude?.preferences).toMatchObject({
messageReply: 'text',
messageReplyMigrated: true,
Expand Down