Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
583 commits
Select commit Hold shift + click to select a range
9eb8926
test(canvas): the default-agent send from the page reports scheduled,…
claude Nov 17, 2026
eeecb2c
test(canvas): pin the frame of a cropped image on the real crop overlay
claude Nov 17, 2026
77cf802
test(canvas): no delivery notice before the hand-off to the agent is …
claude Nov 17, 2026
3756269
fix(chat): no task reset while a finished run is still being saved
claude Nov 17, 2026
3684738
fix(chat): the reset click re-checks the task owner from the live refs
claude Nov 17, 2026
8c16917
fix(chat): an unknown task outcome no longer blocks the whole task graph
claude Nov 17, 2026
838d9d8
fix(chat): a user's stop during a task send's preflight records cance…
claude Nov 17, 2026
199e296
refactor(chat): drop the task dispatch fallback check that could neve…
claude Nov 17, 2026
1061222
fix(chat): a task the user dispatches to a stopped member resumes it
claude Nov 17, 2026
535edcd
fix(chat): stop-all also holds members idle at the click with queued …
claude Nov 17, 2026
4f9c488
fix(chat): a long-lived team dispatcher drops its oldest settled reco…
claude Nov 17, 2026
12e0f24
perf(chat): a hidden pane with a team polls MAIN every 3 s instead of…
claude Nov 17, 2026
3631408
chore(chat): drop the dead visibilityEpoch and prune stop holds of de…
claude Nov 17, 2026
422250d
test(chat): pin that a user send waits for a Canvas Target run and fo…
claude Nov 17, 2026
ff603e4
fix(i18n): team task warnings go through t() in both locales
claude Nov 17, 2026
1aecf0d
test(chat): fix the type of the lead/automation case in the part 6 un…
claude Nov 17, 2026
139626b
fix(agent-terminal): run Windows terminal commands inside a Job Object
claude Nov 17, 2026
3d3c201
fix(agent-terminal): sweep the Windows process tree when no Job Objec…
claude Nov 17, 2026
a842006
fix(agent-jobs): sweep the Windows tree of unconfined background comm…
claude Nov 17, 2026
6a6006f
test(agent-terminal): assert that nothing of a growing tree runs afte…
claude Nov 17, 2026
86c0b54
test(agent-jobs): count the tree sweep's snapshot as a stop controlle…
claude Nov 17, 2026
62acfc3
fix(agent-terminal): bound the Windows tree sweep to the tree and say…
claude Nov 17, 2026
9c64e2e
fix(agent-terminal): date tree deaths exactly, keep batch names off t…
claude Nov 18, 2026
24fd3b5
fix(canvas): mirror only stored bytes that provably belong to the slo…
claude Nov 17, 2026
06a0c6b
perf(canvas): keep no inline source alive in the mirror entry-name cache
claude Nov 17, 2026
cc8886e
fix(canvas): reserve mirror disk space per volume and stop at 'no-space'
claude Nov 17, 2026
fe3e71f
perf(canvas): hold one copy of a new asset's bytes at a time while sa…
claude Nov 17, 2026
3ccc2d6
perf(canvas): copy large mirror assets without holding up the save queue
claude Nov 17, 2026
6826356
perf(canvas): read the stored canvas record once per session, not thr…
claude Nov 17, 2026
0491180
perf(canvas): reopen images from their mirror file and scan media wit…
claude Nov 17, 2026
ac332b9
fix(canvas): reopen from the mirror only images whose bytes can never…
claude Nov 17, 2026
1be5752
fix(canvas): restore a reopened board from IndexedDB only, never from…
claude Nov 17, 2026
04c94fc
test(canvas): the reopened-image hand-off imports path-less bytes wit…
claude Nov 18, 2026
9b8bdfb
feat(agent-column): agent questions as prompt cards at the end of the…
claude Nov 17, 2026
f4e0ac7
feat(agent-column): HTML apps as app launcher cards in the transcript…
claude Nov 17, 2026
81455f4
feat(agent-column): status line under the toolbar and a Refresh button
claude Nov 17, 2026
5ede605
feat(agent-column): keep the working line to one line
claude Nov 17, 2026
e6ee7c3
feat(agent-column): upstream queue strip with status words and edit i…
claude Nov 17, 2026
4eae43b
fix(agent-column): working line after the prompt cards; no empty line…
claude Nov 17, 2026
acde05d
fix(agent-column): list markers in agent card bodies
claude Nov 17, 2026
fd656a4
fix(agent-column): edit queued messages in place; HTML cards only whe…
claude Nov 17, 2026
2ed0a7f
fix(agent-column): keep the queue order around Stop, removal and in-r…
claude Nov 17, 2026
d7cce37
fix(agent-column): queue edit hold, unavailable attachments, team ite…
claude Nov 17, 2026
13b6a12
fix(agent-column): prompt cards, app cards and queue strip as upstrea…
claude Nov 17, 2026
bdac508
test(agent-column): pin the queued-edit guards and mutation-check them
claude Nov 17, 2026
e8a7de4
fix(agent-column): keep saved HTML snapshots reachable; queue strip f…
claude Nov 18, 2026
a953c61
fix(chat): a supersede of an unchanged session is reported, and NaN e…
claude Nov 17, 2026
d9ad0cd
fix(chat): a debounced save conflict records the live object it refused
claude Nov 17, 2026
3aee1aa
perf(chat): refused-save records hold the session object weakly
claude Nov 17, 2026
9fac346
fix(chat): a superseded debounced save re-queues with the newest save…
claude Nov 17, 2026
ebe15dd
fix(chat): a team lifecycle refusal is reported once, like a save con…
claude Nov 17, 2026
e89e024
test(chat): cancel pending debounced saves after each saveSupersede test
claude Nov 17, 2026
3a15570
test(chat): an explicit Retry of a stuck supersede is reported, not d…
claude Nov 17, 2026
62c8c8e
fix(chat): record the object a refused save sent, report a stuck save…
claude Nov 19, 2026
e4f6846
fix(canvas): draw a cropped selection's drag snapshot only from regis…
claude Nov 17, 2026
853be64
fix(canvas): keep proven crops draggable after a board open or a regi…
claude Nov 17, 2026
3dc3ff1
fix(canvas): keep crop source records through undo and redo
claude Nov 17, 2026
9a7d849
fix(canvas): prove fresh crops on images hydrated from a thumbnail wi…
claude Nov 17, 2026
c9b3892
perf(canvas): small proven-crop registry keys, pruning, and a byte-ch…
claude Nov 19, 2026
8bf3469
fix(canvas): stop the proven-crop fill from re-reading crops it canno…
claude Nov 19, 2026
e7f8ee8
fix(main): ask when a recovery reload after a clean exit never starts
claude Nov 17, 2026
24b2b5d
fix(main): expect our own forced end for 5 s after a hang reload is d…
claude Nov 17, 2026
ffa5074
perf(main): check breadcrumb symbol keys in the preload only
claude Nov 17, 2026
049fdd9
perf(main): one document watch per WebContents for streams, path read…
claude Nov 19, 2026
6c2dd1b
fix(main): an out-of-memory death is never taken for our own forced end
claude Nov 19, 2026
85f68f6
fix(media): scan managed-media references in every chat scope, one re…
claude Nov 19, 2026
7a845ef
perf(media): no reference scan on window focus or while a chat reques…
claude Nov 19, 2026
5dc18c3
fix(media): read canvas boards for the reference scan one at a time, …
claude Nov 19, 2026
52c3d62
fix(chat): a failed reference-scan walk keeps the shared chat connection
claude Nov 19, 2026
b822397
fix(media): withdraw the reference snapshot while scans wait, and cap…
claude Nov 19, 2026
ef4940e
feat(media): name the source when a reference scan is incomplete
claude Nov 19, 2026
48ae853
fix(media): keep the ids a malformed media value can name, skip the rest
claude Nov 19, 2026
e8b4bab
fix(canvas): the reference scan fails when it cannot resolve a board'…
claude Nov 19, 2026
4215266
fix(media): read draft backups before and after the reference scan's …
claude Nov 19, 2026
6593a95
fix(goals): limit a goal delete to the chosen goal
claude Nov 19, 2026
aac990d
test(goals): pin the goal delete path through the user service
claude Nov 19, 2026
766e801
feat(goals): delete a goal from the goal view after a confirmation
claude Nov 19, 2026
293df5a
docs(goals): say that a goal record can be deleted after a confirmation
claude Nov 19, 2026
d8ba9d9
fix(goals): never confirm a goal delete with a double click
claude Nov 19, 2026
409ecc2
fix(main): give trigger occurrences a permit marker and a terminal un…
claude Nov 19, 2026
01c1ca5
fix(main): mark a trigger occurrence before its execution permit is c…
claude Nov 19, 2026
3399a5f
fix(main): keep polling trigger occurrences when settling one fails
claude Nov 19, 2026
18e02e1
fix(main): log failing trigger occurrence polls by error name, rate-l…
claude Nov 19, 2026
baa68c1
test(main): pin the fail-closed outcome of an approval slower than th…
claude Nov 19, 2026
d891eb0
fix(main): refuse a concurrent second run of one trigger occurrence a…
claude Nov 19, 2026
ac61afe
fix(agent): start no new step, retry or tool of a member turn after i…
claude Nov 19, 2026
83f2d64
fix(agent): stop a member's helper loops and background jobs after it…
claude Nov 19, 2026
539cd45
docs(team): note that a running member turn stops before its next req…
claude Nov 19, 2026
96b0406
fix(agent): keep what an End-cut member turn already started or finished
claude Nov 19, 2026
e10812b
fix(agent): start no approved tool of a member whose team ended durin…
claude Nov 19, 2026
57de452
test(agent): assert real outcomes in the End helper tests and cover a…
claude Nov 19, 2026
12bedcf
fix(agent): recognise an End cut by a per-turn flag, also behind wrap…
claude Nov 19, 2026
a5a16a0
fix(agent): clear an inherited approval continuation check for starts…
claude Nov 19, 2026
280c690
test(agent): make the Stop negative test prove how the turn is disposed
claude Nov 19, 2026
460b4b4
fix(agent): record an End refusal of send_message and send_channel as…
claude Nov 19, 2026
1fb1d20
feat(agent-threads): add MAIN thread identity registry
claude Nov 19, 2026
08f2469
feat(agent-threads): add MAIN run grant record bound to a thread gene…
claude Nov 19, 2026
82a27be
feat(agent-threads): charge a run grant before the work, with hard li…
claude Nov 19, 2026
af0be43
wip(agent-threads): unfinished edit saved at hand-off (not reviewed)
claude Nov 21, 2026
af5061c
feat(team): add a durable store for member messages
claude Nov 19, 2026
66b7421
feat(team): keep member messages in the durable store until claimed
claude Nov 19, 2026
8701985
feat(team): record the start of a member message delivery in MAIN
claude Nov 19, 2026
7f91d2f
feat(team): present the claim of a member message and hold carried-ov…
claude Nov 19, 2026
773c711
fix(canvas): serve application-root local-media files on Linux and macOS
claude Nov 17, 2026
b1b89f7
test(local-media): pin encoded separators and traversal in POSIX URLs
claude Nov 19, 2026
0890104
perf(canvas): commit every imported frame at once and stream the pixe…
claude Nov 19, 2026
e8aa85a
perf(canvas): thumbnail levels below the source, cascaded, display le…
claude Nov 19, 2026
9120d10
perf(canvas): keep session thumbnail URLs out of the shared object-UR…
claude Nov 19, 2026
b7628d3
fix(local-media): refuse Windows network paths before any filesystem …
claude Nov 19, 2026
1f97ca0
test(local-media): exercise a literal '..' and the import-source doub…
claude Nov 19, 2026
4be73ed
fix(canvas): no pending tile on items an import will never patch
claude Nov 19, 2026
cecc350
fix(canvas): keep the 48-image band frame size in a streamed import
claude Nov 19, 2026
e700c95
fix(canvas): time thumbnail jobs from their start and drop the ones g…
claude Nov 19, 2026
f903e27
fix(canvas): bound reopen thumbnail generation, never on the main thr…
claude Nov 19, 2026
a3a4008
fix(canvas): a file with no readable header gets the failed tile too
claude Nov 19, 2026
4fe4073
test(canvas): pin the unmount test to the streamed frames; drop a dea…
claude Nov 19, 2026
8e12706
fix(media): never cut a slow import that keeps delivering bytes
claude Nov 19, 2026
1ca515a
fix(media): spend an import grant only in the import that uses it
claude Nov 19, 2026
1b13942
fix(chat): import URL-only drops by path with one-use grants
claude Nov 19, 2026
c55488c
fix(chat): attach files whose names the managed store refuses
claude Nov 19, 2026
f1a57a7
fix(media): verify the temp media folder wherever it is used
claude Nov 19, 2026
81d87cb
fix(chat): short, true, localized attachment refusals everywhere
claude Nov 19, 2026
43bb819
test(media): pin the import guards that no test held
claude Nov 19, 2026
2d2b849
fix(media): no import or pick grant can wait forever on a dying source
claude Nov 19, 2026
36fabe2
fix(media): one slow file no longer shuts out the rest of its drive
claude Nov 19, 2026
379508f
fix(chat): attach URL-only drops from a mapped network drive again
claude Nov 19, 2026
2769948
fix(chat): a drop's grants live through its own imports
claude Nov 19, 2026
07d67b4
fix(chat): a refused file no longer fails the rest of a dropped folder
claude Nov 19, 2026
ea83aa4
fix(chat): keep the size of a picked image whose header read gave up
claude Nov 19, 2026
b53771b
test(media): pin where the copy cap starts; tidy a doc and a mock
claude Nov 19, 2026
7816015
fix(media): notice when the remembered temp media folder changes
claude Nov 19, 2026
2bdd5a6
test(local-media): read the import-source answer as { canonicalPath }
claude Nov 21, 2026
f1a6923
feat(agent-thread): land the owner's Agent column requests and the im…
claude Nov 21, 2026
31f196a
feat(agent-thread): land the owner's Agent column requests and the im…
claude Nov 21, 2026
d3b9582
fix(chat): keep earlier images in follow-ups unless the image tool su…
claude Nov 21, 2026
0c5919a
fix(media): two slow files no longer shut out the rest of their drive
claude Nov 21, 2026
37e6472
fix(media): never record a mapped-drive read grant after a timeout
claude Nov 21, 2026
3827861
fix(agent-threads): record the expiry a run grant issue relied on
claude Nov 21, 2026
5918e18
fix(agent-threads): never resume a run grant with its old approval
claude Nov 21, 2026
d440739
docs(agent-threads): say exactly when a repeated charge id is a replay
claude Nov 21, 2026
1b37f2e
test(agent-threads): pin fail-closed charges and a revoke under a clo…
claude Nov 21, 2026
1454bb3
fix(media): read a mapped-drive drop off the event loop, under a dead…
claude Nov 21, 2026
65825cf
fix(media): enforce the 5 MB image limit in main for a mapped-drive read
claude Nov 21, 2026
e3c512b
fix(local-media): refuse NT namespace and mixed UNC spellings before …
claude Nov 21, 2026
539dd4c
style(team): format the member message queue and its lease files
claude Nov 21, 2026
a7b06b6
fix(media): recheck the temp media folder after a sleep as well
claude Nov 21, 2026
701b033
fix(team): a lease left by an earlier run no longer shuts the team queue
claude Nov 21, 2026
49ee879
fix(team): back off after a failed open of the team message file
claude Nov 21, 2026
7c3ee60
test(chat): pin the folder drop result and the drop's hand-off window
claude Nov 21, 2026
6ffa710
test(agent-threads): a verifier that revokes the thread cannot get a …
claude Nov 21, 2026
6763017
fix(local-media): serve a granted network path in the spelling it was…
claude Nov 21, 2026
b0c4ef9
fix(team): an unreadable team message file no longer floods the main log
claude Nov 21, 2026
7603817
Merge B23: finish the thread identity registry and run grant records
claude Nov 21, 2026
355c4be
fix(local-media): count the NT namespace prefix as a network spelling
claude Nov 21, 2026
e59a93d
Merge M13c review fixes: mapped-drive reads off the event loop and un…
claude Nov 21, 2026
f7a332a
Merge CV7 re-check: keep granted Windows network files loading in the…
claude Nov 21, 2026
6c02ae3
Merge B13 follow-ups: the durable team queue no longer locks itself out
claude Nov 21, 2026
d21feb7
test(team): open team management from the header in the channel page …
claude Nov 21, 2026
01d5e9e
test(main): compare the drag-out folder in the platform's own path sp…
claude Nov 21, 2026
6c96566
perf(chat): import oversized inline images before a conversation is s…
claude Nov 21, 2026
7de8306
perf(chat): move stored inline images of an open pane to managed media
claude Nov 21, 2026
b359cd9
fix(team): spread the queue's reopen wait, time it on the monotonic c…
claude Nov 21, 2026
e7068fc
fix(team): never take a live lease holder for gone after a system sleep
claude Nov 21, 2026
86ca07a
fix(media): a drive's spare import slot never takes the app's last one
claude Nov 21, 2026
ee0e7df
test(local-media): pin the NT namespace refusal under Windows path ru…
claude Nov 21, 2026
4ebcd3f
Merge round-2 review fixes: lease liveness across sleep, a bounded im…
claude Nov 21, 2026
688055a
fix(media): add an async local-media policy for paths the renderer names
claude Nov 21, 2026
52fdb34
fix(fs): read only granted or app-owned files through svcFs
claude Nov 21, 2026
8220bb4
fix(media): authorize local-media requests off main's event loop
claude Nov 21, 2026
649a0cb
fix(canvas): make thumbnails only of granted or app-owned sources
claude Nov 21, 2026
6ef87e0
perf(chat): keep draft and queued images as managed references, cap t…
claude Nov 21, 2026
e624d6a
test(fs): pin the read kinds, the growth check and the native thumbna…
claude Nov 21, 2026
6174b9b
Merge SEC-3: main reads only granted or app-owned files for the renderer
claude Nov 21, 2026
dd98847
test(chat): pin the single-image import the queue uses
claude Nov 21, 2026
549e0bb
fix(chat): import queued images early only for the person's own items
claude Nov 21, 2026
95a1e4c
Merge M4: stored inline images move to managed media
claude Nov 21, 2026
d694c95
fix(triggers): claim and sweep every occurrence, not the oldest 1000
claude Nov 21, 2026
3d0bd51
fix(triggers): archive terminal occurrences so a poll reads a bounded…
claude Nov 21, 2026
8a394ee
docs(triggers): executeOccurrence is only for the scheduler's own claim
claude Nov 21, 2026
4afd5c4
test(team): drive the real member model selector on the real page
claude Nov 21, 2026
7270ece
test(team): pin member model persistence across a restart and older r…
claude Nov 21, 2026
05abcdc
Merge trigger occurrence fix: the queue no longer stops after 1000 re…
claude Nov 21, 2026
78e0457
feat(team): let a member whose model can no longer be used pick again
claude Nov 21, 2026
7e680a2
feat(team): clear a member's model choice through the guarded team mu…
claude Nov 21, 2026
0692e2a
fix(media): never let cleanup delete an orphan that an import reused
claude Nov 21, 2026
964e6f9
fix(media): withdraw the reference snapshot while an import waits to …
claude Nov 21, 2026
42c0a25
style(chat): format the chat storage and save baseline modules with p…
claude Nov 21, 2026
2ccca21
fix(chat): migrate the stored inline images main can import, keep the…
claude Nov 21, 2026
7aa8e73
fix(chat): supersede a save whose baseline moved while its stored for…
claude Nov 21, 2026
ee2d8e5
feat(team): add the "继承组长" row to a member's model menu
claude Nov 21, 2026
26638c1
fix(fs): never call a renderer read main could not check "File not fo…
claude Nov 21, 2026
4d397a3
fix(canvas): keep the previous autosave project file while main canno…
claude Nov 21, 2026
6325080
fix(skills): read skill resources only in the skill folder or where g…
claude Nov 21, 2026
3e2c207
fix(fs): keep app data and other files out of text, slice and listing…
claude Nov 21, 2026
8f1f439
fix(fs): bound per-image path checks with a per-folder breaker
claude Nov 21, 2026
8ea9723
fix(lora): drop the synchronous existence check before sidecar reads
claude Nov 21, 2026
c37a3f0
fix(photoshop): send only data URLs to Photoshop
claude Nov 21, 2026
94c5209
fix(canvas): take no thumbnail cache root from a packaged app's worki…
claude Nov 21, 2026
c495e8e
fix(canvas): make native thumbnails only of the image types a board s…
claude Nov 21, 2026
a4087a4
fix(fs): log a config main cannot read, and bound folder listings
claude Nov 21, 2026
cd98b88
fix(chat): write the live conversation first and import inline images…
claude Nov 21, 2026
6386473
fix(chat): let long text drafts keep their synchronous backup
claude Nov 21, 2026
90a29e3
fix(chat): auto-save a generated image once when its stored form repl…
claude Nov 21, 2026
7c427a4
fix(triggers): stamp occurrence writes no earlier than the record
claude Nov 21, 2026
bcc5d8b
fix(chat): keep image bytes out of the inline image import caches
claude Nov 21, 2026
1c66abd
style(chat): format the queued send persistence module with prettier
claude Nov 21, 2026
3f6ffee
test(chat): give the auto-save test's SHA-256 input an ArrayBuffer type
claude Nov 21, 2026
752ac26
fix(chat): keep a queued image's blob: URL until a stored copy holds …
claude Nov 21, 2026
fd3505f
Merge B22: a team member's own model, kept across restarts and re-pic…
claude Nov 21, 2026
a32b12d
fix(triggers): dead-letter stale occurrences and drain a backlog in b…
claude Nov 21, 2026
1b47638
fix(triggers): run a kept stale occurrence as soon as one poll has se…
claude Nov 21, 2026
6582ba4
fix(triggers): write a minimal archive event
claude Nov 21, 2026
2326a06
fix(team): let a member re-pick its model while its queued text waits
claude Nov 21, 2026
fda66c5
Merge M4 review fixes: no image lost to cleanup, saves never wait for…
claude Nov 21, 2026
88e573d
fix(team): tell screen readers which member model row is in use
claude Nov 21, 2026
085ffe2
test(team): pin the header pill's missing member re-pick and inherit row
claude Nov 21, 2026
c2137f4
test(team): name what the newer-build marker case really keeps
claude Nov 21, 2026
03cfb3a
test(triggers): say what the stranded-backlog test measures as poll time
claude Nov 21, 2026
9234fc2
test(team): refuse inheriting the lead while the member is busy
claude Nov 21, 2026
26c7e0c
Merge trigger backlog fixes: a stranded backlog drains without blocki…
claude Nov 21, 2026
0844892
Merge SEC-3 review fixes: a refused read is never 'File not found', s…
claude Nov 21, 2026
b012467
Merge B22 review fixes: a member can re-pick its model while its queu…
claude Nov 21, 2026
579189c
fix(triggers): drop only missed schedule instants and stranded record…
claude Nov 21, 2026
094d52e
fix(triggers): move the backlog pass on when its batch keeps failing
claude Nov 21, 2026
094fc9a
Merge trigger stale-rule fix: only missed schedule instants and stran…
claude Nov 21, 2026
9871601
Merge the cloud integration work into the local branch
claude Nov 22, 2026
42148b9
style(chat): format the chat storage tests with prettier
claude Nov 21, 2026
8e403dd
test(chat): keep a fake IndexedDB transaction open while its requests…
claude Nov 21, 2026
bd043c2
fix(chat): import stored inline images outside the save chain, with a…
claude Nov 21, 2026
192d67c
fix(chat): let a save bound to a conversation object survive a refere…
claude Nov 21, 2026
a54500b
perf(chat): hash a new inline image off the save path, a slice at a time
claude Nov 21, 2026
4ff5123
fix(fs): serve the app's media folders, never the rest of its data fo…
claude Nov 21, 2026
97bc9c7
fix(llm): read a 3D reference image only where the local-media protoc…
claude Nov 21, 2026
8a3c6d3
fix(photoshop): refuse a file name with a control character
claude Nov 21, 2026
8e31cd6
fix(fs): bound the per-image breaker and blame only calls that stalled
claude Nov 21, 2026
f645aa4
fix(canvas): load a local image again after main could not answer for it
claude Nov 21, 2026
dfacb6a
fix(fs): never close a mount's root for a single stalled file
claude Nov 21, 2026
046f0f3
fix(triggers): close the three edges of the stranded rule
claude Nov 22, 2026
cc1ca47
fix(fs): a root that holds the app data folder never serves into it
claude Nov 22, 2026
8fc21b6
fix(fs): never close a Windows home folder for two stalled files
claude Nov 22, 2026
93bc099
fix(fs): refuse the NT prefix also once resolved onto a drive
claude Nov 22, 2026
94ca934
feat(chat): show a reply that was cut off by a reload, a crash or qui…
claude Nov 22, 2026
7abdce8
i18n(chat): move the team, queue and image-limit texts into the local…
claude Nov 22, 2026
fdcaaeb
feat(files.read): read a window of lines from a text file
claude Nov 22, 2026
1a69a0f
Merge master into the Agent thread work
claude Nov 22, 2026
047900a
fix(deps): move sharp to 0.35.5 for the libvips, libheif and librsvg …
claude Nov 22, 2026
47d44d6
fix(chat): save a generated image once while its first save still runs
claude Nov 22, 2026
64aad7e
test: write three checks so CodeQL can read them as safe
claude Nov 22, 2026
f72452d
fix(agent-column): stop the focus retry once the sheet is gone
claude Nov 22, 2026
6478812
test(persistence): use a process id no process can hold for a stale l…
claude Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ aiengineelectron-dev/
.aiengineelectron-dev/

