Repository navigation
feat(vika): discover IMAP folders with hierarchy-aware exclusions - #7148
Merged
ZaynJarvis merged 1 commit intoNov 6, 2026
Merged
ZaynJarvis merged 1 commit into
ZaynJarvis merged 1 commit into
Conversation
This was referenced Nov 6, 2026
ZaynJarvis
force-pushed
the
feat/email-folder-discovery
branch
from
November 6, 2026 10:48
9914ad0 to
edcdccf
Compare
nexw
added a commit
to nexw/OpenViking
that referenced
this pull request
Nov 9, 2026
The branch had drifted 25 commits behind volcengine/openviking's feat/vika since volcengine#7012: the OpenViking tool surface work (volcengine#7079), per-instance OV users and peers (volcengine#7092), timers in OV (volcengine#7016), explicitSilence defaults (volcengine#7110), image-heavy turns (volcengine#7113), stale implicit turns (volcengine#7021), the email connector (volcengine#7144/volcengine#7145/volcengine#7148), Feishu chat scoping (volcengine#7149) and the Windows preview chain (volcengine#7218-volcengine#7245). Conflicts were all in files the superseded local commit a709961 touched; resolution takes the upstream side, because volcengine#7079 replaced that design: OpenViking tools now reach every runtime through the Core ActionService (ov-tools.mjs), so the durable host keeps registering durableCodingTools() and no longer wires its own MCP catalogue. The local-only durable-ov-tools.mjs, its test, the @earendil-works/pi-mcp dependency and DURABLE_OV are dropped with it; README.md, install.md and docs/pi-durable-runtime.md take the upstream (English) rewrites. vika/ is now byte-identical to origin-https/feat/vika; the merge keeps origin/main already merged in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Opt-in
imap.discoverymonitors selectable folders returned by LIST, including newly created subfolders, rather than silently watching only INBOX.rootsandexcludematch exact roots and hierarchy-delimited descendants; similarly named sibling folders remain distinct. Unselectable/nonexistent entries are omitted, with modified UTF-7 (rev1) and UTF-8 (rev2) decoding.The monitor replaces its folder snapshot only after a successful refresh; transient LIST failures and matches exceeding 100 folders preserve the prior snapshot. Removed folders retain cursors, reappearing folders resume, and first discovery starts with new mail. Discovery uses polling even for one folder so IDLE cannot delay discovery. Refresh interval defaults to 300 seconds and is checked after the current scan/poll wait, not by an independent timer.
Stacked on #7145 and #7144, targeting feat/vika because the parent branches live only in the fork. Review the discovery commit
9592412; parent changes are included. A subsequent schema compatibility fix is also present in both parent PRs. Merge the parents first. No NOTIFY/OBJECTID support or semantic cross-folder deduplication is claimed.Human Involvement
Humans supplied the feature request and three-PR scope. Implementation and code review recorded here were performed by AI agents; no human code-review approval is claimed.
Related Issue
No linked GitHub issue. Related work: #7080. This staged change is #7144 → #7145 → #7148.
Type of Change
Changes Made
The entrypoint is the email account JSON under
imap; the owning modules arevika/packages/daemon/src/email/and theread_emailinput schema. The README documents configuration and compatibility. This PR contains no unrelated authentication or release changes.Testing
Revalidated on Linux at head
9914ad0. Fromvika/:Focused tests: 40/40 passed, no failures, cancellations, or skips. Syntax and diff checks passed. The full Vika suite, live IMAP providers, macOS, and Windows were not tested for this change; validation uses a scripted IMAP server and local contract tests. Node emits its existing SQLite experimental warning.
Checklist
Additional Notes
The GitHub status-check rollup is empty at this review; local checks are not a green CI result. Before merge, a maintainer must confirm/run the applicable Vika checks and review the stack in order. The repository's Vika workflow matches
vika/**; the general PR workflow excludes this directory. Authentication integration with #7080 remains a merge concern.