browser-cookie-bridge 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Browser Cookie Bridge",
4
- "version": "1.4.5",
4
+ "version": "1.4.6",
5
5
  "description": "Transfers selected browser data locally between supported browsers and into ChatGPT Codex.",
6
6
  "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5o6lDkXzU/23Jm2QRk4mfuxNnr3VlEIjRHcZr93Gdo7PI7asHJQhigaMGT6UOz0lkaTn1F+TGIPlsJo9GNBSsxbCfxWoBSXcFQFrPolY5LEfKaMtZQQ6eb4UAnp+bbUwb1den4On0piWU47Yzl6i0Jcdg4EG5H1kCSF/6nJsbKgF7OTaR/3drULu40yRvflzSXRhly3UDO7c5mgHJsaMwVV+VILsxbcPOoRINjuo3zDC737HFs67dpf38xF3tjSVL0HURAWKKobMvfABiDfVEm5O0Lvf+57d1Ib12QLT2qtVXNDy3iYwX+w2S0wH2vIMsfvoFPlRdmeqft70kZOqXwIDAQAB",
7
7
  "permissions": ["alarms", "cookies", "history"],
@@ -10,8 +10,8 @@
10
10
  <key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
11
11
  <key>CFBundleName</key><string>Browser Cookie Bridge</string>
12
12
  <key>CFBundlePackageType</key><string>APPL</string>
13
- <key>CFBundleShortVersionString</key><string>1.4.5</string>
14
- <key>CFBundleVersion</key><string>33</string>
13
+ <key>CFBundleShortVersionString</key><string>1.4.6</string>
14
+ <key>CFBundleVersion</key><string>34</string>
15
15
  <key>LSMinimumSystemVersion</key><string>13.5</string>
16
16
  <key>NSHighResolutionCapable</key><true/>
17
17
  </dict>
@@ -732,27 +732,22 @@ final class SyncModel: ObservableObject {
732
732
  }
733
733
  return
734
734
  }
735
- NSWorkspace.shared.openApplication(at: codexURL, configuration: NSWorkspace.OpenConfiguration()) { [weak self] _, error in
736
- Task { @MainActor in
737
- guard let self else { return }
738
- if let error {
739
- self.state = .warning
740
- self.primaryStatus = "Codex sessions updated, but Codex was not reopened"
741
- self.secondaryStatus = ([transferResult] + completedRestartMessages + ["Codex could not be reopened: \(error.localizedDescription)"]).joined(separator: "\n\n")
742
- } else {
743
- self.codexRunning = true
744
- self.state = partial || didSourceRestartFail ? .warning : .success
745
- self.primaryStatus = didSourceRestartFail ? "Sync complete, but the source did not reopen" : (partial ? "Codex sync completed with warnings" : "Codex sessions updated")
746
- self.secondaryStatus = ([transferResult] + completedRestartMessages + ["ChatGPT Codex reopened successfully."]).joined(separator: "\n\n")
747
- }
748
- if showMenuBarAlert {
749
- self.postNativeAlert(
750
- title: self.primaryStatus,
751
- message: self.secondaryStatus,
752
- kind: self.state == .success ? .information : .warning
753
- )
754
- }
755
- }
735
+ if NSWorkspace.shared.open(codexURL) {
736
+ codexRunning = true
737
+ state = partial || didSourceRestartFail ? .warning : .success
738
+ primaryStatus = didSourceRestartFail ? "Sync complete, but the source did not reopen" : (partial ? "Codex sync completed with warnings" : "Codex sessions updated")
739
+ secondaryStatus = ([transferResult] + completedRestartMessages + ["ChatGPT Codex reopened successfully."]).joined(separator: "\n\n")
740
+ } else {
741
+ state = .warning
742
+ primaryStatus = "Codex sessions updated, but Codex was not reopened"
743
+ secondaryStatus = ([transferResult] + completedRestartMessages + ["Codex could not be reopened. Open it manually to use the updated sessions."]).joined(separator: "\n\n")
744
+ }
745
+ if showMenuBarAlert {
746
+ postNativeAlert(
747
+ title: primaryStatus,
748
+ message: secondaryStatus,
749
+ kind: state == .success ? .information : .warning
750
+ )
756
751
  }
757
752
  }
758
753
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-cookie-bridge",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Local-first cookie and session transfer for macOS with optional Browserless upload",
5
5
  "type": "module",
6
6
  "bin": {