chore(pty): mark unsupported diagnostic claims
This commit is contained in:
@@ -1593,7 +1593,7 @@ export interface Config {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: [`packages/pty/tool-bash-persistent/src/index.ts:395`](../packages/pty/tool-bash-persistent/src/index.ts)
|
Source: [`packages/pty/tool-bash-persistent/src/index.ts:397`](../packages/pty/tool-bash-persistent/src/index.ts)
|
||||||
|
|
||||||
## `@deepseek-ai/dsh-tool-cordis`
|
## `@deepseek-ai/dsh-tool-cordis`
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import type { PtyReadResult, PtySendResult, PtySessionId } from '@deepseek-ai/ds
|
|||||||
import { deadline, timeoutOf } from '@deepseek-ai/dsh-timeout'
|
import { deadline, timeoutOf } from '@deepseek-ai/dsh-timeout'
|
||||||
import { defineTool } from '@deepseek-ai/dsh-tools'
|
import { defineTool } from '@deepseek-ai/dsh-tools'
|
||||||
|
|
||||||
|
// TODO: Replace the file-search advice; arbitrary command output need not come from a searchable file.
|
||||||
const TRUNCATED_MESSAGE = '<response clipped><NOTE>To save on context only part of this file has been shown to you. You should retry this tool after you have searched inside the file with `grep -n` in order to find the line numbers of what you are looking for.</NOTE>'
|
const TRUNCATED_MESSAGE = '<response clipped><NOTE>To save on context only part of this file has been shown to you. You should retry this tool after you have searched inside the file with `grep -n` in order to find the line numbers of what you are looking for.</NOTE>'
|
||||||
const LOST_PREFIX_MESSAGE = '<response clipped><NOTE>The beginning of this command output was dropped by the terminal scrollback limit. The following text is the earliest retained output.</NOTE>\n'
|
const LOST_PREFIX_MESSAGE = '<response clipped><NOTE>The beginning of this command output was dropped by the terminal scrollback limit. The following text is the earliest retained output.</NOTE>\n'
|
||||||
const SHELL_RESET_MESSAGE = 'The persistent bash shell was reset; the next bash call starts from the workspace with a fresh current directory and environment.'
|
const SHELL_RESET_MESSAGE = 'The persistent bash shell was reset; the next bash call starts from the workspace with a fresh current directory and environment.'
|
||||||
@@ -304,6 +305,7 @@ async function executeCommand(
|
|||||||
)
|
)
|
||||||
await shells.reset(owner, 'persistent bash command timed out')
|
await shells.reset(owner, 'persistent bash command timed out')
|
||||||
return [
|
return [
|
||||||
|
// TODO: Report a timeout only; this signal does not establish an OOM.
|
||||||
`Your command timed out after ${Math.round(timedOut.timeoutMs / 1000)} seconds or experienced an OOM error. Below is partial output:`,
|
`Your command timed out after ${Math.round(timedOut.timeoutMs / 1000)} seconds or experienced an OOM error. Below is partial output:`,
|
||||||
partial,
|
partial,
|
||||||
SHELL_RESET_MESSAGE,
|
SHELL_RESET_MESSAGE,
|
||||||
|
|||||||
Reference in New Issue
Block a user