Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
5c3664b
feat(web): codecast multi-platform build
ashot Nov 29, 2026
01b8428
feat(web): codecast IDE build
ashot Nov 29, 2026
95d099a
feat(web): public content CMS
ashot Nov 29, 2026
3717ef6
feat(web): restore call stage screens
ashot Nov 29, 2026
2139a27
feat(cli): CI and deploy speed
ashot Nov 29, 2026
f24f276
feat(web): folder picker redesign
ashot Nov 29, 2026
769b998
feat(web): unify decision UX
ashot Nov 29, 2026
25c4f43
feat(web): blog posts to markdown
ashot Nov 29, 2026
1490c03
feat(mobile): call thread access
ashot Nov 29, 2026
095cd2c
feat(web): precache linked objects
ashot Nov 29, 2026
c8c40c9
feat(web): session privacy controls
ashot Nov 29, 2026
24a2364
feat(mobile): iOS attachment name and new session
ashot Nov 29, 2026
d3a8bc3
fix(web): one-way call audio fix
ashot Nov 29, 2026
e45ce19
docs(web): slug list review
ashot Nov 29, 2026
4ed918d
feat(web): mobile flow context strip
ashot Nov 29, 2026
7b91874
feat(electron): screen share border
ashot Nov 29, 2026
4ecb24a
feat(web): blog post slug list
ashot Nov 29, 2026
1357223
feat(web): presence status indicator
ashot Nov 29, 2026
1debe70
feat(cli): infra lead
ashot Nov 29, 2026
b56efd4
docs(web): blog post slug ideas
ashot Nov 29, 2026
bd68138
feat(web): inky branch pill labels
ashot Nov 29, 2026
f9df49a
feat(web): file column behavior
ashot Nov 29, 2026
58130ab
fix(web): store infra revoked-proxy fix
ashot Nov 29, 2026
b07215f
feat(evals): decision card eval
ashot Nov 29, 2026
7b343c6
feat(convex): private call indicators
ashot Nov 29, 2026
224eb01
fix(web): owner autocomplete fix
ashot Nov 29, 2026
797d983
fix(web): cmd-K channel search fix
ashot Nov 29, 2026
c0fe7ef
feat(web): session card copy link
ashot Nov 29, 2026
c1e84ab
feat(web): call overlay pinning
ashot Nov 29, 2026
7098052
fix(cli): log error monitoring
ashot Nov 29, 2026
14f90b3
feat(shared): route out CLI prompts
ashot Nov 29, 2026
dfd8d70
feat(convex): daemon and prod log monitoring
ashot Nov 29, 2026
2be042a
fix(shared): thread notification bug
ashot Nov 29, 2026
554f34e
feat(web): pinned drag reorder
ashot Nov 29, 2026
a01c1be
feat(web): call header privacy labels
ashot Nov 29, 2026
4ef80a3
feat(.codecast): worktree guidance gaps
ashot Nov 29, 2026
c5ffe50
fix(cli): session move host fix
ashot Nov 29, 2026
81ae556
fix(cli): daemon and prod log errors
ashot Nov 29, 2026
dc8dd48
feat(convex): inky DM showing in Codecast
ashot Nov 29, 2026
f69757e
test(convex): fix red CI on main
ashot Nov 29, 2026
dfe5d57
fix(web): stuck session delivery fix
ashot Nov 29, 2026
03f7235
fix(web): session pill wrap fix
ashot Nov 29, 2026
a4ab614
feat(web): decision walkthrough fullscreen
ashot Nov 29, 2026
71f16d6
fix(web): message list highlight bug
ashot Nov 29, 2026
99c1c60
fix(web): new session loading fix
ashot Nov 29, 2026
4d9dab0
feat(web): sweep cl-250 for gaps
ashot Nov 29, 2026
c239ee3
feat(web): huddle button delay
ashot Nov 29, 2026
87b5749
feat(.codecast): postHog metrics and replays
ashot Nov 29, 2026
68c9dbe
docs(docs): weekly steering lessons
ashot Nov 29, 2026
fd00265
docs(docs): personal integrations design
ashot Nov 29, 2026
8030f55
test(cli): fix red CI on main
ashot Nov 29, 2026
084104e
test(cli): changes in cli
ashot Nov 29, 2026
d06e516
fix(cli): fix red CLI CI
ashot Nov 29, 2026
b754764
feat(cli): session mute and subscribe
ashot Nov 29, 2026
8c67adf
feat(convex): changes in convex
ashot Nov 29, 2026
2fcb59d
feat(convex): changes in convex
ashot Nov 29, 2026
7d8f37d
feat(shared): recall.ai meeting bots
ashot Nov 29, 2026
ad2ba21
feat(web): call board article
ashot Nov 29, 2026
da611e0
feat(web): change flow article
ashot Nov 29, 2026
bf653a0
feat(web): gradient divider styling
ashot Nov 29, 2026
e6d278a
feat(web): inbox scroll on send
ashot Nov 29, 2026
9426794
fix(web): messageInput ref crash
ashot Nov 29, 2026
82ba320
fix(web): chat font size fix
ashot Nov 29, 2026
7f5d087
feat(web): inky avatar icon
ashot Nov 29, 2026
cf73a49
feat(web): decisions card labels
ashot Nov 29, 2026
d3a4651
feat(web): new session button spacing
ashot Nov 29, 2026
146fb0a
feat(web): changes in web
ashot Nov 29, 2026
1c36400
feat(web): sidebar unread styling
ashot Nov 29, 2026
6c86d03
feat(web): critique: design principles · ct-99792
ashot Nov 29, 2026
528ba9f
feat(web): changes in web
ashot Nov 29, 2026
fb9d7ee
feat(web): changes in web
ashot Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .codecast/ci.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# codecast's own CI runner (`cast ci run <sha>`): what .github/workflows/ci.yml cannot say. The jobs, their steps,
# matrices and `if:` gates come from ci.yml itself, read for the push or pull_request event the run stands in for;
# this file adds only the host-side facts. Schema: packages/shared/contracts/ciConfig.ts.

