Decode the worker's stream leniently, name UserEntryKind's members only, and restore the section-headers decision's citation
This commit is contained in:
@@ -31,7 +31,10 @@ def transcript_file(session):
|
||||
return hit[0] if hit else ""
|
||||
|
||||
|
||||
def delete_session(path):
|
||||
def delete_session(session):
|
||||
path = transcript_file(session)
|
||||
if not path:
|
||||
return
|
||||
for sibling in glob.glob(glob.escape(path.removesuffix(".jsonl")) + "*"):
|
||||
try:
|
||||
shutil.rmtree(sibling) if os.path.isdir(sibling) else os.remove(sibling)
|
||||
|
||||
Reference in New Issue
Block a user