`` - .txt`` or ``conversation- .txt`` (export.tsx:85-91).
(messages: Any)
| 140 | |
| 141 | |
| 142 | def _default_filename(messages: Any) -> str: |
| 143 | """``<ts>-<slug>.txt`` or ``conversation-<ts>.txt`` (export.tsx:85-91).""" |
| 144 | first_prompt = extract_first_prompt(messages) |
| 145 | timestamp = format_timestamp(datetime.now()) |
| 146 | sanitized = sanitize_filename(first_prompt) if first_prompt else "" |
| 147 | if sanitized: |
| 148 | return f"{timestamp}-{sanitized}.txt" |
| 149 | return f"conversation-{timestamp}.txt" |
| 150 | |
| 151 | |
| 152 | @dataclass(frozen=True) |
no test coverage detected