repository = "codecast-sh/codecast"
name = "codecast-ci"
# A CI pool host (c7i.4xlarge, 16 vCPU / 32 GB) takes one run at a time; within it, job runners go four at once,
# each in a checkout of its own, as GitHub gives each job a runner of its own.
runs_per_host = 1
parallel_jobs = 4

# Runner setup that needs root on GitHub's image: the pool's host image carries these tools already, and a slot user
# has no sudo.
[skip_steps]
"Install tmux" = "the CI host image has tmux"
"Install tmux (e2e tests need a real tmux server)" = "the CI host image has tmux"
"Allow the Electron sandbox, and a display for it" = "the CI host image has xvfb and allows unprivileged user namespaces"

# ci.yml needs no secrets and no services. Every job counts as ci.yml says: computer-macos is continue-on-error
# (advisory), and verify is the one check GitHub requires; it runs after every gated job and fails when any of them
# did not end as its gate said.
6 changes: 6 additions & 0 deletions .codecast/flows/codecast-fix.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Codecast's live flow (sd-3248, 2026-11-14): the Standard line as it ships,
// under its own name so the team can make it live. It changes no station;
// extending keeps it on the shipped line as that line improves.
digraph codecast_fix {
graph [extends="line", label="Codecast fix"]
}
3 changes: 2 additions & 1 deletion .codecast/workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
# Schema: https://codecast.sh/docs/workspace

[setup]
# Gitignored secrets/config a worktree needs to actually run web + convex + cli.
# Gitignored secrets/config a worktree needs to actually run web, convex, cli and mobile.
# (git worktrees do not inherit these — they live outside version control.)
copy = [
".env",
".env.local",
"packages/convex/.env.local",
"packages/web/.env.local",
"packages/cli/.env.local",
"packages/mobile/.env",
]
# A fresh worktree has its own (empty) node_modules — bun doesn't share them
# across worktrees, so install once on creation. If this fails, the daemon
Expand Down
37 changes: 22 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,18 @@ jobs:
if: needs.code_paths.outputs.run_typecheck == 'true'
runs-on: ubuntu-latest
timeout-minutes: 20
# The programs in .codecast/check.toml over three jobs of about equal
# cold time (web alone, ~200s; the others pair up below it). mobile is
# left out: `cast check mobile` is its only check (see the contract test).
# The programs in .codecast/check.toml. A push to main checks them all in
# one job: its build info is never more than a push old, so the job takes
# about a minute. A pull request may start further from main, so it spreads
# them over three jobs of about equal cold time (web alone, ~200s). The
# free plan runs 20 jobs at once for the whole repository, and a wide
# matrix on every push to main left whole runs queued behind each other.
# mobile is left out: `cast check mobile` is its only check (see the
# contract test).
strategy:
fail-fast: false
matrix:
include:
- { key: web, programs: web }
- { key: cli-evals, programs: cli evals }
- { key: convex-sim-playground, programs: convex sim playground }
include: ${{ fromJSON(github.event_name == 'push' && '[{"key":"all","programs":"web cli evals convex sim playground"}]' || '[{"key":"web","programs":"web"},{"key":"cli-evals","programs":"cli evals"},{"key":"convex-sim-playground","programs":"convex sim playground"}]') }}
name: typecheck (${{ matrix.programs }})
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
Expand All @@ -223,7 +225,10 @@ jobs:
with:
path: ${{ runner.temp }}/tsbuildinfo
key: tsbuildinfo-${{ matrix.key }}-${{ github.sha }}
restore-keys: tsbuildinfo-${{ matrix.key }}-
# main saves the whole set under "all"; a pull request's group starts from it.
restore-keys: |
tsbuildinfo-all-
tsbuildinfo-${{ matrix.key }}-

