fix(sandbox): Windows: a sandboxed start with a profile reaches play, its saves and the test mode's results written #2726

Open
ChloeNow wants to merge 9 commits from ChloeNow/Longshot:fix/sandbox-profile-start into mod-api
Contributor

fix(sandbox): Windows: a sandboxed start with a profile reaches play, its saves and the test mode's results written

Summary

On Windows, a game the builder confines with a launcher profile (LONGSHOT_PROFILE, as every dev.py game-tests run
has) quits before the title. Three things stop it in turn, each hidden behind the one before; this fixes all three, so
a sandboxed test run reaches play and writes its results.

  • The save folder was chosen before the game reached the builder (host/hos_main.c). The early choice runs before
    hos_sandbox_start installs the file layer, so inside the container the profile's saves folder "could not be made".
    Inside the container it is now chosen after (nn_fs.c keeps its first choice); outside it, as before.
  • A write-only open was refused (build_core::files_windows, error 5). The builder's file service checks what it
    opened (opened_ok's link check, is_dir) by reading the handle's attributes. A write-only request
    (GENERIC_WRITE: fopen "w", the save folder's write test) has no right to them, so the handle read as a link and
    was refused: "the save folder can't be used: the game cannot write there". The open is now made with
    FILE_READ_ATTRIBUTES too, and the game's copy carries it; a folder made is opened with it for the same check.
  • The test mode's results folder was not given (build_core::sandbox_windows). HOS_MOD_TESTS_OUT, where the game
    writes results.json and junit.xml (dev.py game-tests names one outside the game folder), is now written and
    made first.
  • host/save_dir.h: the save folder's write test says Windows' error, opening or writing; that error named the
    second cause above.

This ports #2726's earlier version (written for the old game-side broker) to the builder-confined design on the
squashed mod-api.

On mod-api, to see it: Windows, sandboxed (the default): dev.py game-tests of any mod. The game quits with "the
save folder can't be used: the profile's saves folder ...: the folder could not be made".

Read first: the Windows start in host/hos_main.c, then files_windows.rs' open (op 1).

Testing

Tested: Windows 11, NVIDIA GeForce RTX 4060 Laptop GPU, driver 621.24.

  • tests/test_sandbox_save_dir_early.py: the Windows start and nn_fs.c's choice, cut from the source, with stand-ins.
    On mod-api it fails with "a confined start with a profile refuses its save folder: inside 0 1 the profile's saves
    folder C:\p\saves: the folder could not be made". Here it passes.
  • build-core files_windows::tests::the_cache_takes_files_folders_renames_and_removes (mod-api's own; native
    Windows): on mod-api it fails at its first write-only open. Here it passes, with the other four.
  • build-core sandbox_windows::gather::tests::the_test_mode_s_results_folder_is_given_written (new): plan_for on a
    game in a temporary folder with HOS_MOD_TESTS_OUT set. On mod-api it fails with "HOS_MOD_TESTS_OUT (...) written:
    grants [...], roots [...]". Here it passes, with the rest of sandbox_windows (28).
  • In the game: dev.py game-tests of a probe mod, sandboxed, headless, with the builder confining the game. The
    branch was merged locally with #2747 and #2745 (the probe's folder and call); that merge was not pushed. On
    mod-api: "the folder could not be made", then (with the first fix alone) "the game cannot write there (Windows error
    5 opening a file in it)". Here: the game reaches play, the test passes, and results.json is written: 1 passed,
    exit 0.

Still to test:

  • @Beanstalk: Linux, dev.py game-tests of any mod (the builder's Linux plan, sandbox_linux.rs, may lack the
    results folder too: not changed here, as it can't be built on Windows).
The 118 checks that fail on Windows on mod-api (`eaf4a48b9`) too

test_antilag.py, test_astc_decoder_gpu.py, test_async_safe_frees.py, test_audio_output_devices.py, test_audio_source_load.py, test_auto_handheld.py, test_bc_copy_layer_pitch.py, test_builder_channel.py, test_builtin_compute_unoptimized.py, test_capture_dimensions.py, test_capture_readback_visibility.py, test_capture_resources.py, test_coopmat_probe_failures.py, test_crash_record.py, test_desc_counts.py, test_dev_ab.py, test_dev_build.py, test_dev_migrate.py, test_dev_packs.py, test_dev_update.py, test_device_policy.py, test_draw_binds.py, test_draw_stream_visibility.py, test_drs.py, test_dummy_views.py, test_dump_readback.py, test_fallback_pipeline_state.py, test_float_add_subgroup.py, test_framegen_resources.py, test_framelog_sink.py, test_fsr3_release_frees.py, test_fsr3fi_hud_mask.py, test_fsr4_bind_dispatch.py, test_fsr4_tune.py, test_fsr_image_retirement.py, test_fsr_uniform_ownership.py, test_game_menu_mouse_buttons.py, test_gcn_mesh_shared_warp.py, test_image_view_retry.py, test_import_buffer_binding.py, test_import_log.py, test_import_reach.py, test_inline_write_order.py, test_input_background.py, test_input_movie.py, test_job_queue.py, test_lifter.py, test_linux_pressure.py, test_loaded_modules_drop.py, test_longshot_builder.py, test_longshot_ctl.py, test_lost_wait_said.py, test_low_vram_texture_mips.py, test_menu_hooks.py, test_mesh_fallback_strict_fmul.py, test_mesh_first_types.py, test_pads_after_menu.py, test_parity_gates.py, test_pass_barrier.py, test_pass_hazard.py, test_pcache_header_read.py, test_pipeline_key_values.py, test_pipeline_state_portable.py, test_pipeline_states.py, test_present_probe.py, test_present_queue_default.py, test_present_sites.py, test_present_source_crop.py, test_program_answer_domains.py, test_program_cache_cleanup.py, test_program_cache_one_variant.py, test_push_state.py, test_queue_priority.py, test_recorder_own_idle.py, test_recorder_parts.py, test_recorder_sync.py, test_recording_admission.py, test_replay_write_order.py, test_reshade_fx.py, test_run_all_mingw.py, test_same_draw.py, test_same_dyn.py, test_sampler_admission.py, test_seed_reader.py, test_shader_store.py, test_sparse_bind_failure.py, test_sparse_bind_ranges.py, test_split_ub_flush.py, test_staging_burst.py, test_taau_typed_dispatch.py, test_table_track.py, test_target_layouts.py, test_target_reuse_memory.py, test_temporal_present_bandwidth.py, test_texel_buffer_ownership.py, test_texture_init_barrier.py, test_texture_staging_publication.py, test_ub_snapshot_default.py, test_ub_update_batch.py, test_ui_record.py, test_ui_texture_upload.py, test_vcore_video_acquire.py, test_vendor_fixes.py, test_vertex_bind.py, test_vertex_bind_range.py, test_video_catchup.py, test_video_hold_early.py, test_video_input_limit.py, test_vk_occlusion_queries.py, test_vulkan_clear_mip.py, test_vulkan_copy_span.py, test_vulkan_copy_span_gpu_compile.py, test_wb_diff_observations_gpu.py, test_widen_alpha.py, test_windows_on_linux.py, test_windows_stop.py, test_wmma16_zero_c_kchain.py, test_xinput_thread.py

Measurements

Nothing to measure: the start's order, one access right on the builder's opens, and one more write grant.

Risks

  • The handle the game is given carries FILE_READ_ATTRIBUTES too: a file's attributes, which any root's stat gives
    already.
  • One more folder written by the confined game: the test mode's results folder, only when HOS_MOD_TESTS_OUT names
    one. A folder at or above the player's own is refused, as any grant is.
  • A revert is enough.

Checklist

Ready for review

  • One topic, on current mod-api; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named): Windows, with #2747 and #2745 merged: 669 passed, 122 failed, 47 skipped. The same 118 fail on mod-api; test_invalidate_vcore, test_mesh_args_cleanup and test_present_semaphores pass on rerun (flaky under the full run); test_sandbox_save_dir_early failed only with #2747 merged, fixed here (952b4ec3c: a stand-in for the start #2747 adds).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

fix(sandbox): Windows: a sandboxed start with a profile reaches play, its saves and the test mode's results written ## Summary On Windows, a game the builder confines with a launcher profile (`LONGSHOT_PROFILE`, as every `dev.py game-tests` run has) quits before the title. Three things stop it in turn, each hidden behind the one before; this fixes all three, so a sandboxed test run reaches play and writes its results. - **The save folder was chosen before the game reached the builder** (`host/hos_main.c`). The early choice runs before `hos_sandbox_start` installs the file layer, so inside the container the profile's saves folder "could not be made". Inside the container it is now chosen after (`nn_fs.c` keeps its first choice); outside it, as before. - **A write-only open was refused** (`build_core::files_windows`, error 5). The builder's file service checks what it opened (`opened_ok`'s link check, `is_dir`) by reading the handle's attributes. A write-only request (`GENERIC_WRITE`: `fopen "w"`, the save folder's write test) has no right to them, so the handle read as a link and was refused: "the save folder can't be used: the game cannot write there". The open is now made with `FILE_READ_ATTRIBUTES` too, and the game's copy carries it; a folder made is opened with it for the same check. - **The test mode's results folder was not given** (`build_core::sandbox_windows`). `HOS_MOD_TESTS_OUT`, where the game writes `results.json` and `junit.xml` (dev.py game-tests names one outside the game folder), is now written and made first. - **`host/save_dir.h`**: the save folder's write test says Windows' error, opening or writing; that error named the second cause above. This ports #2726's earlier version (written for the old game-side broker) to the builder-confined design on the squashed `mod-api`. **On mod-api, to see it:** Windows, sandboxed (the default): `dev.py game-tests` of any mod. The game quits with "the save folder can't be used: the profile's saves folder ...: the folder could not be made". Read first: the Windows start in `host/hos_main.c`, then `files_windows.rs`' open (op 1). ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 4060 Laptop GPU, driver 621.24. - `tests/test_sandbox_save_dir_early.py`: the Windows start and `nn_fs.c`'s choice, cut from the source, with stand-ins. On mod-api it fails with "a confined start with a profile refuses its save folder: inside 0 1 the profile's saves folder C:\p\saves: the folder could not be made". Here it passes. - `build-core` `files_windows::tests::the_cache_takes_files_folders_renames_and_removes` (mod-api's own; native Windows): on mod-api it fails at its first write-only open. Here it passes, with the other four. - `build-core` `sandbox_windows::gather::tests::the_test_mode_s_results_folder_is_given_written` (new): `plan_for` on a game in a temporary folder with `HOS_MOD_TESTS_OUT` set. On mod-api it fails with "HOS_MOD_TESTS_OUT (...) written: grants [...], roots [...]". Here it passes, with the rest of `sandbox_windows` (28). - **In the game:** `dev.py game-tests` of a probe mod, sandboxed, headless, with the builder confining the game. The branch was merged locally with #2747 and #2745 (the probe's folder and call); that merge was not pushed. On mod-api: "the folder could not be made", then (with the first fix alone) "the game cannot write there (Windows error 5 opening a file in it)". Here: the game reaches play, the test passes, and `results.json` is written: 1 passed, exit 0. **Still to test:** - @Beanstalk: Linux, `dev.py game-tests` of any mod (the builder's Linux plan, `sandbox_linux.rs`, may lack the results folder too: not changed here, as it can't be built on Windows). <details><summary>The 118 checks that fail on Windows on mod-api (`eaf4a48b9`) too</summary> `test_antilag.py`, `test_astc_decoder_gpu.py`, `test_async_safe_frees.py`, `test_audio_output_devices.py`, `test_audio_source_load.py`, `test_auto_handheld.py`, `test_bc_copy_layer_pitch.py`, `test_builder_channel.py`, `test_builtin_compute_unoptimized.py`, `test_capture_dimensions.py`, `test_capture_readback_visibility.py`, `test_capture_resources.py`, `test_coopmat_probe_failures.py`, `test_crash_record.py`, `test_desc_counts.py`, `test_dev_ab.py`, `test_dev_build.py`, `test_dev_migrate.py`, `test_dev_packs.py`, `test_dev_update.py`, `test_device_policy.py`, `test_draw_binds.py`, `test_draw_stream_visibility.py`, `test_drs.py`, `test_dummy_views.py`, `test_dump_readback.py`, `test_fallback_pipeline_state.py`, `test_float_add_subgroup.py`, `test_framegen_resources.py`, `test_framelog_sink.py`, `test_fsr3_release_frees.py`, `test_fsr3fi_hud_mask.py`, `test_fsr4_bind_dispatch.py`, `test_fsr4_tune.py`, `test_fsr_image_retirement.py`, `test_fsr_uniform_ownership.py`, `test_game_menu_mouse_buttons.py`, `test_gcn_mesh_shared_warp.py`, `test_image_view_retry.py`, `test_import_buffer_binding.py`, `test_import_log.py`, `test_import_reach.py`, `test_inline_write_order.py`, `test_input_background.py`, `test_input_movie.py`, `test_job_queue.py`, `test_lifter.py`, `test_linux_pressure.py`, `test_loaded_modules_drop.py`, `test_longshot_builder.py`, `test_longshot_ctl.py`, `test_lost_wait_said.py`, `test_low_vram_texture_mips.py`, `test_menu_hooks.py`, `test_mesh_fallback_strict_fmul.py`, `test_mesh_first_types.py`, `test_pads_after_menu.py`, `test_parity_gates.py`, `test_pass_barrier.py`, `test_pass_hazard.py`, `test_pcache_header_read.py`, `test_pipeline_key_values.py`, `test_pipeline_state_portable.py`, `test_pipeline_states.py`, `test_present_probe.py`, `test_present_queue_default.py`, `test_present_sites.py`, `test_present_source_crop.py`, `test_program_answer_domains.py`, `test_program_cache_cleanup.py`, `test_program_cache_one_variant.py`, `test_push_state.py`, `test_queue_priority.py`, `test_recorder_own_idle.py`, `test_recorder_parts.py`, `test_recorder_sync.py`, `test_recording_admission.py`, `test_replay_write_order.py`, `test_reshade_fx.py`, `test_run_all_mingw.py`, `test_same_draw.py`, `test_same_dyn.py`, `test_sampler_admission.py`, `test_seed_reader.py`, `test_shader_store.py`, `test_sparse_bind_failure.py`, `test_sparse_bind_ranges.py`, `test_split_ub_flush.py`, `test_staging_burst.py`, `test_taau_typed_dispatch.py`, `test_table_track.py`, `test_target_layouts.py`, `test_target_reuse_memory.py`, `test_temporal_present_bandwidth.py`, `test_texel_buffer_ownership.py`, `test_texture_init_barrier.py`, `test_texture_staging_publication.py`, `test_ub_snapshot_default.py`, `test_ub_update_batch.py`, `test_ui_record.py`, `test_ui_texture_upload.py`, `test_vcore_video_acquire.py`, `test_vendor_fixes.py`, `test_vertex_bind.py`, `test_vertex_bind_range.py`, `test_video_catchup.py`, `test_video_hold_early.py`, `test_video_input_limit.py`, `test_vk_occlusion_queries.py`, `test_vulkan_clear_mip.py`, `test_vulkan_copy_span.py`, `test_vulkan_copy_span_gpu_compile.py`, `test_wb_diff_observations_gpu.py`, `test_widen_alpha.py`, `test_windows_on_linux.py`, `test_windows_stop.py`, `test_wmma16_zero_c_kchain.py`, `test_xinput_thread.py` </details> ## Measurements Nothing to measure: the start's order, one access right on the builder's opens, and one more write grant. ## Risks - **The handle the game is given carries `FILE_READ_ATTRIBUTES` too:** a file's attributes, which any root's stat gives already. - **One more folder written by the confined game:** the test mode's results folder, only when `HOS_MOD_TESTS_OUT` names one. A folder at or above the player's own is refused, as any grant is. - A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `mod-api`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named): Windows, with #2747 and #2745 merged: 669 passed, 122 failed, 47 skipped. The same 118 fail on mod-api; `test_invalidate_vcore`, `test_mesh_args_cleanup` and `test_present_semaphores` pass on rerun (flaky under the full run); `test_sandbox_save_dir_early` failed only with #2747 merged, fixed here (`952b4ec3c`: a stand-in for the start #2747 adds). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. <!-- Windows: built (the in-game run). Linux: not built here; the hos_main.c change is inside #ifdef _WIN32, save_dir.h's uses GetLastError, which host/posix provides, and the Rust is cfg(windows) or plain --> - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The sandbox block of the Windows main and nn_fs.c's save folder choice, cut and compiled with stand-ins: the folder's
check succeeds only where it can be reached (outside the container, or inside once hos_sandbox_start installed the
broker's file hooks). Fails on mod-api: the confined game's early choice, before the hooks, is refused and kept, and the
real check after the sandbox gets that refusal ("the folder could not be made").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A sandboxed start with a profile (LONGSHOT_PROFILE) quit before the title: "the save folder can't be used: the profile's
saves folder ...: the folder could not be made". main's early hos_save_dir_choose() is for the outer process, which
chooses and makes the folder before the sandbox grants it, but the confined game ran it too, before hos_sandbox_start
reached the broker and installed its file hooks. Since 0e9c78c1c the player's folders carry no ACL grant, so that call
was refused, and nn_fs.c keeps its first choice: the real check after the sandbox got the refusal back. The early call is
now made only outside the container, as user_dir_early already tells the two apart (hos_sandbox_in_container).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
"the game cannot write there" said nothing of why: the confined game's case below was a refused open, which the
message now names ("Windows error 5 opening a file in it"), for a player's report as for a developer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
host/broker_files_windows.c built with llvm-mingw's clang and run on Windows itself, serving its own process over a
write root:
- a GENERIC_WRITE, CREATE_ALWAYS open: BROKER_OK, the handle written to and its attributes readable;
- a read-write open of that file reads it back;
- a metadata open (no access, FILE_FLAG_BACKUP_SEMANTICS: Rust's std::fs::metadata): BROKER_OK, and its attributes read
  from the handle, as Windows' own such open allows (checked beside it);
- a folder made under the root (BFILE_MKDIR): BROKER_OK;
- a write-only open outside the root: still refused.

Fails on mod-api with BROKER_E_FAILED, error 5: the broker's own check of each handle it opens (FileAttributeTagInfo,
in opened_ok and is_dir_handle) needs FILE_READ_ATTRIBUTES, which a write-only handle and MKDIR's FILE_LIST_DIRECTORY one
lack, and the check's failure is taken for a link (a folder is made, then reported refused). Wine does not check a
handle's access so, which is why tests/test_broker_files_wine.py's fopen("w") and its folder pass there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A confined game could not make a file it may write, nor a folder, nor read a file's time:
- the broker checks each handle it opens (opened_ok's is_reparse, is_dir_handle: FileAttributeTagInfo) before it hands
  the game a copy, and Windows answers that only on a handle with FILE_READ_ATTRIBUTES. A write-only open (GENERIC_WRITE:
  fopen "w", the save folder's write test) and BFILE_MKDIR's FILE_LIST_DIRECTORY open have none, so the check failed, was
  taken for a link and the request refused with ERROR_ACCESS_DENIED (a folder was made first). A sandboxed start with a
  profile quit at its save folder's write test ("the game cannot write there (Windows error 5 opening a file in it)");
- an open of Windows' own with no access may have its attributes read, and Rust's std::fs::metadata reads a file's time
  from such a handle (its listing fallback is for a refused open only). The game's copy carried the request's access
  alone, so a confined game found no file's time: the Skip title screen found no saved game and kept the title screen,
  and a sandboxed test run never reached play.

The broker's own opens now ask FILE_READ_ATTRIBUTES, and the game's copy carries it with the request's access: it reads
nothing BFILE_STAT does not, which any root serves. sandbox.md says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
dev.py game-tests names a results folder of each run's own, outside the game and user folders, and a sandboxed run's
tests ran and then "NOT written to ...results.json (exit 2)": no Windows grant names it, and Linux's diagnostic_dirs
does not list it. Checks both sources, then compiles Windows' sbxw_plan over a made-up run: the folder granted written,
through the broker, nothing dropped. Fails on mod-api at its first check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
dev.py game-tests names a results folder of each run's own, outside the game and user folders, and the sandbox gave the
confined game nothing there: a sandboxed run's tests ran, then "NOT written to ...results.json (exit 2)". Windows' plan
takes it as tests_out, granted written through the broker (host/sandbox_windows.c reads HOS_MOD_TESTS_OUT); Linux's
diagnostic_dirs lists it with the other folders a switch names. Without the switch, nothing changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs(sandbox): the test mode's results folder in the grants, Windows' and Linux's
All checks were successful
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 6s
8639d7f012
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 Laptop GPU, driver 621.24: dev.py game-tests of a mod with an in-game test, sandboxed with its profile. mod-api 4266ba68: the start quit at 'the save folder can't be used ... could not be made'. This branch (8639d7f0): confined, the profile's saves used, play reached, the mod's patched event flow served, 'mod tests: ok - ...', '1 passed, 0 failed, 4 skipped: ...results.json (exit 0)', results.json written. game-tests itself still prints 'the game did not start ... before ready=present' (the control bridge cannot reach a confined game: not this PR's).

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 Laptop GPU, driver 621.24: dev.py game-tests of a mod with an in-game test, sandboxed with its profile. mod-api 4266ba68: the start quit at 'the save folder can't be used ... could not be made'. This branch (8639d7f0): confined, the profile's saves used, play reached, the mod's patched event flow served, 'mod tests: ok - ...', '1 passed, 0 failed, 4 skipped: ...results.json (exit 0)', results.json written. game-tests itself still prints 'the game did not start ... before ready=present' (the control bridge cannot reach a confined game: not this PR's).
Author
Contributor

The one thing Risks names as not fixed here (game-tests saying "the game did not start" of a sandboxed run that passed: the control bridge could not serve a confined game) is #2742. With both merged locally, a sandboxed game-tests run reports "1 passed, 0 failed, 4 skipped (in the game)", exit 0.

The one thing Risks names as not fixed here (game-tests saying "the game did not start" of a sandboxed run that passed: the control bridge could not serve a confined game) is #2742. With both merged locally, a sandboxed game-tests run reports "1 passed, 0 failed, 4 skipped (in the game)", exit 0.
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The Windows run shows the startup fix working, but two new checks hard-code GCC and can fail on supported setups that use the configured compiler. Linux results writing and a Windows launcher save-and-load run still need verification.

The change delays the confined Windows process’s save-folder selection, fixes brokered write and metadata opens, and grants test-result folders on both platforms. It addresses a demonstrated startup failure, at the cost of broader attribute access on brokered handles and an additional writable test-results grant.

Blocking (1): must change before merging.

  1. L4: It conflicts with its base branch: bring it up to date (@​fix or @​rebase try first). (for the author)

Should fix (1): not blocking, but worth doing before merging.

  • L1 tests/test_sandbox_save_dir_early.py:28: This check and test_sandbox_test_results.py hard-code GCC instead of using the compiler selected by the test runner. (more on the line) Do: Use the runner’s {cc} placeholder for both RUN_ALL_ARGS declarations and honor CC for standalone runs.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L2 host/sandbox_linux.c:479: The new Linux results-folder grant has not been exercised in a sandboxed game run. (more on the line) Do: Run a sandboxed Linux game-tests case with an in-game test and confirm its results.json and exit status.
  • L3 host/broker_files_windows.c:285: The reported Windows run does not verify saving and loading a slot through a launcher profile. (more on the line) Do: On Windows, start a sandboxed launcher profile, save a slot, restart and load it.

@fix can do L1.

More: does it help, other systems, switches, what was read

Does it help: Yes for the reported Windows test run: the base quit before play, while head reached play and wrote results with 1 passed, 0 failed and 4 skipped. Linux results writing and a launcher profile’s save/load cycle remain unverified.

Other systems: The Windows broker changes all brokered file opens, including saves and metadata reads; the reported run covers Windows 11 on NVIDIA. Linux receives a new writable sandbox grant but has no reported game run. The results grant applies only when HOS_MOD_TESTS_OUT is set.

Switches: HOS_MOD_TESTS_OUT already existed; this change grants its named folder to the sandbox. With it unset there is no new grant. No switch is added or removed.

Reviewed: 8639d7f012 against 4266ba68cc: Read the diff, commit messages, repository rules, PR template, standards, new tests, and relevant broker, sandbox-plan, save-selection and test-mode call paths. Skimmed the remaining surrounding code; did not read every changed code file in full. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • Every commit records AI assistance in a trailer.
  • The diff contains no generated files or apparent game-derived output.
  • The broker retains its root and access-policy checks before adding FILE_READ_ATTRIBUTES.
  • The reported Windows comparison reproduces the original failure on the base and reaches play on head.

Testing: No code or tests were run, as requested. The PR reports a Windows in-game run and game-free checks; Linux and launcher save/load runs remain outstanding.

Overlaps and merge order: The author identifies #2742 as a separate control-bridge fix; no merge dependency is established.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The Windows run shows the startup fix working, but two new checks hard-code GCC and can fail on supported setups that use the configured compiler. Linux results writing and a Windows launcher save-and-load run still need verification. The change delays the confined Windows process’s save-folder selection, fixes brokered write and metadata opens, and grants test-result folders on both platforms. It addresses a demonstrated startup failure, at the cost of broader attribute access on brokered handles and an additional writable test-results grant. **Blocking (1)**: must change before merging. 1. **L4**: It conflicts with its base branch: bring it up to date (`@​fix` or `@​rebase` try first). *(for the author)* **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `tests/test_sandbox_save_dir_early.py:28`: This check and test_sandbox_test_results.py hard-code GCC instead of using the compiler selected by the test runner. (more on the line) **Do:** Use the runner’s {cc} placeholder for both RUN_ALL_ARGS declarations and honor CC for standalone runs. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `host/sandbox_linux.c:479`: The new Linux results-folder grant has not been exercised in a sandboxed game run. (more on the line) **Do:** Run a sandboxed Linux game-tests case with an in-game test and confirm its results.json and exit status. - **L3** `host/broker_files_windows.c:285`: The reported Windows run does not verify saving and loading a slot through a launcher profile. (more on the line) **Do:** On Windows, start a sandboxed launcher profile, save a slot, restart and load it. `@fix` can do L1. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported Windows test run: the base quit before play, while head reached play and wrote results with 1 passed, 0 failed and 4 skipped. Linux results writing and a launcher profile’s save/load cycle remain unverified. **Other systems:** The Windows broker changes all brokered file opens, including saves and metadata reads; the reported run covers Windows 11 on NVIDIA. Linux receives a new writable sandbox grant but has no reported game run. The results grant applies only when HOS_MOD_TESTS_OUT is set. **Switches:** HOS_MOD_TESTS_OUT already existed; this change grants its named folder to the sandbox. With it unset there is no new grant. No switch is added or removed. **Reviewed:** 8639d7f01244 against 4266ba68cc0d: Read the diff, commit messages, repository rules, PR template, standards, new tests, and relevant broker, sandbox-plan, save-selection and test-mode call paths. Skimmed the remaining surrounding code; did not read every changed code file in full. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - Every commit records AI assistance in a trailer. - The diff contains no generated files or apparent game-derived output. - The broker retains its root and access-policy checks before adding FILE_READ_ATTRIBUTES. - The reported Windows comparison reproduces the original failure on the base and reaches play on head. **Testing:** No code or tests were run, as requested. The PR reports a Windows in-game run and game-free checks; Linux and launcher save/load runs remain outstanding. **Overlaps and merge order:** The author identifies #2742 as a separate control-bridge fix; no merge dependency is established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -280,0 +282,4 @@
may have its attributes read, and Rust reads them from that handle, its fallback only for a refused open; it
gives nothing BFILE_STAT does not, which any root takes) */
const DWORD access_ra = access | FILE_READ_ATTRIBUTES;
h = open_in(root, n1, access_ra, qp->share, nt_disp(qp->disp), nt_options(qp->flags), qp->flags & BFILE_ATTRS_OK, 0, &err, &info);
Member

