Repository navigation
Format the code base, fix GUI labels and layout, prepare 1.1.0 - #29
Merged
Merged
Conversation
Apply .clang-format to 263 more files and fix what cpplint then reports, so that changing one of them no longer fails Lint Code Base. Together with the 21 files formatted earlier, 284 of the 325 project C++ files now follow the style. Beyond whitespace and wrapping, cpplint needed: - header guards renamed to the names derived from the path under include/ (87 headers); - single-argument constructors marked explicit (42); - missing standard headers added where a symbol was used without its header (55 includes); - same-directory header includes written with their bolt/... path; - project headers included with quotes in three tests; - static_cast / reinterpret_cast instead of C-style casts; - "} else" joined where a comment sat between the brace and the else; - snprintf instead of strcpy in one example; - NOLINT on using-directives in demo programs, on one deliberate include of a .cpp file, and on three uses of long that match an external API or a public signature. No behaviour changes are intended. 41 files are left unformatted on purpose. Each contains duplicated blocks that the linter's copy/paste detector rejects whenever the file is touched, so they need refactoring before they can be reformatted: demo_external_lsp.cpp demo_gpu_acceleration.cpp demo_lsp_editor_integration.cpp demo_lsp_integration.cpp demo_multi_cursor.cpp test_benchmark_suite.cpp test_gpu_simple.cpp test_gpu_standalone.cpp test_performance_profiler.cpp include/bolt/ai/ai_code_generator.hpp include/bolt/ai/ai_refactoring_engine.hpp include/bolt/collaboration/collaboration_protocol.hpp include/bolt/collaboration/collaborative_session.hpp include/bolt/core/code_analyzer.hpp include/bolt/core/editor_store.hpp include/bolt/drawkern/ai_integration.hpp include/bolt/drawkern/drawkern.hpp include/bolt/editor/command_history.hpp include/bolt/gui/widgets.hpp include/bolt/test_framework.hpp include/bolt/utils/tensor_utils.hpp src/bolt/ai/ai_code_generator.cpp src/bolt/ai/enhanced_ai_manager.cpp src/bolt/ai/koboldcpp_provider.cpp src/bolt/ai/rwkv_wrapper.cpp src/bolt/ai/unified_rag_manager.cpp src/bolt/core/plugin_system.cpp src/bolt/drawkern/ai_integration.cpp src/bolt/drawkern/yacc_grammar.cpp src/bolt/editor/debugger_interface.cpp src/bolt/editor/editor_pane.cpp src/bolt/editor/lsp_editor_bridge.cpp src/bolt/editor/split_view_manager.cpp src/bolt/editor/syntax_highlighter.cpp src/bolt/editor/tab_bar.cpp src/bolt/gui/widget_registration.cpp src/bolt/lsp/lsp_client.cpp src/bolt/network/network_buffer.cpp test/test_bpe_tokenizer.cpp test/test_model_loader.cpp test/test_plugin_system.cpp Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
The GUI draws text with ImGui's built-in font, which only has Latin-1 glyphs, so every emoji and bullet in a label was drawn as '?'. Its three panels also opened at the same default position, on top of each other. - Remove emoji and bullets from the strings the GUI draws (window titles, buttons, status text, chat and help messages). Messages that go to the terminal keep theirs. - Text that reaches the GUI from elsewhere (AI replies, logged messages) goes through ToDisplayText, which maps common typographic characters to ASCII and drops what the font cannot draw. - Give Project Files, Code Editor, AI Assistant, Console Log and the two settings windows a default position and size on first use. Positions saved in imgui.ini still win. - Status bar: use a slim window padding so its text is not pushed below the bottom edge. - Console colouring matched on the removed emoji markers; match on "Error" / "Failed" instead. - LSP completion and diagnostic icons become one-letter tags, and the widget demo's emoji tab icons are dropped. Checked by screenshot under a virtual display. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
The actionlint bundled with the Lint Code Base image predates the macos-15 and macos-15-intel runner images and reports them as unknown labels, which fails the lint check on any change to e2e-ci.yml or release.yml. List them in the linter's configuration. No check is turned off. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
A v1.0.0 release already exists, built from the code before the build and runtime repairs. Bump the project to 1.1.0 for the next release: CMake project version, vcpkg manifest, Windows version resource and the MSIX manifest. The shared library version now follows the project version instead of a second hard-coded number, and the GUI's About window shows the version it was built with. Release notes template: list the RPM, add its install command, and drop the macOS installation steps while macOS builds are unavailable. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
The RPM packaging workflow builds on Fedora, whose newer libstdc++ no longer pulls <cstdint> in through other headers, and the build stopped at include/bolt/core/error_handling.hpp: 'SIZE_MAX' was not declared. Add the include there and in the 18 other formatted files that use SIZE_MAX or the intN_t / uintN_t names without including it themselves. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
Copilot stopped work on behalf of
drzo due to an error
November 19, 2026 08:17
- widget_framework.cpp and websocket_server.cpp: <cstdint> had been added
inside a conditional include block, so the Fedora build still failed
with "'uintptr_t' does not name a type". Include it unconditionally.
- Raw string literals that hold sample C++ source: the linter's
clang-format sorts #include lines inside them, which other builds of
the same version do not, and reported 13 lines. Mark those literals
clang-format off so no build rewrites their contents.
- File-tree tests used fixed directories under /tmp. The same tests are
built into two test programs that CTest runs in parallel, and one run
deleted the other's files ("cannot remove all: No such file or
directory", seen once on Linux gcc Release). Give each process its own
directory.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
None of the three had ever produced a package; dry runs showed why.
Debian and APT:
- The control file's Description continuation lines had no leading
space, so dpkg-deb rejected it ("field name 'Bolt' must be followed
by colon").
- Both workflows carried the same 110-line inline script. It is now
scripts/build-deb.sh, which can also be run locally.
- If the build produced no binary the old script packaged a two-line
shell script named bolt instead. The new one fails.
- Dependencies are taken from what the binaries link (dpkg-shlibdeps)
instead of a fixed list.
- The matrix named Ubuntu 22.04 and 24.04 but every job ran on
ubuntu-latest and wrote the same file name. Each job now runs on its
own release and names its package after it.
- The version came from "git describe", which gives a bare commit hash
outside a tag. Use the tag, or the project version plus the commit.
- Each job installs its package with apt, runs bolt from it and removes
it again.
- The APT workflow attaches a repository archive to the release rather
than a second copy of the .deb.
RPM:
- Same version and placeholder-binary fixes; the built package is
installed with dnf and bolt is run from it.
All four release-upload steps move from softprops/action-gh-release@v1,
which targets a Node version runners no longer provide, to v2.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
There was a problem hiding this comment.
🟡 Changes recommended
The Windows header order introduces conflicting legacy Winsock declarations and redefinition errors in MinGW builds without WIN32_LEAN_AND_MEAN; winsock2.h must precede windows.h and be exempted from automatic include sorting.
1 open issue
Review effort: Balanced
Include sorting had put <windows.h> before <winsock2.h> in network_commands.hpp and styx_protocol.cpp. Without WIN32_LEAN_AND_MEAN, windows.h pulls in the Winsock 1 declarations and winsock2.h then conflicts with them. Restore the order and mark the block clang-format off so it stays that way. Reported by the Copilot review on the pull request. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
The RPM build now compiles and failed at packaging instead: rpmbuild's
check-rpaths rejects the absolute /usr/local/lib entry in every binary
("contains an invalid runpath"). The entry is not needed, since
$ORIGIN/../lib already covers an install under /usr/local.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
Both MinGW jobs began failing at package installation with "target not found: mingw-w64-x86_64-glfw". MSYS2 has removed glfw and most other libraries from the legacy MINGW64 repository (its package index now lists 1,157 packages against 3,975 in UCRT64). Switch the jobs to UCRT64, the environment MSYS2 maintains, where every package this build uses is available. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011vmiZ7F3rQu7dith9sQw71
This was referenced Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Follow-up to #27 and #28. Four separate commits:
Lint Code Base.macos-15runner labels.Type of Change
Related Issues
Related to #27 and #28
Changes Made
Formatting (263 more files; 284 of 325 project C++ files now follow the style)
clang-formatapplied; about 12,700 changed lines, almost all whitespace and wrapping.include/(87 headers);explicit(42);bolt/...path;static_cast/reinterpret_castinstead of C-style casts;} elsejoined where a comment sat between the brace and theelse;snprintfinstead ofstrcpyin one example;NOLINTonusing namespacelines in demo programs, on one deliberate include of a.cppfile, and on three uses oflongthat match an external API or a public signature.GUI
?. Those characters are removed from the strings the GUI draws; terminal output keeps them.imgui.inistill win.Workflow linter
.github/linters/actionlint.ymllists themacos-15andmacos-15-intelrunner labels, which the bundledactionlintpredates. No check is turned off.Version 1.1.0
Testing
Locally on Linux (GCC): 98/98 CTest tests;
scripts/smoke_test.shpasses including the GUI programs and model inference;bolt --versionprintsbolt 1.1.0. The GUI was checked by screenshot under a virtual display: labels render, the three panels sit side by side, the status bar is readable. clang-format 15.0.7, cpplint 1.6.1 and jscpd 3.5.3 (the linter image's versions) report nothing on the changed files.CI results will be added here once the runs finish.
Reviewer Notes
src/bolt/editor/code_folding_state.cpp). They were formatted and lint-fixed like the rest, but the compiler never checks them.Generated by Claude Code