Repository navigation
feat(terminal): interrupt foreground programs in an authorized Debug terminal - #438
Merged
Merged
Conversation
Qiyuanqiii
changed the base branch from
Qiyuanqiii/runtime-security-october
to
main
October 22, 2026 02:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
已授权的 Debug 终端遇到持续运行的前台程序时,模型现在可以用
debug_terminal的interrupt动作发送 Ctrl+C,再读取输出确认程序是否停止。固定发送一个0x03字节,不附加回车、不接受自定义输入,保留现有持久 shell。动作复用当前输入租约、Run/Workspace 绑定、宿主策略、操作去重、审计与原生授权。过期或撤销的权限不能中断进程;不确定是否写入成功时不会自动重试。
基于 #434,依赖其运行时安全更新;请在前置 PR 合并后处理。没有界面变更。
验证:
go test ./internal/toolgateway -count=1通过。git diff --check通过。