Fix duplicate export toast in chrome browse.js (v1.10.13)

exportConversation was emitting three toasts on a successful export
with artifacts:
  1. "Exporting X..." (line 656)
  2. "Exported: X with N artifact(s)" (line 741, branch-specific)
  3. "Exported: X" (line 794, unified post-save)

Same triple-emit on the "no artifacts found" sub-branch (lines 656,
762, 794). The "normal export without artifact extraction" branch
correctly only emitted two (initial + unified).

Removed the branch-specific toasts at 741 and 762 — the unified
post-save toast at line 794 already covers all three branches.
Firefox already had this pattern (commented "Toast handled below
after timestamp save"). Chrome had regressed.

Trade-off: lose the "with N artifact(s)" detail from the toast,
gain consistent single-emit UX across all export paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
tux tucker 2026-05-18 20:46:24 -04:00
parent 0bc0158f2e
commit 8d0e998ea8
4 changed files with 7 additions and 4 deletions

View file

@ -738,7 +738,7 @@ async function exportConversation(conversationId, conversationName) {
document.body.removeChild(a);
URL.revokeObjectURL(url);
showToast(`Exported: ${conversationName} with ${artifactFiles.length} artifact(s)`);
// Toast handled below after timestamp save
} else {
// No artifacts found, export normally
let content, filename, type;
@ -759,7 +759,6 @@ async function exportConversation(conversationId, conversationName) {
type = 'application/json';
}
downloadFile(content, filename, type);
showToast(`Exported: ${conversationName} (no artifacts found)`);
}
} else {
// Normal export without artifact extraction

View file

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Claude Exporter Beta",
"version": "1.10.12",
"version": "1.10.13",
"description": "Export conversations and artifacts from Claude.ai",
"permissions": [
"activeTab",

View file

@ -1,5 +1,9 @@
# Changelog
## [1.10.13]
- Fixed duplicate toast on single-conversation export. `exportConversation` was emitting three toasts on a successful export ("Exporting X...", then a branch-specific "Exported: X with N artifact(s)" or "Exported: X (no artifacts found)", then the unified "Exported: X" at the end). Removed the branch-specific toasts in Chrome — the unified post-save toast already covers all branches. Firefox already had this pattern; Chrome had regressed.
## [1.10.12]
- Chrome/Firefox parity sync — multiple files had quietly drifted out of sync over recent edits. Brought Firefox into line with Chrome (the canonical copy per CLAUDE.md):

View file

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Claude Exporter Beta",
"version": "1.10.12",
"version": "1.10.13",
"description": "Export conversations and artifacts from Claude.ai",
"permissions": [
"activeTab",