2199
return { kind: 'approve-once' };
2200
}
2202
>
// Auto-approve reads of files under the session's attachments
2203
>
// directory. The agent host writes user-message attachments
2204
>
// (pasted images, snapshotted client-side files, etc.) there
2205
>
// before dispatching the turn; the agent ends up needing to
2206
>
// read those same files back, and prompting the user to
2207
>
// approve a read of bytes they themselves attached is
2208
>
// redundant.
2209
>
if (request.kind === 'read' && typeof request.path === 'string'
2210
&& this._isSessionAttachmentPath(request.path)
2211
) {