- name: Typecheck
# web's program outgrew V8's default ~4 GB heap: on 2026-11-08 its tsc
Expand Down Expand Up @@ -306,8 +311,9 @@ jobs:
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
name: test-web (${{ matrix.shard }}/4)
# Two shards on a push to main, four on a pull request (see typecheck).
shard: ${{ fromJSON(github.event_name == 'push' && '["1/2","2/2"]' || '["1/4","2/4","3/4","4/4"]') }}
name: test-web (${{ matrix.shard }})
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

Expand All @@ -325,22 +331,22 @@ jobs:
env:
SIM_OUT: ${{ runner.temp }}/sim
run: |
files="$(bun ../../scripts/ci/test-shards.ts packages/web ${{ matrix.shard }}/4)"
files="$(bun ../../scripts/ci/test-shards.ts packages/web ${{ matrix.shard }})"
# shellcheck disable=SC2086 # one argument per file
bun test --parallel --reporter=junit --reporter-outfile=${{ runner.temp }}/junit.xml $files

# The exact counts behind the perf benches (packages/web/perf/README.md).
# Plain bun, not bun test: the test preload stands in for the diff viewer.
- name: Perf budgets (web)
if: matrix.shard == 1
if: startsWith(matrix.shard, '1/')
working-directory: packages/web
run: scripts/perf-budgets.sh

- name: Upload test timings
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: junit-web-${{ matrix.shard }}
name: junit-web-${{ strategy.job-index }}
path: ${{ runner.temp }}/junit.xml
if-no-files-found: ignore
retention-days: 7
Expand All @@ -349,7 +355,7 @@ jobs:
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: sim-artifacts-${{ matrix.shard }}
name: sim-artifacts-${{ strategy.job-index }}
path: ${{ runner.temp }}/sim
if-no-files-found: ignore
retention-days: 14
Expand All @@ -364,7 +370,8 @@ jobs:
strategy:
fail-fast: false
matrix:
part: ["1/3", "2/3", "3/3", "e2e"]
# Fewer unit shards on a push to main than on a pull request (see typecheck).
part: ${{ fromJSON(github.event_name == 'push' && '["1/2","2/2","e2e"]' || '["1/3","2/3","3/3","e2e"]') }}
name: test-cli (${{ matrix.part }})
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ test-results/
!.codecast/line.toml
!.codecast/deploy.toml
!.codecast/generated.toml
# What the repo's ci.yml cannot tell codecast's own CI runner (cast ci run)
!.codecast/ci.toml
# The project's own line graph and station prompts (docs/architecture/line-map.md LX5)
!.codecast/line/
# How this project's change flow differs from the library's (cast flow edit)
Expand Down
8 changes: 8 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Work directly in the main checkout. Other sessions may have uncommitted work in the tree — scan `git status`/`git diff` before editing shared files and never revert changes you didn't make.

Take a worktree only when parallel edits would collide, and make it with `cast ws acquire <name>`, or `cast spawn --subagent --isolated` for a worker. Either puts it at `.codecast/worktrees/<name>` on branch `codecast/<name>`, copies the gitignored env files `.codecast/workspace.toml` lists, runs `bun install` and gives it its own `PORT_WEB`, which `cast dev` serves on. `cast ws destroy <name>` removes it once its work has landed. Never make one with a raw `git worktree add` or at a path of your own (`~/src/worktrees`, `~/src/scratch`): such a tree has no env files or ports, and the worktree cleanup never reclaims it.

The convex package's `.env.local`, copied into every worktree, holds the prod admin key, so any Convex CLI command run there (`convex codegen`, `convex dev`) pushes that tree's whole function set to prod and reverts whatever main has that it lacks. Run none in a worktree: typecheck against the committed `_generated`, and deploy only through `deploy.sh` from a tree that contains origin/main.

## Vendored platform packages