L3 (should fix): The reported Windows run does not verify saving and loading a slot through a launcher profile.

When: A launcher profile uses the changed brokered save-folder and file-open paths; reaching play and writing test results does not exercise a complete save and reload.

Do: On Windows, start a sandboxed launcher profile, save a slot, restart and load it.

**L3** (should fix): The reported Windows run does not verify saving and loading a slot through a launcher profile. *When:* A launcher profile uses the changed brokered save-folder and file-open paths; reaching play and writing test results does not exercise a complete save and reload. **Do:** On Windows, start a sandboxed launcher profile, save a slot, restart and load it.
@ -477,2 +477,3 @@
static void diagnostic_dirs(SbxInput *in) {
static const char *const dirs[] = {"RX_VK_SHOTS", "HOS_PROFILE_DIR", "HOS_SHADER_DUMP", "RX_VK_DUMP", "RX_VK_HANG_DUMP"};
static const char *const dirs[] = {"RX_VK_SHOTS", "HOS_PROFILE_DIR", "HOS_SHADER_DUMP", "RX_VK_DUMP", "RX_VK_HANG_DUMP",
"HOS_MOD_TESTS_OUT" /* (the test mode's results: dev.py game-tests' own per run) */};
Member

L2 (should fix): The new Linux results-folder grant has not been exercised in a sandboxed game run.

When: A Linux game-tests run writes outside the game and user folders and relies on this grant to produce its results; the new check inspects the source but does not demonstrate that the sandbox permits the write.

Do: Run a sandboxed Linux game-tests case with an in-game test and confirm its results.json and exit status.

**L2** (should fix): The new Linux results-folder grant has not been exercised in a sandboxed game run. *When:* A Linux game-tests run writes outside the game and user folders and relies on this grant to produce its results; the new check inspects the source but does not demonstrate that the sandbox permits the write. **Do:** Run a sandboxed Linux game-tests case with an in-game test and confirm its results.json and exit status.
@ -0,0 +25,4 @@
sys.path.insert(0, str(Path(__file__).resolve().parent)) # (python -I leaves the check's own folder off the path)
from srccut import between, block # noqa: E402
RUN_ALL_ARGS = ["--cc", "gcc"]
Member

L1 (should fix): This check and test_sandbox_test_results.py hard-code GCC instead of using the compiler selected by the test runner.

When: On a supported Windows llvm-mingw or Linux Clang setup with CC configured but no gcc on PATH, run_all passes --cc gcc and these checks fail before testing the fixes.

Do: Use the runner’s {cc} placeholder for both RUN_ALL_ARGS declarations and honor CC for standalone runs.

**L1** (should fix): This check and test_sandbox_test_results.py hard-code GCC instead of using the compiler selected by the test runner. *When:* On a supported Windows llvm-mingw or Linux Clang setup with CC configured but no gcc on PATH, run_all passes --cc gcc and these checks fail before testing the fixes. **Do:** Use the runner’s {cc} placeholder for both RUN_ALL_ARGS declarations and honor CC for standalone runs.
Member

Tested mod-api after the squash (#2822, 9e6b9c57) on Windows 11, RTX 5080: a confined start with LONGSHOT_PROFILE reaches the builder and the AppContainer, then stops at fatal: the save folder can't be used: the profile's saves folder ...\saves: the folder could not be made, your bug 1.

Two notes for rebasing this onto the squashed mod-api:

  • host/hos_main.c: the early block's comment for user_dir_early changed there (the builder's choice inside the container, LONGSHOT_SANDBOX_USER), so the commit conflicts; your if (!hos_sandbox_in_container()) guard applies as it is.
  • host/broker_files_windows.c is gone on mod-api: the file broker is the builder's now, builder/crates/build-core/src/files_windows.rs. It looks like the same write-only-open problem: files_rules::access_map maps GENERIC_WRITE to 0x0012_0116 (no FILE_READ_ATTRIBUTES), and open_in's opened_ok calls is_reparse, which reads FileAttributeTagInfo on that handle and takes a failure as a link (ERROR_ACCESS_DENIED). Not run past bug 1 yet, so not confirmed.
Tested `mod-api` after the squash ([#2822](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2822), 9e6b9c57) on Windows 11, RTX 5080: a confined start with `LONGSHOT_PROFILE` reaches the builder and the AppContainer, then stops at `fatal: the save folder can't be used: the profile's saves folder ...\saves: the folder could not be made`, your bug 1. Two notes for rebasing this onto the squashed `mod-api`: - `host/hos_main.c`: the early block's comment for `user_dir_early` changed there (the builder's choice inside the container, `LONGSHOT_SANDBOX_USER`), so the commit conflicts; your `if (!hos_sandbox_in_container())` guard applies as it is. - `host/broker_files_windows.c` is gone on `mod-api`: the file broker is the builder's now, `builder/crates/build-core/src/files_windows.rs`. It looks like the same write-only-open problem: `files_rules::access_map` maps `GENERIC_WRITE` to `0x0012_0116` (no `FILE_READ_ATTRIBUTES`), and `open_in`'s `opened_ok` calls `is_reparse`, which reads `FileAttributeTagInfo` on that handle and takes a failure as a link (`ERROR_ACCESS_DENIED`). Not run past bug 1 yet, so not confirmed.
Member

Follow-up, checked on Windows 11 (RTX 5080) against mod-api @ eaf4a48b: your bug 2 is in the Rust broker as suspected, and it also breaks content mods in a confined game.

  • builder/crates/build-core/src/files_windows.rs's own test, files_windows::tests::the_cache_takes_files_folders_renames_and_removes, fails on mod-api on Windows (--target x86_64-pc-windows-gnullvm). First, the write-only create (op 1, GENERIC_WRITE) is refused (left: 5, right: 0). With that open given FILE_READ_ATTRIBUTES, it fails next at the folder made by op 3 (FILE_LIST_DIRECTORY | SYNCHRONIZE): the folder is made, then refused by open_in's is_reparse check.
  • With FILE_READ_ATTRIBUTES added in three places, all 5 files_windows tests pass: op 1's open (d.access | FILE_READ_ATTRIBUTES), op 1's handle given to the game (give_access), and op 3's open (FILE_LIST_DIRECTORY | FILE_READ_ATTRIBUTES | SYNCHRONIZE).
  • In the game (confined, with your save-folder fix applied), the seven-rupee example as a profile mod. Before: content: its plan cannot be kept (...modcache\content\plans\<h>.json) and its content cannot be made: ...modcache\content\<h>\patches/rows-ActorInfo.json cannot be written, then ":Rupee7" is not an item's name. After: content: 1 actor, 1 item, 1 place (its module run, made now), and its script reads its name in this game: Seven Rupee.

Leaving the port to you, since it's this PR's bug.

Follow-up, checked on Windows 11 (RTX 5080) against `mod-api` @ eaf4a48b: your bug 2 is in the Rust broker as suspected, and it also breaks content mods in a confined game. - `builder/crates/build-core/src/files_windows.rs`'s own test, `files_windows::tests::the_cache_takes_files_folders_renames_and_removes`, fails on `mod-api` on Windows (`--target x86_64-pc-windows-gnullvm`). First, the write-only create (op 1, `GENERIC_WRITE`) is refused (`left: 5, right: 0`). With that open given `FILE_READ_ATTRIBUTES`, it fails next at the folder made by op 3 (`FILE_LIST_DIRECTORY | SYNCHRONIZE`): the folder is made, then refused by `open_in`'s `is_reparse` check. - With `FILE_READ_ATTRIBUTES` added in three places, all 5 `files_windows` tests pass: op 1's open (`d.access | FILE_READ_ATTRIBUTES`), op 1's handle given to the game (`give_access`), and op 3's open (`FILE_LIST_DIRECTORY | FILE_READ_ATTRIBUTES | SYNCHRONIZE`). - In the game (confined, with your save-folder fix applied), the `seven-rupee` example as a profile mod. Before: `content: its plan cannot be kept (...modcache\content\plans\<h>.json)` and `its content cannot be made: ...modcache\content\<h>\patches/rows-ActorInfo.json cannot be written`, then `":Rupee7" is not an item's name`. After: `content: 1 actor, 1 item, 1 place (its module run, made now)`, and its script reads `its name in this game: Seven Rupee`. Leaving the port to you, since it's this PR's bug.
ChloeNow force-pushed fix/sandbox-profile-start from 8639d7f012
All checks were successful
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Title and description (pull_request_target) Successful in 6s
to 40829e9d4e
All checks were successful
PR description / Title and description (pull_request_target) Successful in 6s
2026-11-29 23:43:00 +00:00
Compare
Author
Contributor

Ported to the squashed mod-api (eaf4a48b9), where the builder confines the game. A sandboxed dev.py game-tests on Windows with a profile hit each of these in turn on the new mod-api; with this branch it reaches play and the tests pass:

  • The save folder (hos_main.c): still chosen before the builder is reached, so "the folder could not be made". Inside the container it's now chosen after. tests/test_sandbox_save_dir_early.py updated to the new start: fails on mod-api with that error, passes here.
  • The save folder's write test says Windows' error (unchanged).
  • The builder's file service (files_windows.rs, the old C broker's fix moved there): a write-only open (the save folder's write test) was refused, error 5, as its handle check needs FILE_READ_ATTRIBUTES. mod-api's own the_cache_takes_files_folders_renames_and_removes fails on native Windows at that open and passes here.
  • The test mode's results folder (HOS_MOD_TESTS_OUT) given written, now in the builder's Windows plan (plan.rs, gather.rs), test first. Linux's plan (sandbox_linux.rs) has the same gap; not here, as I can't build it on Windows.

The old C-only commits (the old broker's native test, the old plan's grant) are gone with that code. In game: Windows 11, RTX 4060 Laptop, nav-probe from a folder outside the mods folder, with #2745 and #2747: 1 passed, exit 0. The description still describes the old design; I'll rewrite it before marking ready.

Ported to the squashed mod-api (`eaf4a48b9`), where the builder confines the game. A sandboxed `dev.py game-tests` on Windows with a profile hit each of these in turn on the new mod-api; with this branch it reaches play and the tests pass: - **The save folder** (`hos_main.c`): still chosen before the builder is reached, so "the folder could not be made". Inside the container it's now chosen after. `tests/test_sandbox_save_dir_early.py` updated to the new start: fails on mod-api with that error, passes here. - **The save folder's write test** says Windows' error (unchanged). - **The builder's file service** (`files_windows.rs`, the old C broker's fix moved there): a write-only open (the save folder's write test) was refused, error 5, as its handle check needs FILE_READ_ATTRIBUTES. mod-api's own `the_cache_takes_files_folders_renames_and_removes` fails on native Windows at that open and passes here. - **The test mode's results folder** (`HOS_MOD_TESTS_OUT`) given written, now in the builder's Windows plan (`plan.rs`, `gather.rs`), test first. Linux's plan (`sandbox_linux.rs`) has the same gap; not here, as I can't build it on Windows. The old C-only commits (the old broker's native test, the old plan's grant) are gone with that code. In game: Windows 11, RTX 4060 Laptop, nav-probe from a folder outside the mods folder, with #2745 and #2747: 1 passed, exit 0. The description still describes the old design; I'll rewrite it before marking ready.
docs(sandbox): the test mode's results folder among what the builder serves written
All checks were successful
PR description / Title and description (pull_request_target) Successful in 10s
f169e07d0e
Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(sandbox): the save folder check's stand-ins take the test mode's start too
All checks were successful
PR description / Title and description (pull_request_target) Successful in 11s
952b4ec3c7
#2747 runs game_start_args inside the container after hos_sandbox_start, in the block this check
cuts from hos_main.c: with both merged, the cut called a function the stand-ins lacked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ChloeNow changed title from WIP: fix(sandbox): Windows: a sandboxed start with a profile reaches play, its saves and the test mode's results written to fix(sandbox): Windows: a sandboxed start with a profile reaches play, its saves and the test mode's results written 2026-11-30 00:22:28 +00:00
All checks were successful
PR description / Title and description (pull_request_target) Successful in 11s
This pull request has changes conflicting with the target branch.
  • builder/crates/build-compile/src/packages.rs
  • builder/crates/build-compile/src/toolchain.rs
  • builder/crates/build-core/src/files_windows.rs
  • builder/crates/build-core/src/game_layout.rs
  • builder/crates/build-core/src/sandbox_linux.rs
  • builder/crates/build-core/src/sandbox_windows/gather.rs
  • builder/crates/build-core/src/sandbox_windows/plan.rs
  • builder/crates/build-core/src/settings_folder.rs
  • builder/crates/build-driver/src/build.rs
  • builder/crates/build-driver/src/folder.rs
  • builder/crates/build-driver/src/shaders.rs
  • builder/crates/build-driver/src/sources.rs
  • builder/crates/build-driver/src/verify.rs
  • builder/crates/synthetic-game/game/host/synthetic_host.c
  • builder/crates/synthetic-game/tests/end_to_end.rs
  • docs/dev/developing.md
  • docs/dev/reference/architecture.md
  • docs/dev/reference/build-events.md
  • docs/dev/reference/build.md
  • docs/dev/reference/control-bridge.md
  • docs/dev/reference/profiles.md
  • docs/dev/reference/sandbox.md
  • docs/dev/reference/switches.md
  • docs/dev/reference/upscalers.md
  • docs/dev/setup.md
  • docs/modding/content.md
  • docs/modding/permissions.md
  • docs/modding/reference.md
  • docs/modding/scripting.md
  • docs/modding/settings.md
  • docs/user/advanced.md
  • docs/user/common-issues.md
  • docs/user/graphics-and-controls.md
  • docs/user/images/guide/README.md
  • docs/user/requirements.md
  • docs/user/updates-and-saves.md
  • game/crates/api/src/services/renderer_lines.rs
  • game/crates/api/src/services/settings_host.rs
  • game/crates/api/src/settings/decl.rs
  • game/crates/api/src/settings/mod.rs
  • game/crates/cloth/build.rs
  • game/crates/game-core/src/debug.rs
  • game/crates/game-core/src/travel.rs
  • game/crates/game-core/src/video.rs
  • game/crates/host-sys/src/settings_abi.rs
  • game/crates/host-sys/src/settings_link.rs
  • game/crates/longshot-game/src/options_store.rs
  • game/crates/longshot-game/src/perf.rs
  • game/crates/longshot-game/src/settings_file.rs
  • game/crates/longshot-game/src/settings_file/tests.rs
  • game/crates/longshot-game/src/settings_now.rs
  • game/crates/longshot-game/tests/menu_places.tsv
  • game/crates/schema/src/emit/settings_abi.rs
  • game/game.h
  • game/modapi/schema/types.toml
  • game/mods/controls/mod.toml
  • game/mods/developer/mod.toml
  • game/mods/gameplay/mod.toml
  • game/mods/graphics/mod.toml
  • game/mods/grass/Cargo.toml
  • game/mods/grass/README.md
  • game/mods/grass/mod.toml
  • game/mods/grass/src/lib.rs
  • game/mods/grass/src/tests.rs
  • game/mods/grass/test/grass.test.ts
  • game/mods/interface/mod.toml
  • game/mods/menu/src/credits.ts
  • game/mods/menu/src/layout.ts
  • game/mods/menu/strings/de.json
  • game/mods/menu/strings/es-419.json
  • game/mods/menu/strings/es.json
  • game/mods/menu/strings/fr.json
  • game/mods/menu/strings/it.json
  • game/mods/menu/strings/ja.json
  • game/mods/menu/strings/ko.json
  • game/mods/menu/strings/nl.json
  • game/mods/menu/strings/pl.json
  • game/mods/menu/strings/pt-BR.json
  • game/mods/menu/strings/ru.json
  • game/mods/menu/strings/zh-Hans.json
  • game/mods/menu/strings/zh-Hant.json
  • game/mods/menu/test/text-keys.test.ts
  • game/settings_abi.h
  • game/settings_caps.h
  • gpu/vk/menu/framegen.cpp
  • gpu/vk/menu/framegen.h
  • gpu/vk/menu/language.cpp
  • gpu/vk/menu/sim_turf.cpp
  • gpu/vk/menu/sim_turf.h
  • gpu/vk/menu/threads.cpp
  • gpu/vk/renderer_guard.h
  • gpu/vk/switches.def
  • gpu/vk/vk_api.h
  • gpu/vk/vk_dlssg.cpp
  • gpu/vk/vk_draw.cpp
  • gpu/vk/vk_framegen.cpp
  • gpu/vk/vk_menu.cpp
  • gpu/vk/vk_menu.h
  • gpu/vk/vk_menu_i18n.cpp
  • gpu/vk/vk_shader.cpp
  • gpu/vk/vk_ui.cpp
  • host/control.c
  • host/control.h
  • host/display.c
  • host/hos_main.c
  • host/nn_applet.c
  • host/nn_hid.c
  • host/nn_vi.c
  • host/options_path.c
  • host/posix/display_sdl.c
  • host/rx_backend.c
  • scripts/devtools/ab.py
  • scripts/shaders.py
  • scripts/sl_sdk.py
  • tests/test_device_policy.py
  • tests/test_fps_overlay_order.py
  • tests/test_frame_rate_cap_30.py
  • tests/test_framegen_by_row.py
  • tests/test_hos_ab.py
  • tests/test_key_press_queue.py
  • tests/test_menu_ini_keys.py
  • tests/test_menu_slider_ends.py
  • tests/test_pipeline_state_counts.py
  • tests/test_program_hooks.py
  • tests/test_stick_dead_zone.py
  • tests/test_temporal_present_bandwidth.py
  • tests/test_ui_renderer.py
  • tests/upscale_independent_test.cpp
  • website/public/schemas/mod.schema.json
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/sandbox-profile-start:ChloeNow-fix/sandbox-profile-start'
git switch 'ChloeNow-fix/sandbox-profile-start'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'mod-api'
git merge --no-ff 'ChloeNow-fix/sandbox-profile-start'
git switch 'ChloeNow-fix/sandbox-profile-start'
git rebase 'mod-api'
git switch 'mod-api'
git merge --ff-only 'ChloeNow-fix/sandbox-profile-start'
git switch 'ChloeNow-fix/sandbox-profile-start'
git rebase 'mod-api'
git switch 'mod-api'
git merge --no-ff 'ChloeNow-fix/sandbox-profile-start'
git switch 'mod-api'
git merge --squash 'ChloeNow-fix/sandbox-profile-start'
git switch 'mod-api'
git merge --ff-only 'ChloeNow-fix/sandbox-profile-start'
git switch 'mod-api'
git merge 'ChloeNow-fix/sandbox-profile-start'
git push origin 'mod-api'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2726
No description provided.