Read-only enforcement applies to stages with shell but no edit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -126,7 +126,7 @@ func TestChatTurnDiffMarksBoundedPatchesTruncated(t *testing.T) {
|
||||
dir := gitRepo(t, map[string]string{"a.txt": "x\n"})
|
||||
h := turnDiffHub(t, dir)
|
||||
h.startRoomTurnDiff("ses_1")
|
||||
writeTurnFile(t, dir, "big.txt", strings.Repeat("line\n", 6000))
|
||||
writeTurnFile(t, dir, "big.txt", strings.Repeat("line\n", 21000))
|
||||
endDiffTurn(h, "ses_1")
|
||||
turns := recordedTurns(t, h, "ses_1")
|
||||
if len(turns) != 1 || !turns[0].Truncated || turns[0].Files != 1 || turns[0].Status != "partial" {
|
||||
|
||||
Reference in New Issue
Block a user