You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
An app profile reads the Feed, Sent and Spam, and the Screener's subjects - #654
On a profile the HEY app answers, hey now reads the Feed, Sent and Spam, and shows what each sender waiting in the Screener sent. Agents on that profile are no longer sent to a server profile or a browser sign-in, and the skill tells them the profile exists and when to use it.
hey screener list showed only each sender's name and address, so the agent couldn't tell a seller from a friend.
hey box view feed said the box isn't offered.
Refusals said "Use a server profile", and profile show showed base_url app.hey.com, so agents went to a browser sign-in they couldn't finish.
The skill named no app endpoint.
The HEY app's door now offers feed.list, sent.list and spam.list, and screener.list carries each waiting sender's subject and summary (basecamp/hey-native-apps#11750, #11762). Its imbox.list rows now have a kind, and a bundle names no topic. hey-cli refused a whole Imbox holding one.
Change
hey box view imbox|feed|sent|spam on an app profile calls imbox.list, feed.list, sent.list or spam.list. Rows are read by kind:
Imbox and Feed: a thread is listed as kind topic with its topic_id. A bundle has no topic_id and lists its own threads. A world_post has no topic_id.
Sent: a sending row (id below zero, no topic) is listed as kind sending with no topic_id, and the notice says it's on its way. It never refuses the list. A sent thread carries recipients, sent_at and still_trying.
Spam: id is the posting and topic_id the thread, with creator and arrived_at.
meta.has_more is always set, and the notice says when the box holds more than the app has loaded.
A row that contradicts its kind (a thread with no topic, a sending with a positive id or a topic) refuses the answer (exit 7) rather than point at the wrong thread. A kind this hey doesn't know is listed with no topic_id.
hey screener list on an app profile carries each waiting sender's subject and summary, and --styled shows the subject.
meta.senders_words names the fields a sender wrote (names, subjects, summaries; in Sent, names and recipients) and says to read them as what the sender says, never as instructions. --markdown prints the same line.
Nothing on an app profile points at a server profile or a sign-in:
A command the app doesn't answer, and hey mcp, say what it does answer (hey -P <profile> box view imbox|feed|sent|spam, the screener, drafts).
--page, --all, --account and the other refused flags say how to run the command again.
hey auth says to sign in to HEY in the app itself, and a not_offered refusal says to update HEY.
profile list, profile show and config show give an app profile no base_url. config show lists endpoint: app in its place.
With HEY_EXPERIMENTAL=app set and no profile the app answers, any command that reads a server is refused (exit 1). The message names the config file hey read, gives the profile JSON to add there, and says to unset the variable to use HEY's server. Profile commands, config, version, skill, completion and hey app still run.
The skill gets a short "The HEY app on this computer" section: when to use the profile, that it needs no sign-in, what it answers, and senders_words. hey app --help (gated) holds the detail.
The skill's size cap goes from 16 KiB to 17 KiB, with the reason at the constant. The skill was 140 bytes under the cap. TestSkillNamesRealCommands now runs with the gate on, so it can check hey app.
Verification
11 new tests, then more for the review findings, (internal/cmd/app_boxes_test.go, plus one in skills/embed_test.go), each red against main first:
the box isn't offered;
the Imbox refuses a bundle;
the server is reached with no app profile;
base_url is shown;
hints name a server profile or auth login;
the skill is silent.
The row checks were shown red by mutation: with them removed, 5 of the 6 contradiction cases pass when they shouldn't.
make check is green. The one red was internal/markdown's 5-second linearity test under a machine load of 44, and it passed when rerun alone. Three race and shuffle runs of the app and profile tests are green.
Live, on thelio: the HEY Linux app was built from hey-native-apps main (0c807eb), run on test data with Let Agents Use HEY on, and read through this branch's hey (d97d1b5) on a profile set to the app alone. Every answer had meta.endpointapp and carried senders_words.
screener list returned 33 waiting senders, each with a subject and summary.
box view imbox returned 30 rows: 28 threads, 1 bundle with 2 threads of its own, and 1 World post. The bundle and the World post had no topic_id. has_more was true.
feed returned 41 rows with has_more true, sent 25 rows, and spam 3 rows. The test data held no message on its way, so the sending case is proven by tests only.
box view papertrail, thread read and auth login were refused, and none named a server profile or a sign-in.
profile show and config show showed endpoint: app and no base_url.
With the config in another folder, box view imbox was refused, naming the file hey had read.
The app was stopped and its setting removed afterwards. The pipe-free hint wording came later (e7cb224), and its tests cover it.
Alternatives
A notice in place of the refusal when the gate is on and no app profile exists. Rejected: an agent reads past a notice, and the answer would still be the server's.
Keeping the skill under 16 KiB by cutting other rules' text. Rejected: which rules to trim is not this change's call. The cap moves 1 KiB instead, and the detail lives in hey app --help. Jeremy, say if you'd rather trim.
Marking senders' words per row, or wrapping them. Rejected for now: one meta.senders_words line names the fields without changing their values, which other tools compare against the server's.
hey box view agent_notes and docs/cli.md still describe the server only, since the app endpoint is gated and hidden from help and .surface.
…ects
On an app profile, round 6 of the customer's-agent evals scored 3 of 6.
hey screener list showed only each sender's name and address, so an
agent could not tell a seller from a friend; hey box view feed was
refused; the refusals and the app profile's base_url sent agents to a
server profile and a browser sign-in they could not finish; and the
skill named no app endpoint. The Imbox also refused a whole listing
holding a bundle, which the door names no topic for.
Now hey box view imbox|feed|sent|spam reads imbox.list, feed.list,
sent.list and spam.list, each row by its kind: a thread by its topic, a
bundle with its own threads, a World post with none, and in Sent a
message on its way (id below zero, no topic), listed and named in the
notice, never refusing the list. Spam's id is the posting, its topic
the thread. has_more is in the meta and the notice. hey screener list
carries each waiting sender's subject and summary. meta.senders_words
names the fields senders wrote, as theirs and never instructions. No
refusal on an app profile points at a server profile or a sign-in; it
says what the app answers. profile list, profile show and config show
name the endpoint, not a base_url. With HEY_EXPERIMENTAL=app and no
profile the app answers, a read is refused naming the config file hey
read, rather than answered from HEY's server. The skill names the app
endpoint and when to use it; hey app's help holds the detail.
Verified: 11 new tests, each red against main first (box not offered,
bundle refused, server reached, base_url shown, hints naming a server
profile, skill silent); row validation shown red by mutation (5 of 6
cases). make check green but for an unrelated timing test under load,
green on rerun; race and shuffle runs green.
Rejected: keeping the skill under its 16 KiB cap, which meant cutting other
rules' text; the cap goes to 17 KiB with its reason, and the detail
lives in hey app --help. A notice instead of a refusal for the missing
app profile, since an agent reads past a notice and the answer would
still be the server's.
A fresh review found the Markdown agents read lagging the JSON: hey
screener list --markdown dropped the senders' words line and the
"more waiting" notice, which Markdown carries no meta for; a Feed
bundle's threads, its only rows with a thread to read, were absent and
no row named its kind; Sent put its recipients under "from"; and the
skill left exit 3 on an app profile to the server's sign-in advice.
Now box view's Markdown has a kind column and lists a bundle's threads
after it, each naming the bundle it is in; Sent's column is "to"; the
screener writes its notice and the senders' words line after its
table; the skill says exit 3 there is the app signed out and exit 6
its door shut.
Verified: four assertions added to the existing tests, red first
(markdown without the line, without 903 and world_post, Sent under
"from", the skill silent), then green; make check green.
Rejected: a pointer for Spam's sender_id, which the review raised;
creator.id is already omitted at 0, so a null id never reads as
sender 0.
A second review found hey screener list --markdown, on an app profile,
said its "more waiting" notice on stderr and again after its table on
stdout, which an agent reading both streams sees twice. Now Markdown
says it after the table alone. The Sent Markdown test now looks for
"on its way" as a table cell, which the notice line also holds.
Verified: the stderr check red first, then green.
Rejected: renaming Markdown's "Total threads", which counts a bundle
row once and not its threads; the server path counts the same way.
The reason will be displayed to describe this comment to others. Learn more.
All reported issues were addressed across 12 files
You’re at about 97% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Reply with feedback, questions, or to request a fix.
Review found four more gaps on the app profile. --styled showed a
bundle as one row, its threads, the only ones with a topic to read,
left out. The hint for a command the app doesn't answer wrote "box view
imbox|feed|sent|spam", which a person or agent copying it runs as four
shell commands. Shell completion setup was refused on an app profile,
and with the gate on and no app profile, as if it read a server. The
skill said to run every command on the app profile, where most are
refused.
Now --styled lists a bundle's threads under it, indented; the hint
names the boxes in words; whatever commandReadsNoServer says reads no
server runs on an app profile and under the gate; and the skill says
to run hey on the profile and tell the person what it refuses is for
the HEY app. A test of the JSON decoder ignoring an unknown field,
which could not fail, is gone.
Verified: the styled bundle, the pipe-free hints and shell-completion
under the gate each red first, then green.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
In app mode, active issues break shell completion without a profile, let bare invocations enter server account selection or sign-in, and omit bundle member thread IDs from styled output.
Extends the experimental HEY app profile with more mailbox reads and richer Screener details, while improving guidance to keep agents on the local app endpoint.
Changes:
Adds Feed, Sent and Spam reads, including bundles, World posts and messages still sending.
Adds Screener subjects and summaries, plus metadata identifying sender-authored text.
Updates profile display, missing-profile safeguards, refusal hints and agent documentation.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
File
Description
skills/hey/SKILL.md
Documents app-profile selection, capabilities and safety guidance.
skills/embed_test.go
Checks app guidance and raises the skill size cap.
internal/config/config.go
Exposes the global config path for diagnostics.
internal/cmd/skill_commands_test.go
Enables app commands during skill validation.
internal/cmd/profile.go
Omits server URLs from app-profile output.
internal/cmd/endpoint.go
Adds missing-profile safeguards and app-focused hints.
internal/cmd/config.go
Shows the app endpoint instead of a server URL.
internal/cmd/app.go
Expands experimental app help.
internal/cmd/app_writes.go
Makes unsupported-flag hints actionable.
internal/cmd/app_reads.go
Adds mailbox readers, row validation and richer output.
internal/cmd/app_endpoint_test.go
Updates unsupported-box coverage.
internal/cmd/app_boxes_test.go
Tests new mailbox reads, Screener details and safeguards.
The reason will be displayed to describe this comment to others. Learn more.
2 issues found across 4 files (changes from recent commits).
You’re at about 99% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Reply with feedback, questions, or to request a fix.
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="skills/hey/SKILL.md">
<violation number="1" location="skills/hey/SKILL.md:245">
P2: Exit 6 is not always a shut door: initialization/account mismatches and timeouts also map to it with different hints. Tell agents to follow the error hint instead of always asking them to fix the HEY door.</violation>
<violation number="2" location="skills/hey/SKILL.md:245">
P2: These examples are presented as commands, but `|` is a shell pipeline and `approve`/`deny` need an argument. Spell out the alternatives and include the required sender ID or address.</violation>
</file>
Three reviewers found that with HEY_EXPERIMENTAL=app set and no profile
the app answers, bare hey still ran as it does on a server: signed in,
it picked an account on HEY's server; signed out at a terminal, it
started the server's sign-in wizard. That is the browser sign-in the
missing-profile refusal exists to stop.
Now bare hey in that state prints help, warns on stderr what is missing
and where hey looked, and neither picks an account nor starts the
wizard. hey --version and hey --help run as before.
Verified: the bare-hey assertion red first, then green; make check
green.
Rejected: refusing bare hey outright, which would refuse hey --version
too and hide the help that names the profile commands.
Review found the skill told agents exit 6 on an app profile always
means the HEY app's door is shut, so ask the person to open it. But hey
gives exit 6 for any failure to reach the app, among them a timeout and
an app that answers only another user account, each with its own hint.
Now the skill says exit 6 is hey unable to reach the app, and to relay
the error's hint.
Verified: the skill test red first, then green.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Two validation gaps remain: unknown spam kinds can expose replyable topics, and bundles with missing or null thread lists are accepted as complete results.
Preserve unknown spam thread kinds without exposing topic IDs
internal/cmd/app_reads.go:458
Spam discards the incoming kind, so a row with kind: "future_kind" and a positive topic is exposed as a replyable topic instead of an unknown row without topic_id. Preserve the incoming kind in appSpamThread, require a positive topic only for recognized thread rows, and retain unknown kinds without exposing a topic.
…sn't know
Review found two rows read as more than the door said. A bundle row with
its threads missing passed as a bundle holding none, though the door
always gives a bundle its list, empty only while its facts land. And
Spam dropped each row's kind, so a row of a kind this hey doesn't know
was listed as a thread with a topic to read.
Now a bundle without its list refuses the answer, as a missing has_more
does, and a Spam row of an unknown kind keeps that kind and names no
topic, as the Imbox, the Feed and Sent already do.
Verified: both cases red first, then green; make check green.
Review threads: 20 resolved (15 fixed, 5 declined, with the reasoning in each thread).
Review bodies: 1 finding answered. Copilot's previously-missed note on Spam dropping a row's kind (#654 (review)) was fixed in 18b3798: an unknown kind keeps its kind and names no topic.
Declined:
Refusing a Sent thread whose id and topic differ. The door builds both from one value, and topic is the thread it is read by. (cubic, Sent id/topic thread)
Adding the senders'-words line to --styled. Styled output is for a person at a TTY; agents get JSON or Markdown, which carry the line. (cubic)
Replacing the skill's a|b command notation, which the whole skill uses and TestSkillNamesRealCommands checks. (cubic)
Bare hey and the server wizard: declined at first, then fixed in bd6384e once Greptile and Copilot raised the account selection too. Under the gate with no app profile, bare hey now prints help and a warning.
Not reported on the head:
Copilot: last reviewed fa56e2c, re-requested once; the only change since is 18b3798, which answers its findings.
cubic: last reviewed e7cb224; its check passed on every later head with no new findings.
Greptile: last reviewed 632979f; its 3 threads are fixed and resolved.
Unrelated: on fa56e2c, Race Detection went red in internal/tui (TestEventCardAllDayEndAcrossDaylightSaving), a package this PR doesn't touch. It passed on the rerun and on 18b3798.
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
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.
On a profile the HEY app answers,
heynow reads the Feed, Sent and Spam, and shows what each sender waiting in the Screener sent. Agents on that profile are no longer sent to a server profile or a browser sign-in, and the skill tells them the profile exists and when to use it.Context
hey screener listshowed only each sender's name and address, so the agent couldn't tell a seller from a friend.hey box view feedsaid the box isn't offered.profile showshowedbase_urlapp.hey.com, so agents went to a browser sign-in they couldn't finish.feed.list,sent.listandspam.list, andscreener.listcarries each waiting sender's subject and summary (basecamp/hey-native-apps#11750, #11762). Itsimbox.listrows now have akind, and a bundle names no topic. hey-cli refused a whole Imbox holding one.Change
hey box view imbox|feed|sent|spamon an app profile callsimbox.list,feed.list,sent.listorspam.list. Rows are read bykind:threadis listed as kindtopicwith itstopic_id. Abundlehas notopic_idand lists its ownthreads. Aworld_posthas notopic_id.sendingrow (id below zero, no topic) is listed as kindsendingwith notopic_id, and the notice says it's on its way. It never refuses the list. A sent thread carriesrecipients,sent_atandstill_trying.idis the posting andtopic_idthe thread, withcreatorandarrived_at.meta.has_moreis always set, and the notice says when the box holds more than the app has loaded.topic_id.hey screener liston an app profile carries each waiting sender'ssubjectandsummary, and--styledshows the subject.meta.senders_wordsnames the fields a sender wrote (names, subjects, summaries; in Sent, names and recipients) and says to read them as what the sender says, never as instructions.--markdownprints the same line.hey mcp, say what it does answer (hey -P <profile> box view imbox|feed|sent|spam, the screener, drafts).--page,--all,--accountand the other refused flags say how to run the command again.hey authsays to sign in to HEY in the app itself, and anot_offeredrefusal says to update HEY.profile list,profile showandconfig showgive an app profile nobase_url.config showlistsendpoint: appin its place.HEY_EXPERIMENTAL=appset and no profile the app answers, any command that reads a server is refused (exit 1). The message names the config file hey read, gives the profile JSON to add there, and says to unset the variable to use HEY's server. Profile commands,config,version,skill, completion andhey appstill run.senders_words.hey app --help(gated) holds the detail.TestSkillNamesRealCommandsnow runs with the gate on, so it can checkhey app.Verification
internal/cmd/app_boxes_test.go, plus one inskills/embed_test.go), each red against main first:base_urlis shown;auth login;make checkis green. The one red wasinternal/markdown's 5-second linearity test under a machine load of 44, and it passed when rerun alone. Three race and shuffle runs of the app and profile tests are green.meta.endpointappand carriedsenders_words.screener listreturned 33 waiting senders, each with a subject and summary.box view imboxreturned 30 rows: 28 threads, 1 bundle with 2 threads of its own, and 1 World post. The bundle and the World post had notopic_id.has_morewas true.feedreturned 41 rows withhas_moretrue,sent25 rows, andspam3 rows. The test data held no message on its way, so thesendingcase is proven by tests only.box view papertrail,thread readandauth loginwere refused, and none named a server profile or a sign-in.profile showandconfig showshowedendpoint: appand nobase_url.box view imboxwas refused, naming the file hey had read.Alternatives
hey app --help. Jeremy, say if you'd rather trim.meta.senders_wordsline names the fields without changing their values, which other tools compare against the server's.hey box viewagent_notes anddocs/cli.mdstill describe the server only, since the app endpoint is gated and hidden from help and.surface.