# Generated project/cache roots when the global project root points at this repo
# Nested acceptance builds are disposable local scratch, too.
**/.magicpot-trash/
Codex-Junk/
.Codex-Junk/
AutoSave/
Expand Down
13 changes: 12 additions & 1 deletion config/electron/electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ const config = {
},
files: [
'out',
// Retired SQLite preview worker: a stale build of it may still sit in
// out/ on a machine that built before its removal; never package it.
'!out/sqlite-preview-worker/**',
'README.md',
'LICENSE',
'!**/*.map',
Expand All @@ -138,7 +141,15 @@ const config = {
],
extraFiles: bundledContentExtraFiles,
asar: true,
asarUnpack: ['**/*.safetensors', '**/*.ckpt', '**/*.pt', '**/*.pth', '**/models/**/*'],
asarUnpack: [
'**/node_modules/@img/**/*',
'**/node_modules/sharp/**/*',
'**/*.safetensors',
'**/*.ckpt',
'**/*.pt',
'**/*.pth',
'**/models/**/*'
],
win: {
icon: `${buildResourcesDir}/icon.png`,
artifactName: `${releaseArtifactName}-win.\${ext}`,
Expand Down
39 changes: 36 additions & 3 deletions config/electron/electron.vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@
import { createHash } from 'node:crypto'
import { mkdirSync, writeFileSync } from 'fs'
import { relative, resolve } from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import react from '@vitejs/plugin-react'
import type { Plugin } from 'vite'
import viteConfig from '../vite.config.shared.mjs'

const htmlBootstrapManifest = (): Plugin => ({
name: 'magicpot-html-bootstrap-manifest',
generateBundle(_options, bundle) {
const chunks = Object.values(bundle).filter((item) => item.type === 'chunk')
const entry = chunks.find((item) => item.isEntry && item.name === 'index')
if (
!entry ||
Object.keys(entry.modules).some((id) => id.replaceAll('\\', '/').endsWith('/main/index.ts'))
)
throw new Error('HTML bootstrap must not eagerly include normal app initialization.')
this.emitFile({
type: 'asset',
fileName: 'html-bootstrap-manifest.json',
source: JSON.stringify({
protocol: 'magicpot-isolated-html-bootstrap/v1',
entry: entry.fileName,
files: chunks.map((item) => ({
path: item.fileName,
bytes: Buffer.byteLength(item.code),
sha256: createHash('sha256').update(item.code).digest('hex')
}))
})
})
}
})

const shouldAnalyzeBundle = process.env.ANALYZE_BUNDLE === 'true'

const createBundleAnalyzer = (name: string): Plugin[] => {
Expand Down Expand Up @@ -96,15 +123,19 @@ const generatedRuntimeWatchIgnores = [
export default defineConfig({
main: {
...viteConfig,
plugins: [externalizeDepsPlugin(), ...createBundleAnalyzer('main')],
plugins: [externalizeDepsPlugin(), htmlBootstrapManifest(), ...createBundleAnalyzer('main')],
build: {
watch: {
exclude: generatedRuntimeWatchIgnores
},
rollupOptions: {
input: resolve('packages/app/src/main/index.ts'),
input: { index: resolve('packages/app/src/main/bootstrap.ts') },
output: {
inlineDynamicImports: true
// Keep normal application side effects behind the conditional bootstrap import.
// Rollup inlining would eagerly evaluate otherwise lazy modules in the helper.
inlineDynamicImports: false,
// Existing main modules resolve assets/preload relative to out/main.
chunkFileNames: '[name]-[hash].js'
}
}
}
Expand All @@ -129,6 +160,8 @@ export default defineConfig({
root: resolve('packages/app/src/renderer'),
publicDir: resolve('packages/app/src/renderer/public'),
server: {
// Use the same reachable loopback address for Vite and Electron on Windows.
host: '127.0.0.1',
port: 5173,
strictPort: false,
watch: {
Expand Down
10 changes: 8 additions & 2 deletions config/vitest/vitest.node.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ export default defineConfig({
test: {
name: 'node',
environments: 'node',
setupFiles: ['packages/app/src/main/tests/setup/memfs.setup.ts'],
setupFiles: [
'packages/app/src/main/tests/setup/memfs.setup.ts',
'packages/app/src/main/tests/setup/installedCatalogStorage.setup.ts'
],
exclude: [
'scripts/prepare-embedded-staging.test.js',
'scripts/verify-packaged-runtime-dependencies.test.js',
'packages/app/src/main/appUpdate/safeZipExtractor.test.ts',
'packages/app/src/main/appUpdate/artifactPreparer.test.ts'
'packages/app/src/main/appUpdate/artifactPreparer.test.ts',
// This unfinished virtual-startup fixture has not established isolation at
// module-import time. Do not load it in the default node suite.
'packages/app/src/main/config/userDataDirectory.virtualStartup.test.ts'
],
include: [
'scripts/check-text-encoding.test.mjs',
Expand Down
39 changes: 39 additions & 0 deletions config/vitest/vitest.web.channel.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { defineConfig } from 'vitest/config'
import webConfig from './vitest.web.config.mjs'

// Channel real-page test bed: the real ChatPage on in-memory fakes, with the network, real
// IndexedDB, workers and every unlisted desktop bridge call refused and counted.
//
// npm run test:web:channel
// (npx vitest run --config config/vitest/vitest.web.channel.config.mjs)
//
// The deny guards are the FIRST setup file, so they are in place before the test file and any
// business module it imports are loaded. These files are excluded from vitest.web.config.mjs
// (and therefore from the light shards) with the same pattern: they must never run without the
// guards, and the existing web suite stays exactly as it was.
const CHANNEL_REAL_PAGE_TESTS = 'packages/app/src/renderer/**/*.channel.realPage.test.{ts,tsx}'

export default defineConfig({
...webConfig,
test: {
...webConfig.test,
name: 'web-channel',
include: [CHANNEL_REAL_PAGE_TESTS],
exclude: (webConfig.test.exclude ?? []).filter(
(pattern) => pattern !== CHANNEL_REAL_PAGE_TESTS
),
setupFiles: [
'packages/app/src/renderer/src/test/channelDenyGuards.ts',
...(webConfig.test.setupFiles ?? [])
],
// The bed depends on both orders, so they are pinned instead of left to the defaults:
// setup files run one after the other in the order listed (guards first), and afterEach
// hooks run in reverse order of registration (the guards' end-of-test check runs last,
// after the test file's hooks and Testing Library's unmount).
sequence: {
...webConfig.test.sequence,
setupFiles: 'list',
hooks: 'stack'
}
}
})
5 changes: 4 additions & 1 deletion config/vitest/vitest.web.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export default defineConfig({
exclude: [
'packages/app/src/shared/llm/openaiFileSearch.control.test.ts',
'packages/app/src/shared/llm/openaiFileSearch.lifecycle.test.ts',
'packages/app/src/shared/llm/openaiFileSearch.http.test.ts'
'packages/app/src/shared/llm/openaiFileSearch.http.test.ts',
// Channel real-page test bed: runs only under vitest.web.channel.config.mjs, whose first
// setup file refuses the network, real IndexedDB, workers and unlisted bridge calls.
'packages/app/src/renderer/**/*.channel.realPage.test.{ts,tsx}'
],
setupFiles: ['packages/app/src/renderer/src/tests/setup.ts']
}
Expand Down
Loading
Loading