Skip to content

Task terminal sticky scroll bug after being cleared #280025

@Magyar57

Description

@Magyar57

Type: Bug

With the following task.json (and a sufficiently small terminal), running the task twice makes the terminal sticky scroll feature bug, as the command is not printed twice after the task's terminal is cleared.

This is very similar to #199305

{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "whatever",
			"type": "shell",
			"command": "echo 'manatee\nchocolate\ndistribute\npride\nfox\nfree\nmethod\ntradition\npenny\nfreight\nproductive\nconference'",
			"presentation": { "clear": true }
		}
	]
}

VS Code version: Code 1.106.2 (1e3c50d, 2025-11-19T16:56:50.023Z)
OS version: Linux x64 6.17.8-arch1-1
Modes:

Extensions (10)
Extension Author (truncated) Version
copilot-chat Git 0.33.3
rainbow-csv mec 3.23.0
debugpy ms- 2025.16.0
python ms- 2025.18.0
vscode-pylance ms- 2025.10.2
vscode-python-envs ms- 1.12.0
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
hexeditor ms- 1.11.1
remote-explorer ms- 0.5.0
A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
nes-set-on:31351930
6abeh943:31336334
envsdeactivate2:31353495
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
treatment_gpt5applypatchexclusively:31412086
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
6j29d282:31407606
ec5jj548:31422691
copilot-nes-oct-t:31418199
cmp-ext-treat:31426748
cp_cls_c_966_ss:31426491
defaultvisibility:31426295
expandedtokens:31426297
c0683394:31419495
ief76360:31426358
g0h3h215:31426582
b53de340:31426751
fa76a614:31426783
38bie571_auto:31426784

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberterminal-sticky-scroll

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions