@@ -58,8 +58,8 @@ func validateSessionFsConfig(config *SessionFsConfig) error {
5858 if config == nil {
5959 return nil
6060 }
61- if config .InitialCwd == "" {
62- return errors .New ("SessionFs.InitialCwd is required" )
61+ if config .InitialWorkingDirectory == "" {
62+ return errors .New ("SessionFs.InitialWorkingDirectory is required" )
6363 }
6464 if config .SessionStatePath == "" {
6565 return errors .New ("SessionFs.SessionStatePath is required" )
@@ -353,7 +353,7 @@ func (c *Client) Start(ctx context.Context) error {
353353 // If a session filesystem provider was configured, register it.
354354 if c .options .SessionFs != nil {
355355 req := & rpc.SessionFsSetProviderRequest {
356- InitialCwd : c .options .SessionFs .InitialCwd ,
356+ InitialCwd : c .options .SessionFs .InitialWorkingDirectory ,
357357 SessionStatePath : c .options .SessionFs .SessionStatePath ,
358358 Conventions : c .options .SessionFs .Conventions ,
359359 }
@@ -945,7 +945,7 @@ func (c *Client) ResumeSessionWithOptions(ctx context.Context, sessionID string,
945945// Returns a list of SessionMetadata for all available sessions, including their IDs,
946946// timestamps, optional summaries, and context information.
947947//
948- // An optional filter can be provided to filter sessions by cwd , git root, repository, or branch.
948+ // An optional filter can be provided to filter sessions by working directory , git root, repository, or branch.
949949//
950950// Example:
951951//
@@ -1501,8 +1501,8 @@ func (c *Client) startCLIServer(ctx context.Context) error {
15011501 configureProcAttr (c .process )
15021502
15031503 // Set working directory if specified
1504- if c .options .Cwd != "" {
1505- c .process .Dir = c .options .Cwd
1504+ if c .options .WorkingDirectory != "" {
1505+ c .process .Dir = c .options .WorkingDirectory
15061506 }
15071507
15081508 c .process .Env = append ([]string {}, c .options .Env ... )
0 commit comments