Record Class SessionMetadataSetWorkingDirectoryResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMetadataSetWorkingDirectoryResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionMetadataSetWorkingDirectoryResult(String workingDirectory)
extends Record
Update the session's working directory. Used by the host when the user explicitly changes cwd (e.g., the `/cd` slash command). The host is responsible for any related side-effects (file index, etc.); it does NOT change the process working directory (a session's cwd is per-session, not process-global). For local sessions the runtime validates the target first (an absolute path that exists on disk) and re-bases the permission primary directory; a rejected validation fails the call before anything is mutated, persisted, or emitted. Location-scoped permission rules are then re-keyed to the new directory (best-effort). Remote sessions only record the path.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMetadataSetWorkingDirectoryResult(String workingDirectory) Creates an instance of aSessionMetadataSetWorkingDirectoryResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.
-
Constructor Details
-
SessionMetadataSetWorkingDirectoryResult
Creates an instance of aSessionMetadataSetWorkingDirectoryResultrecord class.- Parameters:
workingDirectory- the value for theworkingDirectoryrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-