`platform/packages/` is a GENERATED mirror of the shared `@platform/*` packages whose canonical home is `~/src/platform`. Never edit it by hand: change the canonical copy, then run `scripts/vendor-platform.sh` to refresh the mirror (`--check` reports drift). The script also purges bun's `node_modules/.bun/@platform+*` copies and `packages/web/node_modules/.vite` and reinstalls, because bun keeps serving the stale copy and vite the stale module graph otherwise. A running dev server restarts itself when that cache disappears (`plugins/depsCacheGuard.ts`); never delete the cache under a live server without that plugin, or every dep it has not served yet answers 504 "Outdated Optimize Dep". The mirror exists because Railway, the CLI release workflow and the desktop build all run from a fresh clone, so every `@platform` dep must point inside the checkout (`file:../../platform/packages/<name>`), never at `~/src/platform`. The package set is derived from the workspace `package.json` files, so adopting a new platform package is one dep line plus a rerun. A real vendor run also rewrites `platform/package.json`, the mirror's own workspace root generated from the canonical repo's root, `platform/tsconfig.base.json`, the base every mirrored tsconfig extends, and `platform/vendor-manifest.txt`, a content hash per mirrored package and of those root files; commit them with the mirror. CI cannot run `--check`, because a runner has no `~/src/platform`, so the `test-platform` job runs `--check-manifest` instead: it re-hashes the mirror against that manifest and re-reads the dep lines the mirror was generated from, which catches a hand-edited mirror, a package adopted without a rerun, and a dep pointing outside the checkout. The same job runs `scripts/vendor-platform.sh --test`: it installs the mirror once as that workspace, the way the canonical repo installs, so a package's `@platform` peer resolves to its mirrored sibling rather than npm and the shared test tooling sits at the root; then it runs every mirrored package's own `bun test` and names each red one. The repo's own lockfile never sees the mirror's workspace.
Expand Down Expand Up @@ -96,6 +100,8 @@ Read `docs/brand/facts.md` before claiming anything about codecast in public, an

Most people use codecast through the app (web, desktop, phone), not the CLI. User-facing writing describes a feature the way they meet it: the screen, the menu, the button, what it shows and what happens next, with screenshots of the real UI. A CLI command can appear as a small aside for people who script or for agents, never as the spine of a piece, its section headings, or its main illustrations. When a feature has a UI, show the UI; when it is CLI-only today, say so plainly rather than presenting terminal output as the experience.

Blog posts, documentation guides and field-manual chapters are markdown. A page is a row in its section's registry (`blog/posts.ts`, `documentation/guides/guides.ts`, `blog/field-manual/chapters.ts` under `packages/web/app/(marketing)/`) plus `content/<slug>.md` beside it; routes, the sitemap, RSS, social cards and llms.txt all follow from the row. `content/SiteMarkdown.tsx` renders every section, and its header lists what the markdown can hold beyond the usual (captioned and wide screenshots, terminals, prompts, small card shots, keycaps, end notes after a final `---`); anything bespoke is a named export of `figures/<slug>.tsx` placed with a ```figure fence. `draft: true` keeps a row off the site except on a dev server, and a future date holds it back until the first deploy on or after that day. `lib/__tests__/siteContent.test.ts` fails on a row without a body, a body without a row, a figure that is not exported and an image missing from `public/`.

## UI conventions

**Design from the person's job, then cut everything else. A screen is not a book or a doc.** Every screen, panel and dialog exists for something a person came to do. Before building one, name that job and its one primary action, then judge the result by whether a person who knows nothing of the code can finish the job there, fast, without reading. A screen that only looks organized has failed.
Expand Down Expand Up @@ -167,6 +173,8 @@ Exactly one window per origin is the elected sync host (Web Locks; `store/syncRe

Never use raw `set()` to modify `sessions`, `conversations`, `clientState`, `tasks`, `docs`, or `plans`.

**A draft never outlives its action.** When an action commits, mutative revokes every proxy its draft handed out, and the next read of one throws "Cannot perform 'get' on a proxy that has been revoked". A proxy escapes two ways. It is copied into a synced collection, which is frozen whole, so finalize never swaps it out: build the replacement from the plain table, never by spreading the draft (`liftExcludesForIncoming` in chatSlice, `replayOntoPush` in orgSlice). Or a module-level memo keeps it. A memo keyed by input identity is safe, because a proxy key never matches a committed object again. A memo keyed by value signatures is not: the next caller whose signature matches gets the draft's rows (an action's `computeVisualOrder(this)` filled `placeInboxRows`' memo and the sidebar crashed on it). A selector that memoizes on signatures places over `current(draft)` when handed a draft, as `placeInboxRows` does.

### Sync

All incoming data goes through `syncTable(field, data, opts?)`. Don't create per-table sync functions: register the table in `CLIENT_SYNC_REGISTRY` (`store/clientSyncRegistry.ts`, above). inboxStore's `SYNC_REGISTRY` spreads those defaults and only adds store-internal opts (transforms, merge functions, normalize) per key.
Expand Down
Loading
Loading