Skip to content

feat: add Default Working Directory setting#17

Merged
ecogs-sys merged 18 commits into
mainfrom
docs/readme-build-scripts-and-screenshots
Jun 1, 2026
Merged

feat: add Default Working Directory setting#17
ecogs-sys merged 18 commits into
mainfrom
docs/readme-build-scripts-and-screenshots

Conversation

@ecogs-sys
Copy link
Copy Markdown
Owner

Summary

  • Adds a defaultCwd field to AppSettingsSchema (backward-compatible via z.string().default(''))
  • Adds a Default Working Directory section to the Settings dialog with a text input and Browse button
  • Wires the setting into layout-manager.ts so it pre-fills the New Session dialog when no sessions are open (priority: session cwd → configured default → home directory)

Test Plan

  • Open Settings → verify "DEFAULT WORKING DIRECTORY" section appears below Auto-resume
  • Type a path or click Browse → verify path is saved and pre-fills New Session dialog on next open (with no tabs open)
  • Open a session, then open New Session → verify it still inherits the open session's cwd (setting not applied)
  • Leave field blank → verify New Session pre-fills with home directory
  • Existing settings.json without defaultCwd → verify it loads without error

🤖 Generated with Claude Code

ecogs-sys and others added 18 commits May 31, 2026 15:43
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Extends the settings modal with a Default Working Directory field backed
by an IpcChannel.FsPickDirectory Browse button; Save trims and returns
defaultCwd alongside autoResume in AppSettings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…xpectation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ecogs-sys ecogs-sys merged commit 2471004 into main Jun 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant