:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
/**
* The title a rename should save, or `null` when there is nothing to save. The title field fires on every
* blur whether or not the user typed, so most calls arrive with nothing to do.
*/
export function nextTaskTitle(input: string, currentTitle: string | undefined): string | null {
const trimmed = input.trim()
if (!trimmed || trimmed === currentTitle) {
return null
}
return trimmed
}