Merge origin/main and preserve readonly AI handling for BOM source failures
Core regression / Python 3.12 core, intervention UI and release configuration (push) Failing after 21s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python 3.12 core, intervention UI and release configuration (pull_request) Failing after 21s
Core regression / JavaScript syntax (pull_request) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-05 14:42:00 +08:00
commit bd06bbc7d2
45 files changed
+2068 -98

No files matched your search

+17 -2
View File
@@ -3371,14 +3371,29 @@ Function QPReadContinuation(ByVal Path)
End Function
Sub QPWriteUtf8(ByVal Path, ByVal Text)
Dim Stream
Dim Stream, Attempt, Limit, Number, Source, Description
Set Stream = CreateObject("ADODB.Stream")
Stream.Type = 2
Stream.Charset = "utf-8"
Stream.Open
Stream.WriteText CStr(Text)
Stream.SaveToFile CStr(Path), 2
Limit = 1
' The session driver polls this receipt; retry only its file write, never CAD.
If LCase(QP_Fso.GetFileName(CStr(Path))) = "project-session-result.tsv" Then Limit = 20
For Attempt = 1 To Limit
On Error Resume Next
Err.Clear
Stream.SaveToFile CStr(Path), 2
Number = Err.Number
Source = Err.Source
Description = Err.Description
Err.Clear
On Error GoTo 0
If Number = 0 Then Exit For
If Attempt < Limit Then WScript.Sleep 50
Next
Stream.Close
If Number <> 0 Then Err.Raise Number, Source, Description
End Sub
Sub QPAppendAscii(ByVal Path, ByVal Text)