Skip to content

Feature: Add button for ending interviews#19

Merged
adarshm11 merged 1 commit into
mainfrom
end-interview-button
May 31, 2026
Merged

Feature: Add button for ending interviews#19
adarshm11 merged 1 commit into
mainfrom
end-interview-button

Conversation

@adarshm11
Copy link
Copy Markdown
Collaborator

Motivation

When interviews are completed, interviewers need to be able to close the interview room so that the interviewee cannot retroactively edit their code to adjust their performance.

Implementation

This is implemented using a WebSocket message where, when the interviewer ends the interview, each other user in the room is notified that the interview was ended, each user is prompted to leave the room. Before that happens, all the code content is flushed to disk and the room is deleted from memory after all users leave. For security reasons, ending interviews is gated behind an API key modal, so that only admins with privileged information can end the interview.

Testing

This has been tested on a local setup with two users on the same machine, and the implementation worked as intended.

Copy link
Copy Markdown

@maernest04 maernest04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dang this code sucks

@adarshm11 adarshm11 merged commit 176ec29 into main May 31, 2026
1 check passed
@adarshm11 adarshm11 deleted the end-interview-button branch May 31, 2026 16:56
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.

2 participants