qwen-code/packages/core/src/services
Shaojin Wen e81c9dd5ce
fix(test): isolate the worktree symlink test's temporary sibling directory (#8228)
The integration test for worktree symlink guards rooted its temporary
repository directly at the system temp directory, so the case covering
parent-directory traversal created a sibling with a fixed, machine-wide
name. On a CI host that runs several jobs at once this path is shared:
concurrent jobs race to create it, and because the creation sat outside
the block that cleans it up, a job that lost the race — or was cancelled
mid-test — left the directory behind. Every later job on that machine
then failed at the same point with "file already exists", regardless of
what it was changing.

Nest the temporary repository one level down inside a per-test parent
directory so the sibling location is private to the run, remove that
parent afterwards so nothing is parked in the shared temp directory, and
move the sibling setup inside the block whose cleanup covers it.
2026-07-31 12:33:45 +00:00
..
microcompaction feat(core): add opt-in built-in web_search backed by the DashScope Responses API (#7215) 2026-07-21 10:59:36 +00:00
visionBridge fix(core): bridge tool-result images for text-only models (#7484) 2026-07-28 08:47:40 +00:00
attributionTrailer.test.ts feat: add commit attribution with per-file AI contribution tracking (#3115) 2026-05-08 09:55:58 +08:00
attributionTrailer.ts feat: add commit attribution with per-file AI contribution tracking (#3115) 2026-05-08 09:55:58 +08:00
backgroundShellRegistry.test.ts fix(core): preserve active Todo context across tool turns (#7919) 2026-07-30 01:33:40 +00:00
backgroundShellRegistry.ts fix(core): preserve active Todo context across tool turns (#7919) 2026-07-30 01:33:40 +00:00
chatCompressionService.test.ts fix(core): clamp max_tokens to the context window; retire the output reservation (#6556) 2026-07-10 14:44:14 +00:00
chatCompressionService.ts fix(core): clamp max_tokens to the context window; retire the output reservation (#6556) 2026-07-10 14:44:14 +00:00
chatRecordingService.autoTitle.test.ts fix(core): Fence concurrent ACP session writers (#7237) 2026-07-21 07:36:07 +00:00
chatRecordingService.customTitle.test.ts fix(core): Fence concurrent ACP session writers (#7237) 2026-07-21 07:36:07 +00:00
chatRecordingService.parentSession.test.ts fix(core): Fence concurrent ACP session writers (#7237) 2026-07-21 07:36:07 +00:00
chatRecordingService.test.ts feat(core): tag UserPromptSubmit hook context and record display provenance (#7956) 2026-07-30 11:45:23 +00:00
chatRecordingService.ts feat(core): tag UserPromptSubmit hook context and record display provenance (#7956) 2026-07-30 11:45:23 +00:00
commitAttribution.test.ts feat: add commit attribution with per-file AI contribution tracking (#3115) 2026-05-08 09:55:58 +08:00
commitAttribution.ts feat: add commit attribution with per-file AI contribution tracking (#3115) 2026-05-08 09:55:58 +08:00
compactionInputSlimming.test.ts feat: support full-turn multimodal routing for image prompts (#7045) 2026-07-17 23:22:46 +00:00
compactionInputSlimming.ts feat: support full-turn multimodal routing for image prompts (#7045) 2026-07-17 23:22:46 +00:00
cronScheduler.test.ts feat(daemon): add explicit channel delivery (#7388) 2026-07-23 17:44:23 +00:00
cronScheduler.ts fix(core): preserve active Todo context across tool turns (#7919) 2026-07-30 01:33:40 +00:00
cronTasksFile.test.ts feat(serve): Hot-reload workspace trust changes (#7268) 2026-07-25 08:43:07 +00:00
cronTasksFile.ts feat(serve): Hot-reload workspace trust changes (#7268) 2026-07-25 08:43:07 +00:00
cronTasksLock.test.ts feat(core): durable cron jobs — /loop tasks that survive restarts (#5004) 2026-06-13 19:30:40 +08:00
cronTasksLock.ts feat(core): durable cron jobs — /loop tasks that survive restarts (#5004) 2026-06-13 19:30:40 +08:00
fileDiscoveryService.test.ts feat(core): respect configurable agent ignore files (#4653) 2026-06-23 10:44:37 +08:00
fileDiscoveryService.ts perf(glob): prune ignored directories during traversal, not just post-filter (#6123) 2026-07-04 03:03:21 +00:00
fileHistoryService.test.ts fix: correct typos in comments, a tool description, and docs (#7131) 2026-07-18 07:40:14 +00:00
fileHistoryService.ts fix(core): Persist file history snapshot updates (#5057) 2026-06-14 06:47:03 +08:00
fileReadCache.integration.test.ts fix(core): clear FileReadCache on every history rewrite path (#3810) 2026-05-04 22:42:06 +08:00
fileReadCache.test.ts fix(core): target microcompaction cache disarms (#5407) 2026-06-20 02:30:20 +08:00
fileReadCache.ts fix(core): target microcompaction cache disarms (#5407) 2026-06-20 02:30:20 +08:00
fileSystemService.test.ts feat(serve): page large text files by byte cursor (#8002) 2026-07-30 12:07:05 +00:00
fileSystemService.ts feat(serve): page large text files by byte cursor (#8002) 2026-07-30 12:07:05 +00:00
generatedFiles.test.ts feat: add commit attribution with per-file AI contribution tracking (#3115) 2026-05-08 09:55:58 +08:00
generatedFiles.ts feat: add commit attribution with per-file AI contribution tracking (#3115) 2026-05-08 09:55:58 +08:00
gitInit.ts fix(core): support older Git during repository initialization 2026-04-19 14:24:01 +08:00
gitWorktreeService.hooks.integ.test.ts feat(worktree): Phase C — session persistence, hooksPath, Footer + WorktreeExitDialog, three-mode --resume restore (#4174) 2026-05-19 13:59:35 +08:00
gitWorktreeService.linked.integ.test.ts feat(core): add working_dir to the Agent tool for pinning subagents to an existing worktree (#6456) 2026-07-08 13:45:19 +00:00
gitWorktreeService.symlinks.integ.test.ts fix(test): isolate the worktree symlink test's temporary sibling directory (#8228) 2026-07-31 12:33:45 +00:00
gitWorktreeService.test.ts feat(worktree): Phase D — startup --worktree flag + symlinkDirectories + PR refs (#4381) 2026-05-27 17:04:51 +08:00
gitWorktreeService.ts perf(core): Lazy-load first-use dependencies (#7686) 2026-07-26 03:04:33 +00:00
image-generation-service.test.ts feat(core): add configurable image generation models (#7607) 2026-07-24 09:03:18 +00:00
image-generation-service.ts feat(core): add configurable image generation models (#7607) 2026-07-24 09:03:18 +00:00
image-payload-references.test.ts feat(tui): Ctrl+O frozen transcript view and unified tool output rendering (#5666) 2026-07-09 23:40:29 +00:00
image-payload-references.ts feat(tui): Ctrl+O frozen transcript view and unified tool output rendering (#5666) 2026-07-09 23:40:29 +00:00
loopDetectionService.test.ts fix(core): correct the character classes in checkContentLoop (#7788) 2026-07-28 05:35:15 +00:00
loopDetectionService.ts fix(core): correct the character classes in checkContentLoop (#7788) 2026-07-28 05:35:15 +00:00
memoryDiagnosticsDumper.test.ts feat(telemetry): add runtime memory/CPU sampling with OTel metric reporting (#4868) 2026-06-12 10:27:49 +08:00
memoryDiagnosticsDumper.ts feat(telemetry): add runtime memory/CPU sampling with OTel metric reporting (#4868) 2026-06-12 10:27:49 +08:00
memoryPressureMonitor.test.ts fix(core): preserve managed memory during microcompaction (#6714) 2026-07-11 15:58:54 +00:00
memoryPressureMonitor.ts fix(core): preserve managed memory during microcompaction (#6714) 2026-07-11 15:58:54 +00:00
monitorRegistry.test.ts fix(core): preserve active Todo context across tool turns (#7919) 2026-07-30 01:33:40 +00:00
monitorRegistry.ts fix(core): preserve active Todo context across tool turns (#7919) 2026-07-30 01:33:40 +00:00
postCompactAttachments.test.ts feat(core,cli): auto-compact follow-up — /compress instructions, PreCompact hook plumb, plan/subagent attachments (#4688) 2026-06-03 09:23:00 +08:00
postCompactAttachments.ts feat(core,cli): auto-compact follow-up — /compress instructions, PreCompact hook plumb, plan/subagent attachments (#4688) 2026-06-03 09:23:00 +08:00
runtimeSampleRing.test.ts feat(telemetry): add runtime memory/CPU sampling with OTel metric reporting (#4868) 2026-06-12 10:27:49 +08:00
session-artifact-persistence.test.ts feat(daemon): persist session artifacts across restarts (#6557) 2026-07-09 13:04:16 +00:00
session-artifact-persistence.ts feat(webshell): replay ChatRecord history in readonly WebShell (#6999) 2026-07-19 00:09:44 +00:00
session-organization-service.test.ts feat(web-shell): support custom Hex session group colors (#6752) 2026-07-12 10:41:17 +00:00
session-organization-service.ts feat(web-shell): support custom Hex session group colors (#6752) 2026-07-12 10:41:17 +00:00
session-reference-service.test.ts feat(cli): reference prior sessions via @ and add completion tabs (#7302) 2026-07-24 06:11:48 +00:00
session-reference-service.ts feat(cli): reference prior sessions via @ and add completion tabs (#7302) 2026-07-24 06:11:48 +00:00
session-service-writer-lease.test.ts fix(serve): Isolate daemon session maintenance writers (#7975) 2026-07-30 14:01:50 +00:00
session-transcript-reader.test.ts feat(web-shell): add contextual task panels (#7929) 2026-07-30 13:45:30 +00:00
session-transcript-reader.ts feat(web-shell): add contextual task panels (#7929) 2026-07-30 13:45:30 +00:00
session-writer-lease.test-helper.ts fix(core): Fence concurrent ACP session writers (#7237) 2026-07-21 07:36:07 +00:00
session-writer-lease.test.ts fix(core): Tolerate transcript timestamp drift (#7886) 2026-07-31 08:11:44 +00:00
session-writer-lease.ts fix(core): Tolerate transcript timestamp drift (#7886) 2026-07-31 08:11:44 +00:00
sessionRecap.test.ts fix(core): strip system-reminder blocks from session title and recap side-query prompts (#6435) 2026-07-07 11:49:19 +00:00
sessionRecap.ts fix(core): strip system-reminder blocks from session title and recap side-query prompts (#6435) 2026-07-07 11:49:19 +00:00
sessionService.corruption.test.ts fix(session): detect and mark broken history chains instead of silently truncating (#6502) 2026-07-08 16:02:58 +00:00
sessionService.rename.test.ts Add /cd command (#4890) 2026-06-12 13:11:34 +08:00
sessionService.test.ts feat(web-shell): add contextual task panels (#7929) 2026-07-30 13:45:30 +00:00
sessionService.ts fix(serve): Isolate daemon session maintenance writers (#7975) 2026-07-30 14:01:50 +00:00
sessionTitle.test.ts fix(core): strip system-reminder blocks from session title and recap side-query prompts (#6435) 2026-07-07 11:49:19 +00:00
sessionTitle.ts fix(core): strip system-reminder blocks from session title and recap side-query prompts (#6435) 2026-07-07 11:49:19 +00:00
shellExecutionService.test.ts perf(core): Lazy-load first-use dependencies (#7686) 2026-07-26 03:04:33 +00:00
shellExecutionService.ts perf(core): Lazy-load first-use dependencies (#7686) 2026-07-26 03:04:33 +00:00
sleepInhibitor.test.ts perf: memoize skill scans, debounce sleep-inhibitor log, guard IDE readdir (#6155) 2026-07-05 16:02:28 +00:00
sleepInhibitor.ts perf: memoize skill scans, debounce sleep-inhibitor log, guard IDE readdir (#6155) 2026-07-05 16:02:28 +00:00
tokenEstimation.test.ts fix(core): guard against CJK-driven char/4 under-count in output clamp (#7963) 2026-07-30 01:28:48 +00:00
tokenEstimation.ts fix(core): guard against CJK-driven char/4 under-count in output clamp (#7963) 2026-07-30 01:28:48 +00:00
tokenUsageService.test.ts feat(stats): expose token usage for cost visibility (#4564) 2026-06-19 07:14:07 +08:00
tokenUsageService.ts feat(stats): expose token usage for cost visibility (#4564) 2026-06-19 07:14:07 +08:00
toolUseSummary.test.ts feat(core): extend cross-auth fast models to agents (#4153) 2026-05-20 00:25:29 +08:00
toolUseSummary.ts feat(core): extend cross-auth fast models to agents (#4153) 2026-05-20 00:25:29 +08:00
usage-dashboard-service.test.ts fix(web-shell): count daemon sessions in Daemon Status usage dashboard (#6493) 2026-07-08 03:06:05 +00:00
usage-dashboard-service.ts fix(web-shell): count daemon sessions in Daemon Status usage dashboard (#6493) 2026-07-08 03:06:05 +00:00
usageHistoryService.test.ts fix(core): salvage session usage into the history before deleting transcripts (#7391) 2026-07-21 08:28:53 +00:00
usageHistoryService.ts fix(core): salvage session usage into the history before deleting transcripts (#7391) 2026-07-21 08:28:53 +00:00
worktreeCleanup.test.ts feat(tools): add generic worktree support — EnterWorktree/ExitWorktree + Agent isolation (#4073) 2026-05-14 18:00:30 +08:00
worktreeCleanup.ts perf(core): Lazy-load first-use dependencies (#7686) 2026-07-26 03:04:33 +00:00
worktreeSessionService.test.ts fix(core): handle stale worktree session markers (#5229) 2026-06-19 03:43:39 +08:00
worktreeSessionService.ts fix(core): handle stale worktree session markers (#5229) 2026-06-19 03:43:39 +08:00