pub fn apply_session(cmd: QueryCommand, config: &Config) -> QueryCommandExpand description
Apply session-related flags (-c / -c=ID, –fork), the model override (–model), the subagent override (–agent), and then permission-related flags. Returns the configured QueryCommand.