@agenticmail/cli 0.9.12 → 0.9.14

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.
@@ -157,7 +157,18 @@ export async function loadList(agent, folder) {
157
157
  // side flag filter (Gmail convention); other folders need a real
158
158
  // mailbox name from the discovery cache.
159
159
  const isStarred = folder === 'starred';
160
- const imap = isStarred ? 'INBOX' : imapNameFor(folder);
160
+ let imap = isStarred ? 'INBOX' : imapNameFor(folder);
161
+ if (!imap) {
162
+ // The cache was populated at agent-switch time; some folders are
163
+ // created LATER on demand (the API auto-creates Archive on first
164
+ // archive, Spam on first report-as-spam). If we don't see the
165
+ // requested folder in the cache, force a fresh discovery once
166
+ // before declaring "no such folder" — covers the "moved to
167
+ // Archive but Archive tab is empty" report.
168
+ state.folderNames = {};
169
+ await ensureFolderCache(agent);
170
+ imap = imapNameFor(folder);
171
+ }
161
172
  if (!imap) {
162
173
  document.getElementById('list-rows').innerHTML =
163
174
  `<div class="empty"><div class="big">📭</div>No ${escapeHtml(folderTitle(folder))} folder on this server.</div>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/cli",
3
- "version": "0.9.12",
3
+ "version": "0.9.14",
4
4
  "description": "Email and SMS infrastructure for AI agents — the first platform to give agents real email addresses and phone numbers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "prepublishOnly": "npm run build"
30
30
  },
31
31
  "dependencies": {
32
- "@agenticmail/api": "^0.9.9",
32
+ "@agenticmail/api": "^0.9.11",
33
33
  "@agenticmail/core": "^0.9.2",
34
34
  "json5": "^2.2.3"
35
35
  },