Skip to content

Add an optional limited editor mode - #252

Open
moon-jam wants to merge 3 commits into
sysprog21:mainfrom
moon-jam:feat/editor-options
Open

moon-jam wants to merge 3 commits into
sysprog21:mainfrom
moon-jam:feat/editor-options

Conversation

@moon-jam

@moon-jam moon-jam commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Add five independent editor options below Difficulty: syntax highlighting, code execution, automatic indentation, bracket auto-close, and monospace font. All are enabled by default. Choices survive lobby reloads and are captured when an interview starts; existing links retain the default behavior.

image

The editor applies these settings while preserving native undo/redo, manual indentation, and line numbers. Parser assets load only when automatic indentation or bracket highlighting needs them.

When code execution is disabled, Run and its keyboard shortcuts are disabled, and all five languages remain available. The interviewer asks candidates to trace their written code through ordinary and boundary cases instead of requesting a run. Execution events cannot earn Test credit, the hiring bar remains unchanged, and saved and exported reports disclose the restriction. The live and report prompt changes are recorded under contract bundle 31.

Closes #73
Closes #85


Summary by cubic

Adds five independent lobby editor options below Difficulty — syntax highlighting, code execution, automatic indentation, bracket auto-close, and monospace font — all enabled by default. Choices survive lobby reloads, are captured when an interview starts, and existing links keep every feature on.

Editor options

  • The editor applies each setting while preserving native undo/redo, manual indentation, and line numbers.
  • Parser assets load only when automatic indentation or bracket highlighting needs them.

Disabled code execution

  • Run and its keyboard shortcuts are disabled while all five languages stay selectable, and the interviewer asks candidates to hand-trace their code instead; whiteboard sessions ignore the choice because they have no code runner.
  • Execution events cannot earn Test credit, and saved and exported reports disclose the restriction.
  • Live and report prompt changes are recorded under contract bundle 31.

Written for commit 48b11b4. Summary will update on new commits.

View guided diff

cubic-dev-ai[bot]

This comment was marked as resolved.

@moon-jam
moon-jam force-pushed the feat/editor-options branch from f781aaf to 9c33f63 Compare October 7, 2026 05:08
Comment thread src/livekit.rs Outdated
@moon-jam
moon-jam force-pushed the feat/editor-options branch from 9c33f63 to 663752a Compare October 7, 2026 05:24
@jserv
jserv requested a review from ColtenOuO October 7, 2026 05:25
cubic-dev-ai[bot]

This comment was marked as resolved.

The lobby offered one fixed editor configuration. Add independent
preferences and capture them when an interview starts, so later choices
cannot change that interview's options. Existing links keep all editor
features enabled.
Interview links carry editor preferences, but the editor previously
ignored them. Enable or disable highlighting, automatic indentation,
bracket auto-close and monospace font according to those settings.
Keep native undo, manual indentation and line numbers available.
Load parser assets only when automatic indentation or syntax
highlighting is enabled.
Disabling execution must also change how the interviewer verifies code.
Accept hand traces of written code and ignore execution events, while
keeping the existing hiring bar. Preserve the choice across language
switches and reconnects, and disclose it in saved and exported reports.
Version the live and report prompt changes under contract bundle 31.
@moon-jam
moon-jam force-pushed the feat/editor-options branch from 663752a to 48b11b4 Compare October 7, 2026 11:53
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.

Add an optional limited editor mode Add optional automatic bracket pairing to the code editor

2 participants