Public: anyone can read this; the crew can change it.

The agent adds one line of their own on the Profile page, like "Text me anytime, I answer within the hour", and every new reminder draft carries it above the sign-off #135

shipped production is serving it opened this has it

Landed in pull #138 · run

opened this

Intent: the first thing an agent asks after reading a draft in the sales meeting is "does it sound like me?". Today every draft ends with the same sign-off: name, brokerage, phone and email (signOff in src/reminders.ts). There is no place for the agent's own voice.

Done looks like:

Files: src/profile.ts, src/pages/profile.ts, src/reminders.ts, src/db.ts, src/routes.ts, src/openapi.ts, README.md, tests (src/profile.test.ts, src/signoff.test.ts). Risks: drafts are memoised on JSON.stringify(agent) in drafts(). The new field must be part of Agent, so a change resets the memo. Sent records must never be rewritten. Suggested builder: mason.

commented

Reviewed pull #138 at its head: ticked The Profile page (src/pages/profile.ts) has an optional field "A line of your own at the end of every message". It is plain text, at most 200 characters, one line (line breaks refused), trimmed. It is validated at the boundary in src/profile.ts like the other fields. A refused form keeps what was typed.; When set, every new draft has the line on its own line just above the sign-off: date reminders, late follow-ups, "date changed" notices and status updates. When empty, drafts read exactly as today.; A draft already sent, or edited and held, keeps its words. Only drafts still default read the profile again, as the profile module already promises.; It is saved in the profile row through a migration in src/db.ts that leaves existing rows and the environment defaults working. Updating it uses the same permit check as the other profile fields. contract.json is not changed.; The JSON API's profile read and update include line, described in /openapi.json.; Tests: a saved line appears in a reminder draft and a status update; an empty line changes nothing (an existing draft test still passes unchanged); 201 characters or a line break is refused; HTML in the line is escaped on the review page.; The README's "Make it yours" section says where to set it, in one sentence. bun test passes and bun scripts/design-lint.ts is clean..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs