Repository navigation
Note from the Brad: I know I have been pushing rapid releases back-to-back lately.
v0.12.0will be the last planned release for a while as I step back to let things settle and wait for community bug reports and feature requests. This release brings new capabilities, deeper stability and resilience testing, UI polish fixes, and performance improvements wherever I could find them. If you run into any issue, big or small, or have ideas for what you would like to see next, please open an issue or discussion.
Added
- Auto-Focus Next Stopped Rank & Preference Toggle (
auto_focus_stopped_rank): AddedConfigManager::autoFocusStoppedRank()/setAutoFocusStoppedRank()persisted under[debugger] auto_focus_stopped_rankinconfig.toml(defaulttrue), exposed#autoFocusStoppedRankCheckinPreferencesDialog(Behavior), and updatedMainWindow::onRankStateChanged()so whenever the currently focused rank isRunning,Finalizing, orExitedand at least one rank isStopped, GridLock automatically switches active rank focus acrossVariables,Registers,Watch,Call Stack,SourceCodeView,DisassemblyView, andServerRackViewto the lowest-index stopped rank without stealing focus from an already-stopped rank. - Theme-Driven Fortran, Nix, and JSON/JSONC Syntax Highlighting: Extended
EditorSyntaxHighlighterand addedEditorSyntaxRules(src/ui/views/editor/EditorSyntaxRules.{hpp,cpp}) with dedicated highlighting for Fortran (.f,.for,.f77fixed-form column-1 comments and.f90/.f95/.f03/.f08/.fppfree-form keywords, intrinsic types/procedures,!$omp/!$accdirectives, dot operators, and_kindnumeric literals), Nix (.nixkeywords, builtins, attribute paths, relative/search paths,#and multi-line/* ... */comments, and'' ... ''/"..."strings with${...}interpolation), and JSON/JSONC (.json/.jsoncdistinct object keys vs. string values,\uXXXXescape highlights, numbers, constants, and JSONC comments); unified all editor languages to derive token colors directly fromThemeManager::activePalette()with>= 4.5:1WCAG-AA contrast enforcement and liveThemeManager::themeModeChangedupdates across all 19 dark and light themes (tests/ui/test_syntax_highlighting.cpp). - Unsaved-Buffer Crash Recovery Journal & Corrupt Config Fallbacks: Added
BufferRecoveryJournal(src/core/utils/BufferRecoveryJournal.{hpp,cpp}) and headlessstate_recovery_tests(tests/core/test_state_recovery.cpp) persisting atomic0600per-buffer recovery snapshots underAppLocalDataLocation/recovery/(with debounced dirty-buffer snapshotting inEditorTabManagerand clean-shutdown marker clearing inMainWindowLifecycle), defensiveState_v9layout blob validation beforerestoreState(), defensivecompile_commands.jsonparsing, and hardenedConfigManagerToml/ConfigManagerWorkspaceloading so truncated, zero-byte, NUL-byte, or wrong-type TOML files fall back cleanly to valid defaults without losing unrelated keys. - Filesystem Safety Guardrails (
SafeFileLoader): AddedSafeFileLoader(src/core/utils/SafeFileLoader.{hpp,cpp}) and headlessfilesystem_resilience_tests(tests/core/test_filesystem_resilience.cpp) enforcing non-blocking POSIXlstat/stat/fstatregular-file checks (rejecting FIFOs,/dev/zero, sockets, broken symlinks, andELOOPcircular symlinks before opening), configurable32 MiBtext-buffer caps, NUL-byte binary detection, strict stateless UTF-8 decoding (hasInvalidUtf8,hasBom), and atomicQSaveFilechecked writes that refuse silent lossyU+FFFDoverwrites and preserve original bytes on permission orENOSPCfailures; wired intoEditorTabManager,EditorTabManagerSplits,SourceCodeView::saveToFile(), andWorkspaceReplaceEngine. - Project Explorer
Show Hidden FilesToggle: Added a checkableShow Hidden Filesaction (#projectExplorerShowHiddenAction) toProjectExplorerWidget'sFILEScontext menu (for both item and empty-area right-clicks), togglingQDir::HiddenonQFileSystemModelimmediately and persistingshow_hidden_filesunder[workspace]inConfigManager(config.toml, defaultfalse). - Lightweight Status-Bar VCS Branch Indicator & Preferences Controls: Added
WorkspaceGitBranchProbe(src/core/utils/WorkspaceGitBranchProbe.{hpp,cpp}) and#cutterStatusGitBranchin the bottom status bar alongsideHOST RAM/CPUfor zero-fork.git/HEAD(includinggitdir:worktrees/submodules and detached@<sha>), Jujutsu (.jj), Mercurial (.hg), Perforce (.p4config), Subversion (.svn), Sapling (.sl), Fossil (.fslckout/_FOSSIL_), Pijul (.pijul), Plastic SCM (.plastic), and Darcs (_darcs) detection with liveQFileSystemWatcherbranch-switch updates, non-blocking async dirty/status enrichment, automatic hiding outside repositories, and Preferences -> Behavior controls to toggle the indicator off or configure a custom VCS CLI executable path. - MPI_Finalize Wait-State Detection &
FINALIZINGRank Badges: AddedRankExecutionState::Finalizing(finalizing/FINALIZING) insrc/RankState.hpp, extendedDeadlockAnalyzer(isFinalizeFrame(),hasFinalizeFrame(),rankFinalizingDetected) to classify ranks parked insideMPI_Finalize,PMPI_Finalize,ompi_mpi_finalize, orMPIR_FinalizeasFinalizingwait states without false-positiveDEADLOCKalarms when peer ranks are paused at rank-conditional breakpoints (while still flagging trueCOLL_MISMATCHcollective divergence if another rank is simultaneously stuck in a non-finalize collective such asMPI_BcastorMPI_Barrier), and added theme-aware WCAG-compliantFINALIZINGbadges andMPI_Finalizetelemetry rows inServerRackView(included inAllandRunningrack filters) andMpiDiagnosticsWidget. - Optional
elfutilslibdwIn-Process DWARF 4/5 Reader: Added-Dlibdw=auto|enabled|disabledinmeson_options.txtandmeson.build(GRIDLOCK_HAS_LIBDW=1/0), implemented RAIILibdwDwarfReader(src/core/hpc/dwarf/LibdwDwarfReader.{hpp,cpp}) for sub-millisecond in-process.debug_linebidirectional lookups,DW_TAG_inlined_subroutinecall-site chain unwinding, and.debug_infostruct/class/union/bitfield/inheritance/vptr layout extraction, wired it intoElfBinaryInspectorandDwarfStructLayoutAnalyzer::analyzeStructFromBinary()(poweringStructLayoutDialogandMemViewtyped pointer overlays even before GDB attaches), and preserved automatic fallback toobjdump --dwarf=decodedlineand GDBptype /owhenlibdwis disabled or unavailable. - Optional Capstone Multi-Architecture Disassembly Backend (
x86_64&aarch64): Added-Dcapstone=auto|enabled|disabledinmeson_options.txtandmeson.build(withexternal/capstone.wrap/subprojects/capstone.wrapCMake fallback), implemented RAIICapstoneDecoder(src/core/binary/CapstoneDecoder.{hpp,cpp}) decoding rawx86_64andaarch64bytes into structuredDecodedInstructionmetadata (exact branch targets, call/jump/conditional/return classifications, and normalized explicit/implicitregsRead/regsWrittensets), integrated Capstone intoElfBinaryInspectorandDisassemblyCfgBuilderwith automaticobjdumpfallback when disabled or on unsupported architectures, and exposed register read/write metadata inDisassemblyViewhover tooltips and header tooltips.
Changed
- Unified Bottom Panel (
Build&Find in Files) and Side-by-Side Build Splitter: MovedBuildDiagnosticsDockWidget(Build/Build (N)live diagnostic count badge) andFindInFilesDockWidget(Find in Files) natively into#BottomConsoleTabs(eliminating the separateBuildOutputDockandFindInFilesDockHostQDockWidgetwrappers), addedMainWindow::activateBottomTab()to expand collapsed bottom splitters smoothly across all perspectives, switchedBuildDiagnosticsDockWidgetto a dynamic horizontalQSplitter(#buildContentSplitter: structured diagnostics left, streaming monospace raw build output right, auto-expanding raw log during clean builds, snapping to 55%/45% on diagnostics, and preserving manual user drags), and added a 1-click Open in Find in Files (Ctrl+Shift+H/Alt+Enter) handoff from Search EverywhereTextmode that transfers the query andAa/W/.*toggles directly into#BottomConsoleTabs. - Refreshed Documentation Guides & Offscreen Screenshot Suite: Extracted
MainWindow::captureDocumentationScreenshots()intosrc/ui/mainwindow/MainWindowDocCapture.cppcovering all workstation, theme, tutorial, Build/Find in Files (build_diagnostics_splitter.png,build_menu.png,find_in_files_bottom_tab.png), Memory View typed struct overlay ((Particle*)0x00404000), DWARF/STAT/OpenMP, Package Manager, and Struct Layout Dialog PNGs underdocs/screenshots/viaGRIDLOCK_UPDATE_SCREENSHOTS=1andscripts/capture_ui.sh --docs, addeddocs/Build-and-Find-in-Files.md, synchronized prose, captions, and shortcuts acrossREADME.mdanddocs/*.md, removed orphaned legacymenu_bar_*.pngassets, and fixedEditorBreadcrumbBar::rebuildSegments()so removed segment widgets detach cleanly without overlapping on tab switches. - Feature-Focused UI Testing Policy: Codified a strict UI testing scope policy in
agent.md,AGENTS.md, andtests/ui/README.mdrequiring tests to focus on substantive features, multi-component workflows, and crash/data-loss/security regressions rather than trivial version-string, static-label, or cosmetic micro-UI checks.
Security
- Workspace Security Guardrails (
WorkspaceSecurityGuard): AddedWorkspaceSecurityGuard(src/core/utils/WorkspaceSecurityGuard.{hpp,cpp}) and headlessworkspace_security_tests(tests/core/test_workspace_security.cpp) providing POSIX single-quote shell escaping (shellQuotePosix) wired intoBuildProfileManagerto neutralize$(...)/backtick/metacharacter expansion, Trojan Source (CVE-2021-42574) Unicode bidi override/isolate detection (U+202A-U+202E,U+2066-U+2069) highlighted with warning underlines and tooltips inSourceCodeView, and ANSI/OSC/DCS/BEL escape sequence sanitization (sanitizeProcessOutput) wired intoBuildDiagnosticsDockWidgetandProgram Output.
Performance
- Pruned Redundant & Trivial Micro-UI Tests (
gridlock_ui_tests): Reducedgridlock_ui_testsfrom 116 to 52 substantive test slots (~55% reduction, removingtests/ui/test_ui_workstation_polish_fonts.cppand redundant cosmetic/micro-UI slots) while preserving 100% of core debugger, MPI, binary/CFG, split-editor, build/launch, terminal, find/replace, persistence, and safety coverage.
Fixed
- All 14 Tutorials Exposed in Toolbar Target Selector & Automatic
-fopenmpSingle-File Builds: Added the 6 missing tutorials (catchpoint_exceptions,deadlock_demo,memview_demo,memview_diff_demo,mpi_mm, andregister_demo) toMainWindow::populateDefaultShowcaseTargets()so all 14 source tutorials undertutorial/are directly selectable from the toolbar dropdown, and addedBuildProfileManager::sourceFileUsesOpenMp()(wired intoBuildProfileManager::buildCommand(),MainWindowBuild, andMainWindowNavigation) so Fortran (.f90/.f08/.f) and C/C++ files using OpenMP constructs (!$omp,use omp_lib,omp_get_,#pragma omp,<omp.h>) automatically pass-fopenmpand-o <output>during single-file and tutorial compilation (fixingundefined reference to 'omp_get_thread_num_'ontutorial/stencil_omp.f90). - End-to-End Conditional Breakpoint & Metadata Persistence Across Restarts, Gutters & GDB Launch: Persisted full
BreakpointConfigmetadata (conditionexpressions such asrank == 1,rankFilter,ignoreCount,logMessage,enabled) into.gridlock/workspace.tomland single-file INI storage (with empty-target fallback and symlink-safe pruning), addedEditorTabManager::applyPersistedBreakpoints()so reopened primary and splitSourceCodeViewgutters immediately restore conditional breakpoint markers and metadata while honoringRestore Breakpoints, fixedMainWindowWorkspacemetadata lookup order and tutorial launch sync, and updatedGdbRankCoordinator::flushCachedBreakpoints()to apply-break-insert -c <condition>,-i <ignoreCount>,-d, andrankFilterrouting instead of inserting unconditional breakpoints across all ranks. - Immediate
VariablesClearing & Stale-PC Eviction on Resume (Continue/*running): Cleared stale stopped PCs and locations immediately on*running(GdbMiParser,GdbRankCoordinator,MainWindowDebugger,MainWindowExecution,DisassemblyView::setActiveSteppingRank()) so running ranks displayRUNNING...inServerRackViewand never fall back to prior breakpoint addresses inDisassemblyView, and addedVariableTreeModel::showRunningPlaceholder()/VariablesDockWidget::clearForRunningRank()so stale locals clear immediately when the scoped rank resumes without manual Scope dropdown toggling. - Reactive
ServerRackViewBadges/Filters & SiblingMPI_Finalize()Reconciliation: UpdatedServerRackView::updateRankState()to re-evaluate active state and rank-subset filters with immediate layout/repaint updates, expandedDeadlockAnalyzerto scan deeplibc/libopen-pal/libucp/libfabric/libmpistacks (including Fortranmpi_finalize_) and probe running sibling ranks (SIGINT+202-stack-list-frames+ silent resume with a 50 ms post-breakpoint settle window) so peer ranks parked inMPI_Finalize()transition cleanly fromRUNtoFINALIZING, anchoredSourceCodeViewandDisassemblyViewon the user'sMPI_Finalize()call site inmain(while preserving raw leaf PC telemetry in Call Stack and the status bar), and guardedMainWindow::onRankStateChanged()so stale cached finalize frames never override fresh breakpoint stops. - OpenMP Inspector Runtime Gating on Pure MPI / Non-OpenMP Binaries: Added
OmpdSnapshot::hasOpenmpRuntime,OmpdInspector::hasOpenMpLibrary(), andOmpdInspector::detectOpenMpRuntimeForTarget()(inspecting/proc/<pid>/mapsor ELF dynamic references forlibgomp,libomp, orlibiomp5) and gatedOmpdInspector::inspectFromDebuggerThreads()on verified OpenMP runtime presence or explicit OpenMP runtime/outlined stack symbols so OpenMPI/PMIx background helper pthreads (__syscall_cancel_arch) on non-OpenMP binaries no longer synthesize a falseParallel Region #1(OMPD: libompd | 3 thread(s)), instead showing a clean"OpenMP Inspector: No OpenMP runtime detected in target"empty state inOpenMpInspectorWidgetwhile preserving genuine OpenMP region, barrier, and task inspection. - Global Left-Aligned
QComboBoxPopups & Refined Selection Highlights: Overrodeqt_material's right-offset and blocky cyanQComboBox/QComboBox QAbstractItemViewrules across all 19 dark and light themes inThemePalettes/ThemeManager(bumping QSS cache tag tov15), disabledSH_ComboBox_PopupinWorkstationProxyStyle::styleHint()to eliminate phantom left checkmark gutters, added automatic popup minimum-width expansion (Qt::ElideNone+ widest-item text metrics) inWorkstationProxyStyle::polish()/eventFilter()so labels likeRelWithDebInfoandAll Ranksnever clip, and styled dropdown rows with compact left-alignedpadding: 5px 12px,border-radius: 4px, subtleaccentSoftselection fills, and2px solid accentHexleft indicator bars. - Package Manager Explicit Submit Search & Bottom Rail Relocation: Removed live keystroke debounce hotloading from
HpcConsoleWidget(#packageSearchInput), added an explicit theme-styledSearchsubmit button (#packageSearchSubmitBtn, alongsideEnterkey submission) so typing never spawns package-manager queries mid-keystroke, relocatedPackage Managerfrom theMPI(Alt+5) bottom rail group to the last (Docs,Alt+7) vertical rail tab inMainWindowDocks/MainWindowDebugger, and updated#bottomToolWindowRailtooltips accordingly. - Struct Layout Inspector Window Chrome, Close Button & Type Autocomplete: Restored standard dialog window flags (
Qt::Dialog | Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint, non-frameless) onStructLayoutDialog, added a visible clickableClosebutton (#structLayoutCloseBtn, wired toreject()alongsideEsc), and added a theme-styled case-insensitiveQCompleter(Qt::MatchContains) on#structLayoutNameEditpopulated non-blockingly from workspacestruct/class/unionsymbols viasetAvailableTypes(). - Adversarial Parser Limits, Regex Timeout & 256-Rank Burst Backpressure: Added
kMaxMiNestingDepth = 64delimiter-depth enforcement inGdbMiParser.hpp(extractBalancedInterior,extractTopLevelMiTuples), hardenedJsonRpcFramer.hppstream resynchronization after invalid/negativeContent-Lengthheaders, added PCRE2(*LIMIT_MATCH=50000)(*LIMIT_DEPTH=256)plus elapsed timeout / nested-quantifier backtracking guards (regexTimeoutMs,timedOut) inWorkspaceReplaceEngine, added thread-safe boundedRankOutputRingBuffer(src/core/utils/RankOutputRingBuffer.hpp) capping per-rank retention under 256-rank 100,000-message floods, and added deterministicadversarial_parser_tests(tests/hpc/test_adversarial_parsers.cpp) covering 500-payload MI/DAP fuzzing, corrupted ELF/DWARF/Capstone byte streams, catastrophic regex backtracking, and concurrent 256-rank cancellation. - Mid-Run GDB Crash Recovery Without UI Freeze: Connected
QProcess::errorOccurredand abnormalQProcess::finished(plus broken FIFO pipeEPIPE/POLLHUP) across per-rank GDB workers andmpiruninGdbRankCoordinator, adding idempotentfailAllPendingCommandsForRank()andonRankProcessCrashed()to immediately reject in-flight MI callbacks (pluginMemoryChunkReady,pluginMemoryWriteDone, variable child queries, pending catchpoints/breakpoints), remove dead ranks from multi-rankStep All/Continue Allcoordination so surviving peers stay responsive, log a clear crash alert toGdbConsoleWidgetandMpiDiagnosticsWidget, clean stale/dev/shmremnants safely, and reset toolbar execution controls cleanly when all ranks exit or crash. - Legible Helper & Redirect Notes in PreferencesDialog: Upgraded
addFormNote()(PreferencesFormHelpers.hpp) and helper/subtitle/redirect labels acrossAppearanceSettingsPage,EditingBehaviorPages,DebuggerSettingsPage,HpcSettingsPages, andPluginSettingsPagefrom hardcoded8.5pt/<small>muted text to proportionalThemeManager::uiFont()sizing (>= 9.5pt/ fulluiPt), high-contrasttextHexforegrounds, and6pxtop spacing. - Active
:checkedVisual States on Build Diagnostics Filter & Raw Log Toggles: Added explicit theme-aware:checkedand:checked:hoverQSS rules inBuildDiagnosticsDockWidget::reloadStyle()(semantic error/warning accents on#buildFilterErrorsBtn/#buildFilterWarningsBtnand primary workspace accent fills on#buildFilterAllBtn/#buildToggleRawLogBtnviaThemeManager::activePalette()) and aligned:checked:hoverfeedback onFindInFilesDockWidgetandInlineFindBarfilter pills so active toggles remain unmistakable across dark and light themes. - Single Build Destination (Zero Terminal Hijacking): Routed 100% of project builds, rebuilds, cleans, reconfigures, single-file MPI compiles, and pre-launch (
Run/Debug) compilations exclusively throughBuildDiagnosticsDockWidgetinside#BottomConsoleTabs, leavingTerminalstrictly as an interactive user shell and keeping theBuildtab focused with parsed diagnostics and editor squiggles when a pre-run compile fails while transitioning automatically intoProgram Output/ debugger on success.
Full Changelog: v0.11.0...v0.12.0