* reload personal config when imported .js files change
* watch and load the same config file kinds
the watcher skipped foo.d.js, foo.d.mjs, and foo.d.json because it treated
every .d stem as a declaration file, while the loader ran any file imported
by its exact name as javascript even though edits to it never reloaded.
both now use one predicate: ts, js, mjs, mts, and json in any case, excluding
only .d.ts and .d.mts declarations. the loader refuses other extensions when
a config imports them.
* fix(meetings): withdraw the left-the-call notice when the call comes back
when an automatic stop under labs › stop when the call ends was pending and
the call came back — the page named the recorded meet code again, the call
app returned to the mic/output, or the lab was turned off mid-count — the
stop was dropped silently but the notice stayed up, kept hiding the recording
capsule, and still claimed a stop was coming. now a CallEndedWithdrawn event
closes that notice and brings the capsule back.
Refs #1775
* fix(meetings): keep the notice while another automatic stop still counts
* windows: keep opening the microphone when its default format can't be read (#1845)
A device that reports no default format was abandoned before the direct
WASAPI paths and the formats it lists were tried, which is the one failure
the Windows default-input handle hits and a named device does not: cpal
activates it through ActivateAudioInterfaceAsync rather than the endpoint.
Try those paths instead of returning, build the alternative formats from
the ranges alone (48 kHz, else 44.1 kHz, else the range's top) when there
is no default to match, and keep the read error, with the driver's reason,
for the message. The open thread, startup, and saved-microphone retries
render causes with {error:#}, and a released microphone that will not open
is logged where it used to fail silently.
* windows: name the ordered fallbacks for a microphone with no default format (#1845)
Review fixes: the Windows tree row lists Hex's own WASAPI paths before the
formats the device lists, matching the code; the module doc says a device
with no readable default format still tries them; and listing a device's
formats logs its cause like every other path.
* Add Labs › Upcoming meetings in menu bar
The macOS status menu lists the next calendar meetings while the lab is on:
up to five meetings from the same filtered EventKit read the meeting
reminders already make, each its local start-end time and title with "Now · "
while in progress, and a Join row for a recognized call link that opens it
and never starts a recording. A meeting without a link is informational.
The reminder poll publishes its meeting list into a bounded snapshot
(calendar_menu) and the status item only formats it on the main thread, on
the same 500 ms tick as the meeting state; with the lab off the menu and the
controller are unchanged. Off by default, macOS only, in the Meetings Labs
group, with the labs catalog card, gate, hex settings key, translations, and
site/src/labs.json.
* Share the menu's local clock with the meeting query time
* Return objc2 Bool from the status menu validator's early exit
* Fix the calendar menu's read gate, titling side effect, and copy
The menu asked the controller to read EventKit whenever the lab was on,
even with no calendar connected, and a menu-only read overwrote the
titling/reminder list, so detected calls were named from the calendar
with reminders off. The read now needs the lab and a connected calendar,
and only feeds the titling list while reminders are active; the menu
snapshot owns the menu-only read. Turning reminders back on forces one
fresh read instead of waiting out the minute.
Menu click now goes through the reminder's ControllerCommand::JoinMeeting
so it opens the link and marks the occurrence answered, and the rows carry
the meeting rather than only its URL. Rows starting on a later local day
read "Tomorrow" or their short weekday, from iso_local's date part. The
Upcoming strings move to the menu translation table, with Now · {},
Tomorrow, and short weekdays translated.
Clearing an empty snapshot takes no write lock, and refresh_upcoming no
longer holds the links RefCell borrow across AppKit calls. The summary
copy no longer claims a Join item or that no recording starts at all.
* Make the menu's join suppress that occurrence's reminder
The menu reused the reminder capsule's Join command, whose answered()
only clears the reminder on screen. Joining from the menu before the lead
time still let the reminder pop, and joining while it showed forgot it
without withdrawing the capsule.
Add ControllerCommand::JoinFromMenu and ReminderScheduler::joined_elsewhere:
it records the occurrence as reminded so it never pops, and returns the
occurrence when its reminder is showing so the controller sends
ReminderWithdrawn. The reminder capsule's Join path is unchanged. Menus
open the link and still never record.
Also inject the date in the row tests so they pass in any time zone, force
the menu's first read when the lab comes on, read the lab atomic first in
section(), and name the watcher tests for what they cover.
* labs: choose the screenshots folder from its card
Labs › Screenshots' Saves to row was read-only text naming the folder's
last part. It now reads the folder in full with the home folder as `~`, on
a Secondary button that opens the one native folder chooser (the seam Labs
› Import audio uses) at the folder in use, with Reveal beside it opening
that folder (making it first, as a save would). A pick is written to
screenshots.folder at once, so it applies live to the next shot or
recording; a cancel changes nothing, and a click while a chooser is open
opens no second one.
A chooser that couldn't open, or the last save that failed
("Couldn't save to ~/…: <why>"), reads as a danger note under the row.
The screenshots module keeps that failure bounded at 300 characters and
clears it when a save works or another folder is chosen.
The folder label is one shared `controls::folder_label` now, used by
Annotate's and Meetings' folder rows too.
Closes#1836
* labs: keep the screenshots save error with the folder that failed
Review fixes for the screenshots folder card:
- `screenshots::save_error` keeps the folder the save meant with the
reason, so a folder changed since through `hex settings` or
`settings.json` can't make the note name the wrong one.
- The editor's Save records a failed shot PNG or trimmed recording movie
into the screenshots folder, and clears the note when it works, so the
docs' "cleared when a later save works" covers every save into it.
- `take` clears the note as soon as the write succeeds, before the
clipboard copy, so a clipboard failure can't resurrect a stale note.
- Reveal takes `&mut Ui` and puts a failed `create_dir_all` on the card,
as Meetings' and Annotate's folder hosts do.
- `apply_chosen_folder` only clears the note and reports a change once
`ui.update` saved the pick; a refused settings save reads as the card's
danger note instead.
- The test records a failure into an older folder and checks the note
names it (not the current setting), then that a pick clears it, with the
process-wide error reset before and after.
Also: the file dialog's `Target::Folder` doc names its callers, the new
Japanese string uses フォルダー like the rest of the table, and the docs
say a visible window's 250 ms tick carries a background save failure, so
no extra wake is kept.
* labs: redraw the screenshots card when a save fails
A window's poll that returns false runs again on the next tick but leaves
the frame alone, so a save that failed on its own thread never showed its
note. `screenshots::save_error_generation` counts each recorded or cleared
save error, `FolderChoice` keeps the count it last drew, and the card's
poll reports the difference, so the visible window's 250 ms tick draws it.
`apply_chosen_folder` returns true for a pick whether or not the settings
save worked: the card changes either way (the new label or the danger
note). The test now settles the window after recording the error and
after the pick, so only the poll can make the note appear and disappear.
* use OpenCode's default model for meeting summaries
Meeting titles, summaries, and live chapters with no meetings.opencode_model
post one request with no model field, so OpenCode answers with its own default
and the transcript never reaches a provider the person didn't pick. The ranked
fast models stay for dictation rewrites and voice prompts.
The summary model picker's automatic entry and its invalid-value note say so,
with translations, and the meeting docs follow.
Move the one-shot generation transport into dictation/processor/generation.rs
to keep processor.rs under the 1,500-line cap.
* docs: cover OpenCode's default model in notes and rewrites
The meeting notes footer list now names the case with no chosen summary
model: "Written by OpenCode's default model" (#1125).
The dictation map carries the #1123 fallback the meeting map no longer
describes: the ranked rewrite models are cached per service, any one failing
drops the cache, and when all of them fail OpenCode's default answers.
GENERATE_ENDPOINTS stays inside its module; nothing outside it names the
routes.
* Bump Rune to 1899e64: overlays pace frames with the swap chain on Windows
Windows HUD memory grew and the app could hang after dictation because the
overlay presented frames without waiting for swap chain room after Rune #844;
Rune #985 makes an overlay's frames wait for room in its swap chain, as a
window's do.
nix: vendor each Cargo source in its own directory. Rune's tiny-skia-path is a
path dependency inside Rune (a Git crate at 0.11.4 here), the same name and
version as resvg's from crates.io, and cargo's directory source keys a crate by
name and version alone.
Goldens: Rune's text drawing changed over the 152 commits since d6715352.
* Review: patch accesskit_macos, and make the nix vendor split name what breaks
Rune #975 put accesskit_macos in its [patch.crates-io], so Hex patches it too
(Rune's README asks consumers to); it is the fifth and last crate Rune patches.
The vendor script override now checks each fragment it rewrites and names the
missing one, its comment says crates.io goes to registry/ and Git sources to
git/, nixfmt formats the file, and check-nix-git-pins.py's docstring says the
hashes reach importCargoLock through the cargoDeps override.
* linux: keep Hex running when the window can't start
Rune r399 makes App::run print a startup error and exit 1 on native targets
instead of panicking, so a Linux Hex with no display died, the next launch
became a fresh instance, and Check Linux's single-instance exercise saw
`hex start` hang and `hex app --hidden` reset.
run_app now returns Rune's try_run error and run_window reports it and waits,
as it did for the panic (#979).
* macos, windows: take rune's startup error instead of exiting
Rune r399 prints a startup error and exits the process from `run` on
native targets, which skipped Hex's own stop: macOS's drain (workers,
event-log flush, a recording kept for the next launch) and Windows' GPU
draw-marker disarm, so the launch that failed before drawing was read as
a crash while drawing. Both apps take `try_run`'s error now, log it, and
stop the way Quit does; Windows also reports it from `hex app`. The
Linux window already took the error (#979).
* macos: a launch whose window never started exits 1
Taking Rune's try_run error lets the app stop through the drain, but
process_exit::finish ends with _exit(0), so a failed GUI launch reported
success. finish_with takes the code; the window's failure exits 1 while a
normal quit keeps 0.
* docs: overlays wait for swap-chain room on windows since rune #985
Rune #985 makes every overlay's frames wait for room in its swap chain, so
the notes that said only a window waits and that the HUD's 60 Hz timer worked
around a suspected cause were stale. The timer is a cap on top of the slot
wait now. The macOS and Windows startup-error comments cited #979, which is
the Linux window issue; they describe Rune r399 instead.
* windows: a failed start keeps the GPU draw marker
disarm() means a frame reached the screen or Hex quit cleanly; a start that
never drew is neither, so it keeps the marker and the next launch falls back to
the high-performance GPU.
* docs: say what was measured about overlay pacing
* docs: say what stays bounded on windows, not what shrinks
The meetings map and the dictation map described the fix as memory that no
longer grows, and as Rune holding a frame's slot and skipping it. Rune #985
defers the frame until its swap chain has room, then draws it, which bounds
the frames in flight; the growth itself hasn't been re-measured on Windows
with the fix.
* fix(windows): pace the dictation HUD to one frame per display frame
On Windows the overlay had no swap-chain wait or display link pacing it, so
while the HUD animated Rune polled the loop and presented at CPU speed. Each
in-flight frame held staging buffers and D3D12 allocators, so memory climbed
while recording, and hiding the HUD waited on the backed-up present queue.
The HUD now reports not display-paced on Windows and asks for the next frame
through its overlay poll (~60 Hz), and steps its model by wall time between
drawn frames.
Refs #1796, #1793.
* fix(labs): make the website catalog the same on every platform
The Special keys lab's in-app description names the keys its own OS has, and
the website catalog used that description, so `site/src/labs.json` was
generated differently on Windows than on macOS and Linux.
Its freshness test also compared the checked-out file byte for byte, and
Windows checks text files out with CRLF (`core.autocrlf`), so it read a clean
file as stale. It compares lines now, and names the first line that differs.
The website lists one summary that says what each OS has, and
`site/src/labs.json` is regenerated from it.
* fix(windows): meters don't force HUD frames while its timer paces it
A meter arrives with each audio chunk, about 100 a second, and `update` asked
Rune for a frame for every one, so recording still presented at the
microphone's pace rather than the HUD timer's. Meters now go through
`update_if` and draw only while the HUD's timer isn't running; the view reads
no loudness, so the timer's next frame shows the level.
Reword the pacing notes: the HUD is on a fixed ~60 Hz timer, not the display's
refresh, and the staging-chunk/allocator retention and hide stall are
suspected causes, not measured ones. Fix the labs note to say `summary` is one
string on every OS (only `description` has Windows keys), document the Windows
pacing and its proof limit, and replace the two trivial pacing tests with the
start/meter ordering.
* fix(windows): stop the HUD timer when nothing draws
Windows' poll armed its next frame from Hex's `animating && shown`, and
`animating` only clears when a frame renders. A show Rune never draws (it
fails, or Hex's flag says shown while Rune has no window) left both flags set,
so the poll asked for another ~60 Hz frame forever, including with Hex idle:
Rune runs a poll at its deadline even while the overlay is hidden.
The poll now arms only while the HUD moves on screen and `last_drawn` is
within `RESHOW_AFTER`, so a reference nothing refreshes ages out and the timer
stops. `Hud` carries `armed`; a meter draws (`update_if` true) only when the
timer isn't armed, still handling the event, and the frame it draws lets the
next poll arm the timer again. A start sets `last_drawn`, which arms the first
frame after its show.
`last_drawn` stays the watchdog's clock; the model's step uses a new
`stepped_at`, set only by a frame that steps it and cleared by `hide` and
`fade_out`, so a show doesn't step by its own latency. The Windows pacing
moves to `rune_hud/windows_pacing.rs`.
Labs' special-keys summary now names the keys its own OS has, with the Windows
sentence translated, and the website keeps its platform-neutral line.
* fix(windows): a HUD frame drawn since the last poll keeps its timer
Rune runs the overlay poll before the compositor renders, so a poll sees the
previous frame's draw. If the loop stalled for RESHOW_AFTER or more, the next
poll read `last_drawn` as stale and disarmed on the frame that had just drawn;
Transcribing, Completed and Failed send no meters, so the HUD froze on screen
and never reached its fade out.
`polled_at` records when the last poll ran, and the timer now arms when a frame
drew after it as well as when `last_drawn` is within RESHOW_AFTER. A failed
show still stops: its start arms once, and the 250 ms budget then ages out. A
hide clears the poll stamp with the rest.
Also word the `armed` field as the last poll's answer, test both per-OS
special-keys summaries against every translation table on every OS, and note
that Windows tests run only in the dispatched Check Windows workflow.
dictate without processing and paste last dictation are not filtered at
runtime the way the lab shortcuts' active_* accessors are, so a saved one on
the dictation chord started both. the base-aware save merge could also land
the dictation shortcut on a saved one, and a load-time repair could reset
dictation onto one.
clear those two on load and on the merged settings before a save. the load
clear is a repair, so the file keeps its bytes until the next save.
* labs: card titles, lines and OSes in the registry, exported to site/src/labs.json (t1560)
* site: a page and a social card for every lab, generated from the registry (t1560)
* labs: the two newest labs on the website (t1560)
* Float the application picker over the cards and close it on a pick, a click outside, or Escape (t1558)
* Update the Modes picker goldens and picker tests (t1558)
Windows and Linux asked "Open Hex when your Mac starts?" and had Hex
napping "in your menu bar". The ask's copy now follows `Home`: macOS
keeps its Mac and menu bar, Windows says computer and system tray, Linux
says computer and in the background. The new strings are translated in
every language, and a headless test checks all three platforms.
* labs: clean up dictations with apple intelligence (#1810)
Adds Labs › Clean up with Apple Intelligence, off by default and macOS only:
one short on-device Foundation Models pass over each dictation whose mode does
not already rewrite with OpenCode. The instructions and the guard are the iOS
cleaner's, so both apps accept and refuse the same answers. An unavailable
model, timeout, refusal, guardrail block, or an answer the guard refuses all
paste the corrected transcript; the stage's own observation records the
reason in History and the live log. Raw dictations never reach it.
* labs: address cleanup review
- read the lab switch (and the caller's cancellation flag) before Apple
Intelligence's availability, so a lab-off or cancelled dictation never
touches Foundation Models.
- keep the managed row the Labs registry builds, so an organization's lock
still disables the card; a test forces the lock on its own thread.
- count CJK numerals as digits, matching Character.isNumber.
- keep dictated quotes and the transcript's own spacing when tidying an
answer.
- docs: the real worker name, the local API's processed route, the 2 s
budget, and the guard's scalar-versus-grapheme counting.
* labs: keep the cleanup lock test to linux
The panes tests render on Linux only, so the forced-policy seam has no
users on macOS and failed the macOS check's -D warnings.
* labs: regenerate the mac labs goldens with the cleanup row
* labs: keep the cleanup card inside the labs file cap
* Shortcut rows: a quiet Reset, ⌫ turns a shortcut off, and Restore shortcut default graduates (t1548)
* Goldens: no Clear icon on shortcut rows, one fewer lab (t1548)
* Gate the icon button to macOS, its only remaining user (t1548)
* fix: keep quiet dictation above the room's noise floor (#1807)
* fix: require detector confirmation for quiet dictation, contiguous run
* fix: bridge one quiet window per gap in the quiet-dictation run
* fix(meetings): pass pw-cat's --raw only where PipeWire knows it
`--raw` only exists from PipeWire 1.3.81 on. 1.2 and older reject it as an
unknown option and exit before doing anything, so meetings recorded the
microphone alone and the Hex Microphone source never started. Since 1.4
`-` also means a WAV file unless `--raw` is passed, so the flag cannot just
be dropped: probe `pw-cat --help` once per process and pass it only where
the usage lists it, keeping it when the probe cannot run.
Also stop resetting a meeting source's backoff on every successful open: a
source that dies right after each spawn now keeps backing off instead of
respawning and logging twice a second forever.
* fix(linux): test pw-cat's real help and trust only a successful probe
The fixtures are now the exact `pw-cat --help` output of 1.0.5 and 1.4.0
(show_usage with its format args filled in, from a build without
-Dpw-cat-ffmpeg as Arch and Ubuntu build it), not an excerpt, so the
option the probe looks for is checked against the text it really prints.
The probe also asks for the untranslated usage with LC_ALL=C, and keeps
--raw when the help process starts but exits non-success, as its comment
already claimed.
* windows: follow the focused window's layout and ignore hex's own windows for keyboard model switching
* windows: skip a window that closed mid-read; log keyboard source changes at info
Adds Labs › Smaller model files (k-quant-models, labs.k_quant_models, off by
default, macOS only). While on, an imported speech model may use Q6_K, Q5_K,
and Q4_K weights beside F32, F16, and Q8_0: Metal has their mul_mat and
get_rows kernels, while the Linux and Windows Vulkan builds embed shaders
only for the catalog's types and would abort, so the lab is not listed there.
The tensor-type decision is passed into the header check
(gguf_header::TensorTypes) instead of read inside it, and the import's
manifest records `k_quants` (serde default false, so older manifests load).
That lets the selection gate a K-quant import exactly as Parakeet Ultra is
gated: its availability folds in the lab, the listener falls back with
FallbackReason::LabsOff and keeps the saved choice, and `hex model use`
refuses it by name.
The header check now also sizes the K-quant tensors from ggml's block sizes
(256 values in 144, 176, and 210 bytes), so a cut-short file is refused and
the GPU-memory estimate counts them, and a found file's compression reads
Q6_K/Q5_K/Q4_K instead of F32.
Off, every OS keeps the F32, F16, and Q8_0 rule and its message byte for
byte.
* fix(meetings): end a browser recording when its page names another call (#1775)
* fix(meetings): tighten the browser call switch after review
* fix(meetings): drop an armed call-switch stop when the lab turns off
* fix(cli): transcribe long files in pieces (#1769)
* fix(cli): skip silent pieces and refuse truncated files up front
* fix(cli): unique test files, honest read refusals, no detector download
* fix(ui): translate onboarding and the menu bar, wrap meeting retention, fit Labs' unload menu, and show only Reopen when the shortcut fails (t1548)
* test(ui): regenerate goldens for the onboarding, meetings and reopen changes (t1548)
* fix(i18n): build english() only on macOS, its one caller (t1548)
* test(ui): regenerate goldens after rebasing onto dev (t1548)
* feat(meetings): minimal floating meeting panel with copy new, copy all and agent prompt (t1508)
* test(meetings): upload the meeting capsule renders that miss their goldens (t1508)
* test(meetings): regenerate the finished meeting panel goldens (t1508)
* Sound volume is a slider (t1489)
* Keep the slider test's presses on the track (t1489)
* Drop the slider test's ambiguous a11y lookup (t1489)
* Show the sound volume slider inline in its row (t1489)
* Describe the sound volume slider in the feature map (t1489)
* Keep the slider test's presses on the narrower track (t1489)
* feat(captures): list Annotate's annotations and replays in the Captures pane (t1509)
* test(captures): goldens with an annotation row (t1509)
* goldens: the Captures pane's annotation row on the new Rune
* Bring Hex back after a System Settings grant and stop the early microphone prompt (t1547)
* Keep tones silent on an output that also records until the microphone is asked for (t1547)
* Annotate: route Ghostty captures by the terminal's OpenCode session and folder
* fix(capture): build the argv parser only where it's used (t1451)
* fix(capture): a TUI that moved off its command line's session names none (t1509)
* feat(labs): let listed browser origins call the local API
A web page from an http(s) origin listed in Labs › Browser access to the
local API can call Hex's authenticated loopback API with fetch. Its
unauthenticated CORS preflight is answered 204 for that exact origin, and
every response — 401, 404, and SSE streams included — carries that origin
and Vary: Origin. Requests still need the bearer token; nothing allows
credentials or *. Off, a missing Origin, or an origin not listed answers
exactly as before.
Origins save as scheme://host[:port] only: *, null, paths, queries,
fragments, and userinfo are dropped, a trailing / and a default port are
normalized away, and the scheme and host are lowercased.
* fix(local_api): refuse CORS for a duplicate Origin without rejecting it
A request with two Origin headers is routed exactly as before this lab
existed (401 unauthenticated, 200 authenticated) but never earns CORS
headers. The Labs origins field keeps exactly what was typed through its
own debounced save, so a port or trailing comma is never rewritten under
the caret. Docs name the pre-request errors that carry no CORS headers and
how IPv6 and non-ASCII origins are written.
* fix(macos): pause Helium with the other browsers
Helium (net.imput.helium) was missing from the browsers microphone
activity knows, so Also pause the browser never heard it and its
dictation pause went to whatever macOS had as Now Playing.
Add it to the browser list, its helper prefix (Chromium's audio service
reports net.imput.helium.helper), its Linux and Windows executables
(helium, helium-browser), and its display name. Meeting detection's
browser name matching and the feature maps learn it too.
* fix: finish Helium's browser recognition
Windows' BROWSER_STEMS missed helium, so its focused page was never read
through UI Automation and website modes saw no host. The browser tab-title
suffixes meeting detection strips missed " - Helium" too, so a Meet tab's
code was not extracted from a Helium title.
Add both, with the existing browser-stem and Meet-title tests extended.
* fix(settings): merge edits through one persistence owner (t1533)
* fix(modes): focus the adopted correction without duplicating it (t1533)
* fix(settings): publish reversions even before the host saw the save (t1533)
* fix(dictation): share processing and retain stop-time context (t1534)
* fix(dictation): keep queued jobs small and pass platform checks (t1534)
* fix(dictation): unpack queued job before moving its fields (t1534)
* fix(linux): say when live typing and live text can't show words
Live typing's Labs card now asks the Wayland registry once at window load;
without zwp_input_method_manager_v2 (GNOME) it stays listed, disabled while
off, with a note that this desktop offers no input method it needs and
dictations paste normally. `hex labs` prints the same note in its list and
after `hex labs on live-typing`, without refusing the toggle.
Live text's card names the catalog's streaming models when the selected
model can't stream, and on Linux says when Speech engine is set to CPU. A
capture that wanted live words but opened no stream logs why once per
capture, and a stream begun on a model that can't stream says so instead of
failing silently.
Docs updated for Labs, dictation, and the Linux beta.
* fix(linux): review fixes for the live typing and live text notes
An imported model's catalog entry says it can't stream, but its GGUF is only
checked when it loads: the Live text card never judges one, and the capture
log blames the device instead of the model.
The Live text card shows its note under the description, not instead of it,
and names only streaming models that take the saved language (or none when
none do). Live typing's CLI note is only for Wayland with a compositor that
has no input method Hex can use, and never for a managed feature.
The capture log says "no live stream yet" rather than claiming it for the
whole capture, and a stream request on no loaded model no longer says the
model can't stream.
* docs(labs): tidy the live typing checks list
* fix(linux): second review fixes for the live notes
The capture log says only that no live stream has opened yet and why, with no
claim about the rest of the capture or the paste. Row's doc comments now say
a note joins the description and that a desktop without the input method also
locks the switch.
The engine's stream log leaves model_streams off for an imported model, whose
GGUF alone decides. The CLI note uses the card's exact wording, and the Live
text suggestions skip models that aren't available here.
* linux: one key table for X11, portal and GNOME; keep shortcuts when re-registration fails (t1535)
* linux: keep the dictation listener under the file-size limit (t1535)