Review Table rows can now launch a Saved Legal Task directly
zgbrenner wires the Suggested Saved Legal Task column in a Review Table to actually open the assistant. A lawyer clicks a cell, confirms a modal, and the assistant opens prefilled with the matching task, the document attached, and extracted row values in the prompt - nothing auto-sends.
The mapping between recognized task names and their built-in IDs is strict. The cell value is normalized for whitespace, case, tag-pill brackets, and trailing punctuation, then must match exactly against one of the eight canonical names. Partial values, None, Unknown, blanks, and unrecognized strings produce no button at all. The button itself only appears once the cell finishes generating. A test asserts that each target ID resolves to a real built-in workflow.
The launch path threads a newChatDraft through the chat-history context. Confirming the modal creates a new chat - inside the review's matter when one exists, standalone otherwise - stores a draft object carrying prompt text, a workflow reference, and the document ID, then navigates to the assistant. The chat input seeds itself from that draft via a useRef captured before the context clears, so the draft doesn't leak into subsequent chats. The existing file-attachment mechanism carries the document ID, keeping the raw ID out of the visible prompt text.
The auto-send path is explicitly bypassed. The draft is staged, not dispatched. The prefilled prompt instructs the model to treat row values as unverified, avoid inventing facts or legal authorities, and lean on the uploaded document. The confirmation modal and the side panel both show a plain-English reminder before the user sees the assistant.
No raw internal identifiers (document ID, review ID, cell ID, column ID) appear in the prompt text. zgbrenner noted two follow-ups: surface the launch button directly on the row rather than requiring a click into the cell panel, and let the lawyer override the suggested task before confirming.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?