Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
A canvas tab stops re-rendering while an external process keeps rewriting its .canvas.tsx every ~7 min. After 4–6 writes the open tab shows an old state indefinitely. The file on disk is fresh and the job log shows every write. There is no error card, no Canvas TypeScript check problem, and no event in the Cursor structured logs (key=canvas) at the time the tab stops. Re-opening the file shows the current disk state immediately, so the file content itself is fine.
Seen 3 times in a row on the same day (local time CET):
| Tab opened | Last state shown in tab | Tab lifetime | Write mode at that time |
|---|---|---|---|
| 12:08:10 | 12:34:13 | 26 min | in-place write (same inode), DATA_REV = hash of data |
| 13:34:54 | 14:01:57 | 27 min | atomic write (tmp + os.replace), DATA_REV = generated_at |
| 14:23:44 | 15:08:49 | 45 min | in-place write (same inode 190577402 verified with ls -i), DATA_REV = generated_at |
Write mode (atomic vs in-place), file name and the form of DATA_REV differed between the cases; the tab stopped updating in every case.
Steps to Reproduce
Observed 3 of 3 times with my setup; I have not yet reduced it to a minimal sample.
- Create a canvas in the managed folder
~/.cursor/projects/<workspace>/canvases/<name>.canvas.tsx(~44 KB). Data is inlined asconst RAW: any = {...}, a top-levelconst DATA_REV = "<generated_at>"is changed on every write, and the root element is<Stack key={DATA_REV}>. This follows the pattern of the cursor/cookbookcanvas_writer.ts(“IDE hot-recompiles on file change”). - Open the canvas tab beside the chat.
- Let a launchd job (Python, every ~7 min) rewrite the file and its
<name>.data.json. The data content stays identical; onlygenerated_at/DATA_REVchange. - Watch the tab. After ~26–45 min (4–6 writes) it stops showing new states, while the file on disk keeps changing.
What did not revive the tab: an agent edit (StrReplace) of the open file at 14:14:51 (Cursor logs Canvas detected via tool write and Canvas surfaced, but the tab does not change). Only closing and re-opening the tab helps, which is not acceptable for a live view.
Expected Behavior
The open canvas tab re-renders after every write for as long as it is open.
Operating System
MacOS
Version Information
Version: 3.27.22
VS Code Extension API: 1.128.0
Commit: b1aa50cb6db84fd3e8c808259cb172ea73425c10
Date: 2026-10-27T00:33:02.045Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.5.0
For AI issues: which model did you use?
Claude Sonnet 5.5 High
For AI issues: add Request ID with privacy disabled
Not applicable (see above).
Additional Information
What I ruled out
- The renderer process is alive but idle: 1.1 s CPU in 43 min, 0 % CPU, ~170 MB RSS, started when the tab was opened.
- No macOS sleep or display-off in the windows (
pmset -g log). - No data-dependent runtime error: the payload was identical between the last visible and the first invisible write except for
generated_atandrev. - Orphaned inode after
os.replace: the third case used in-place writes with a stable inode and still stopped. - Files outside the workspace: a
.canvas.tsxin the workspace folder opens as plain code, so the managed folder is the only place a canvas is detected (matches the canvas skill: “The IDE only detects canvases written directly inside that exact directory”).
Observation about <name>.canvas.status.json
Cursor writes {"status":"rendered"} shortly after a render and removes it again after some minutes. It is not a reliable “tab is mounted” signal.
Question
Is there a documented lifecycle or timeout for canvas sessions or file watchers, and is there a supported way to keep a canvas live while an external process rewrites its file?
Attachments (referenced above)
Attachment A: Cursor Structured Logs, all entries with key=canvas on 2026-11-02 (local time CET = UTC+1, file Cursor Structured Logs*.log, window1/exthost/anysphere.cursor-always-local). Metadata reduced to canvasId and durationMs; nothing else removed.
2026-11-02 10:43:00.427 [info] key=canvas Canvas destroyed canvasId=8bff55bc3ef9
2026-11-02 10:43:00.428 [info] key=canvas Canvas session acquired canvasId=ccf39eae311a durationMs=15
2026-11-02 10:43:07.690 [info] key=canvas Canvas destroyed canvasId=ccf39eae311a
2026-11-02 10:43:07.691 [info] key=canvas Canvas session acquired canvasId=8bff55bc3ef9 durationMs=12
2026-11-02 10:44:33.079 [info] key=canvas Canvas detected via tool write
2026-11-02 10:44:33.081 [info] key=canvas Canvas surfaced
2026-11-02 11:33:13.358 [info] key=canvas Canvas detected via tool write
2026-11-02 11:33:13.358 [info] key=canvas Canvas surfaced
2026-11-02 11:59:52.550 [info] key=canvas Canvas detected via tool write
2026-11-02 11:59:52.551 [info] key=canvas Canvas surfaced
2026-11-02 12:05:18.443 [info] key=canvas Canvas detected via tool write
2026-11-02 12:05:18.445 [info] key=canvas Canvas surfaced
2026-11-02 12:08:07.217 [info] key=canvas Canvas destroyed canvasId=8bff55bc3ef9
2026-11-02 12:08:07.218 [info] key=canvas Canvas session acquired canvasId=ccf39eae311a durationMs=13
2026-11-02 12:08:10.619 [info] key=canvas Canvas opened successfully durationMs=19
2026-11-02 12:08:10.630 [info] key=canvas Canvas destroyed canvasId=ccf39eae311a
2026-11-02 12:08:10.631 [info] key=canvas Canvas session acquired canvasId=8bff55bc3ef9 durationMs=17
2026-11-02 13:33:27.748 [info] key=canvas Canvas destroyed canvasId=8bff55bc3ef9
2026-11-02 13:33:27.760 [info] key=canvas Canvas session acquired canvasId=ccf39eae311a durationMs=190
2026-11-02 13:34:54.585 [info] key=canvas Canvas opened successfully durationMs=17
2026-11-02 13:34:54.597 [info] key=canvas Canvas destroyed canvasId=ccf39eae311a
2026-11-02 13:34:54.600 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=19
2026-11-02 14:14:51.862 [info] key=canvas Canvas detected via tool write
2026-11-02 14:14:51.866 [info] key=canvas Canvas surfaced
2026-11-02 14:23:40.888 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 14:23:40.890 [info] key=canvas Canvas session acquired canvasId=ccf39eae311a durationMs=16
2026-11-02 14:23:44.045 [info] key=canvas Canvas opened successfully durationMs=18
2026-11-02 14:23:44.056 [info] key=canvas Canvas destroyed canvasId=ccf39eae311a
2026-11-02 14:23:44.058 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=16
2026-11-02 14:27:58.105 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 14:28:10.918 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=17
2026-11-02 14:28:36.192 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 14:29:45.867 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=21
2026-11-02 14:29:48.876 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 14:31:25.457 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=17
2026-11-02 14:42:54.899 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 14:43:01.269 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=15
2026-11-02 15:41:42.349 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 15:41:47.591 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=16
2026-11-02 16:03:24.845 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 16:04:06.066 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=16
2026-11-02 16:08:50.068 [info] key=canvas Canvas destroyed canvasId=81b613265198
2026-11-02 16:08:51.318 [info] key=canvas Canvas session acquired canvasId=ccf39eae311a durationMs=12
2026-11-02 16:08:55.727 [info] key=canvas Canvas opened successfully durationMs=17
2026-11-02 16:08:55.739 [info] key=canvas Canvas destroyed canvasId=ccf39eae311a
2026-11-02 16:08:55.740 [info] key=canvas Canvas session acquired canvasId=81b613265198 durationMs=17
What the log shows:
- “Canvas opened successfully” appears only when a tab is (re)opened: 12:08:10, 13:34:54, 14:23:44 (the 16:08:55 entry coincides with an unrelated navigation of the IDE browser tool, see the session-pool note below).
- There is no entry at the moments the tabs stopped updating (12:34, 14:01, 15:08 CET): the logs are silent between 12:08:10 and 13:33:27, between 13:34:54 and 14:14:51, and between 14:43:01 and 15:41:42.
- “Canvas detected via tool write / surfaced” occurs only for writes by the agent (e.g. 14:14:51), never for the external job writes.
- Session pool: only three view ids (
8bff55bc3ef9,ccf39eae311a,81b613265198) are cycled with destroy / acquire. The in-IDE browser tool reports the same view id ascanvas-workspace-81b613265198, so canvas tabs and the browser appear to share one webview pool. I cannot attribute the destroy/acquire pairs between 14:27 and 14:43 and at 15:41, 16:03 to a specific action.
Attachment B: job log (canvas-pull.log, UTC; CET = UTC+1). One line per write, interval ~7.3 min, no gap, every write refresh ok. The fp value is <last_t>:<shadow_eq>:<n_closed>:<n_open> of the shadow book (not relevant to the bug, only a change fingerprint of the data). The data content is constant over the whole period; only generated_at / DATA_REV changes. The canvas was renamed from -2 to the plain name at 12:40 UTC.
Mapping of the three occurrences (tab open, last state shown in tab, all UTC): 11:08Z open, last state 11:34:13Z (case 1); 12:34:54Z open, last state 13:01:57Z (case 2); 13:23:44Z open, last state 14:08:49Z (case 3). Every one of these writes is in the list below, so the file was current after the tab stopped.
[2026-11-02 11:04:47 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793617260:928.597:3:0
[2026-11-02 11:12:06 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793617740:928.597:3:0
[2026-11-02 11:19:21 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793618100:928.597:3:0
[2026-11-02 11:26:47 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793618580:928.597:3:0
[2026-11-02 11:34:13 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793619000:928.597:3:0
[2026-11-02 11:41:35 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793619480:928.597:3:0
[2026-11-02 11:48:47 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793619900:928.597:3:0
[2026-11-02 11:56:11 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793620380:928.597:3:0
[2026-11-02 12:03:24 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793620800:928.597:3:0
[2026-11-02 12:10:46 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793621220:928.597:3:0
[2026-11-02 12:18:04 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793621700:928.597:3:0
[2026-11-02 12:25:19 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793622120:928.597:3:0
[2026-11-02 12:32:46 UTC] mac-live vektor-pool-compound-2: refresh ok fp=1793622540:928.597:3:0
[2026-11-02 12:40:01 UTC] mac-live vektor-pool-compound: refresh ok fp=1793622960:928.597:3:0
[2026-11-02 12:47:19 UTC] mac-live vektor-pool-compound: refresh ok fp=1793623380:928.597:3:0
[2026-11-02 12:54:38 UTC] mac-live vektor-pool-compound: refresh ok fp=1793623860:928.597:3:0
[2026-11-02 13:01:58 UTC] mac-live vektor-pool-compound: refresh ok fp=1793624280:928.597:3:0
[2026-11-02 13:09:10 UTC] mac-live vektor-pool-compound: refresh ok fp=1793624760:928.597:3:0
[2026-11-02 13:16:27 UTC] mac-live vektor-pool-compound: refresh ok fp=1793625180:928.597:3:0
[2026-11-02 13:23:58 UTC] mac-live vektor-pool-compound: refresh ok fp=1793625660:928.597:3:0
[2026-11-02 13:31:25 UTC] mac-live vektor-pool-compound: refresh ok fp=1793626080:928.597:3:0
[2026-11-02 13:38:57 UTC] mac-live vektor-pool-compound: refresh ok fp=1793626500:928.597:3:0
[2026-11-02 13:46:07 UTC] mac-live vektor-pool-compound: refresh ok fp=1793626980:928.597:3:0
[2026-11-02 13:53:28 UTC] mac-live vektor-pool-compound: refresh ok fp=1793627400:928.597:3:0
[2026-11-02 14:01:12 UTC] mac-live vektor-pool-compound: refresh ok fp=1793627820:928.597:3:0
[2026-11-02 14:08:49 UTC] mac-live vektor-pool-compound: refresh ok fp=1793628300:928.597:3:0
[2026-11-02 14:15:56 UTC] mac-live vektor-pool-compound: refresh ok fp=1793628720:928.597:3:0
[2026-11-02 14:23:18 UTC] mac-live vektor-pool-compound: refresh ok fp=1793629200:928.597:3:0
Attachment C (to add by the reporter): the canvas file shape, anonymised; the data block can be dropped. Not generated here because the file contains account data.
Does this stop you from using Cursor
No - Cursor works, but with this issue