Skip to content

feat: memory, people, mail drafts with a timed send, automations, a files view, and phaethon in the menu bar (0.3.0) - #9

Merged
jerynv merged 41 commits into
mainfrom
feat/memory-people-mail-automations
Nov 17, 2026
Merged

jerynv merged 41 commits into
mainfrom
feat/memory-people-mail-automations

Conversation

@jerynv

@jerynv jerynv commented Nov 16, 2026

Copy link
Copy Markdown
Owner

The UI rebuild since 0.2.0 (window sizes, tabs, type scale, long-chat scrolling) plus the memory, mail and automations work, released as 0.3.0.

  • Memory that fades. Events, temporary states, tasks and notes in <vault>/.phaethon/memories.json, recalled only when relevant to what you said (never on "hi"), closed once their outcome is confirmed but still findable in their thread. Global profile (memory/profile.md) and a profile per space. Details in docs/MEMORY-MAIL-AUTOMATIONS.md.
  • People. A card per person (memory/people/<id>.json) with aliases ("my boss"), links and history across mail and chats; people you email are added when their name is found.
  • Mail. Apple Mail (every account) and Outlook through Apple Events, Shortcuts. A draft never sends on its own: Send starts a visible one-minute countdown with Stop and Edit. The same email card for Phaethon's loop, Claude Code, Codex and Gemini.
  • Tools for every backend. Recall, remember, people, mail, shortcuts and schedules in Phaethon's loop; Codex gets them as dynamic tools, Claude Code and Gemini over a local MCP server with a per-turn token. Claude Code keeps its isolation through environment switches, since --safe-mode turns MCP off.
  • Automations. A scheduler with catch-up, readiness reasons and pause: memory sweep and review, people from mail, the daily digest, reminders and your own schedules (unattended runs can't write or send).
  • UI. A shared query cache (no half-loaded screens), Settings outside the tabs, a Files view for every space, a sliding connected tab underlay, monospaced live numbers. The title bar is 40 px: the tab row ends 2 px above the page and tabs stand 2 px apart.
  • Menu bar and notifications. Closing the window leaves the core running from the menu bar (about 183 MB with no window, measured on the packaged app): sends counting down with Stop, replies being written, the next automation with Pause, recent notifications. Native notifications for replies, reminders, schedules, mail, the digest and failed automations, with quiet hours; open at login, hidden.
  • Smooth edges. Skia Graphite drew icons and the tab's curves with multisampling (about 7 grey levels); disable-features=SkiaGraphite brings back Ganesh's analytic antialiasing (123 levels), measured with CDP screenshots of the real window.

Checks: pnpm typecheck, pnpm test (1112 passed), pnpm build, pnpm exec playwright test (60 passed); the signed arm64 build installed and running.

…, tabs in the file viewer, compact coding agents

- the sidebar opens with a space switcher (every space and what it's busy with in its menu) and lists only that space's chats; a switch sweeps a line under it and steps the rows in
- the title bar's search is gone: the sidebar's field filters this space and its keys open the full search, with new chat as an icon beside it
- group labels no longer show cut in half in a short window: the next label slides over and the stuck one fades
- files opened in the viewer stay open as tabs (dedupe, close, close others, close all, arrows)
- title bar tabs get a right-click menu: keep open, close, close others, close to the right, reopen
- settings › coding agents is one list of rows that open, like providers
- src/server/latex/phaethon.sty: times with stix two math, letter, 1in margins,
  numbered headings, booktabs and tabularx L, notebox and panel, the tikz
  styles box, softbox, vert, goal, lbl, pruned, hl and memcell, a centred title
  block; font fallbacks down to latin modern and a pdflatex branch. bundled as
  text and written beside every compile and beside a saved document that loads it.
- documents try xelatex, lualatex, pdflatex, then tectonic; figures keep
  pdflatex first. lua code still needs lualatex.
- tikz figures get the house libraries and styles, and forest, tikz-cd and
  circuitikz when used.
- a compiled pdf returns warnings for missing glyphs, unknown commands,
  undefined references and citations, and lines over 1pt into the margin.
- tex live in ~/.local/texlive is found, and the macos sandbox reads its tree.
- the model is taught the house template and figure rules.
A command step had no target, so the chat stripped "Running" from the
generic label and showed the word "command". Claude Code's Bash, Codex's
commandExecution (a string or an argv list) and Gemini CLI's shell steps
now record the command without its shell wrapper, paths shown as in the
space, and Gemini CLI's command output is kept like the others.
… line, its output one click away

A turn's open work is one 28 px line per step with a small muted glyph
and no rail or tag chips. A command's line is the command itself in mono,
cut to one line; a click opens what it printed, with the whole command
above it when the line was cut. The work summary and the live line are
quieter too. Adds a coding-agent conversation to the mock (#mock&thread=agent,
or a prompt with "run").
…pages and files, and a phaethon wordmark

The title bar's left end is the sidebar's column, following its width
live and sliding with it, so the tabs start at the main column's edge.
macOS traffic lights sit 17 px from the edge and from the mark, centred
on the 48 px bar. Open pages and open files share one tab strip: every
tab has a shape, the active one is the page's colour and flares into the
strip's hairline, tabs shrink and drop their close buttons as more open,
and a + after the last starts a new chat. The mark is the P of a
"Phaethon" wordmark while the column has room.
…ey lay out, and keep a reader's place

The timeline lands at its end (or the message it was left at) before the first
paint; scroll anchoring on an end marker keeps the end in place as content lays
out, a ResizeObserver holds a reader's place, and only the reader's own gestures
let go of the end. Long conversations mount their newest messages first and the
rest a step per frame, messages are memoized, hidden pages use
content-visibility: hidden so switching back costs no relayout, and drawn
diagrams and compiled LaTeX are kept so a reopened conversation keeps its size.
… and latex in a reply is checked end to end

- the first open of a chat waits, unseen and at most 0.6 s, for a diagram, latex preview or image on its last screen, and older turns wait their turn to mount meanwhile
- the diagram library and its flowchart load while the app is idle
- the long-chat e2e checks every visible frame, not just the last second; a new e2e compiles a house-style document for real and reopens it (skips without tex)
… stops after page 1 is out rather than on a timer
… short

The Overview · All grades tabs are gone: course tiles, then the attention panels. A tile opens its course; an attention line opens its course at that assignment's row, which takes focus. Every course's table is a quiet All grades button in the title row. Course names drop term codes and section numbers and lose all caps (shortCourseName), and a line names its course only when its panel mixes courses.
…er the chevron, and course rows show short readable names
…vering every registrar shape either one handled
…chips and a searchable picker, scaling to many spaces and courses
… views and conversations, and plan's filters

Settings' section nav drew its selection as a motion layoutId span (spring
480/38) under the active row; every other list snapped bg-row-selected on
and off. components/ui/row-highlight.tsx is that fill as one element per
list: RowHighlightGroup measures its [data-glide][data-active] row, and the
windowed conversation list places a RowHighlight from its layout, riding in
the scrolling content (no work on scroll) and sliding or holding with its
row. It glides only between two rows on screen; it appears in place from
nothing, from another list, from an off-screen row, under a filter, a page
arriving or a space switch, and under reduced motion. Group labels are
opaque only while stuck so the fill shows under them as it passes.
…nter's optical sizes and real italic, and one style per text role
…-conversations e2e streams long enough to still be replying on a busy machine
… roles, so every dialog title, group label and hero number matches
…osing the last tab leaves a new chat instead of nothing
…s over the page in a narrow window, settings and courses that give way, and an e2e sweep at 380, 560 and 800 wide
…essages skip style and layout, and wide display math shrinks to fit a narrow window before it scrolls with a faded edge
…rafts with a timed send, automations, a files view, and phaethon in the menu bar with notifications

- memory: events, states, tasks and notes with relevance-gated recall and die-off; global and space profiles; people cards with aliases, auto-added from mail
- mail: apple mail and outlook through apple events, drafts that never send on their own, a visible one-minute send countdown with stop and edit, the same email card for every backend
- tools: recall, remember, people, mail, shortcuts and schedules for phaethon's loop and, over local mcp or codex dynamic tools, the cli backends
- automations: a scheduler with catch-up, readiness reasons and pause; memory sweep and review, people from mail, daily digest, reminders and your own schedules
- ui: a shared query cache, settings outside the tabs, a files view for every space, a sliding connected tab underlay, monospaced live numbers
- background: the core keeps running from the menu bar after the window closes, a native menu with sends, replies and automations, native notifications, open at login
- title bar: 40 px with the tab row 2 px above the page and tabs 2 px apart; skia graphite is off so icons and tab curves are antialiased smoothly
…tyle reads with lf, excluded folders refuse by name first, and two timing-bound tests wait

- a coding agent's command shows paths in the space relative on windows too (C:\... as well as /...)
- the latex house style is normalized to lf (and checked out with lf), so its tikz block matches on windows
- an excluded folder is refused by name before the path is looked up, so a different case is refused on a case-sensitive disk too
- the sign-in cancel test waits for the killed process to be reaped; the 1500-conversation test seeds its newest within today, so a run just after midnight still has "today"
… only while settings is still closed, since a slow runner's first press can land before the shortcuts listen
…irline, its breadcrumbs on a plain bar instead of an empty tab strip
…ibility, and content scrolled under the title bar fades out instead of being cut at the edge
…wheel has stopped scrolling, not after a fixed wait a slow runner outlasts
@jerynv
jerynv merged commit 9d193fa into main Nov 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant