Skip to content

feat(help): add "Mark Active" button to inactivity warning#1423

Open
SleepyStack wants to merge 2 commits intoTogether-Java:developfrom
SleepyStack:develop
Open

feat(help): add "Mark Active" button to inactivity warning#1423
SleepyStack wants to merge 2 commits intoTogether-Java:developfrom
SleepyStack:develop

Conversation

@SleepyStack
Copy link

@SleepyStack SleepyStack commented Mar 1, 2026

Fixes #1140

Overview

Added a "Mark Active" button to help threads flagged for inactivity.

Instead of a "Dismiss" button, I put "Mark Active" because it better reflects the user's intent to keep the thread open. When clicked, the bot unarchives the thread and deletes the inactivity warning to keep the history clean.

Changes

  • HelpThreadAutoArchiver.java: Added the button to the inactivity message and updated the embed text to tell users to click it to reopen the thread.
  • HelpThreadCreatedListener.java:
    • Created a small hook in onButtonClick using a new thread-inactivity namespace.
    • This ensures the reactivation logic stays isolated from the existing ChatGPT dismiss button.
    • Added handleMarkActiveInteraction to unarchive the thread and delete the bot's warning message.

Why this approach?

A button is more reliable than a message listener since it bypasses the 14-day deletion limit and doesn't require extra database tracking. It's a simple fix that doesn't mess with the existing thread logic.

@SleepyStack SleepyStack requested a review from a team as a code owner March 1, 2026 18:22
@CLAassistant
Copy link

CLAassistant commented Mar 1, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Question closed due to inactivity" message taking up screen

2 participants