deepseek-harness/docs/core-data-structures
NI0317 a7bfade7eb refactor(pty): rename model-facing tools to terminal_* and harden teardown
Rename the six model-facing tools pty_* -> terminal_* and align every
description, guidance section, ACP card title, and rendered result to
terminal terminology. Package and service internals keep their technical
PTY names (PtyService, "unknown PTY session", node-pty).

Harden the local backend teardown:
- a failed close is retryable: drop the memoized rejection so a later
  terminal_close re-runs against the live process table
- service disposal clears the backend, reservation, and owner-cleanup
  registries even when a close fails
- stop readiness polling before teardown so an in-flight send settles as
  session_exit instead of a mis-inferred wait reason
- bound the sanitizer's pending buffer against unterminated escape runs

Update the tool catalog, package READMEs, the bilingual Agent Note, and the
acp/headless pty-tools snapshots to match.
2026-07-21 19:29:56 +08:00
..
approval.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
bash.md fix(sandbox): address PR #309 review — TOCTOU direction, denial metadata, shared roots, docs 2026-07-20 13:59:18 +08:00
code-runtime.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
compaction.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
core.md feat: add persistent PTY sessions 2026-07-21 16:01:00 +08:00
filesystem.md Merge remote-tracking branch 'origin/master' into cross-family-fs-sandbox 2026-07-20 11:44:37 +08:00
llm-streaming.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
persistence.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
pty.md refactor(pty): rename model-facing tools to terminal_* and harden teardown 2026-07-21 19:29:56 +08:00
sandbox.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
scope.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
session-query.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
session.md fix(session): drop the <context> envelope and project context verbatim 2026-07-20 16:22:20 +08:00
skills.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
spill.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
subagent.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
system-prompt.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
tasks.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
token-meter.md docs: include JSDoc in type-equiv blocks 2026-07-19 12:25:40 +08:00
tools.md fix(session): drop the <context> envelope and project context verbatim 2026-07-20 16:22:20 +08:00
user-interaction.md Merge latest origin/master into feat/tui-package 2026-07-19 12:47:05 +08:00
web.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00
workflow.md Rename RFCs to Agent Notes 2026-07-19 22:52:03 +08:00