mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 14:20:35 +00:00
Add guidance for terminal tool about being a pty (#46417)
Release Notes: - N/A
This commit is contained in:
parent
558a741d75
commit
295f9d6ff9
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ const COMMAND_OUTPUT_LIMIT: u64 = 16 * 1024;
|
|||
/// For potentially long-running commands, prefer specifying `timeout_ms` to bound runtime and prevent indefinite hangs.
|
||||
///
|
||||
/// Remember that each invocation of this tool will spawn a new shell process, so you can't rely on any state from previous invocations.
|
||||
///
|
||||
/// The terminal emulator is an interactive pty, so commands may block waiting for user input.
|
||||
/// Some commands can be configured not to do this, such as `git --no-pager diff` and similar.
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
||||
pub struct TerminalToolInput {
|
||||
/// The one-liner command to execute.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue