3 Commits
Author SHA1 Message Date
Aleksander DygońandClaude Opus 5.5 03c2ff34c2 Remove code comments and add the no-comments rule (#12604)
* Remove code comments and add the no-comments rule

Remove the comments from first-party code and configuration files:
TS/JS, JSX, CSS, SQL migrations, Swift, Kotlin, Gradle, shell,
Docker, systemd, Nix, YAML, TOML, JSONC and GritQL.

Keep only what a tool reads: license headers, shebangs, compiler
and lint directives, JSDoc types in plain .js files, generated file
headers, GritQL scope lines, the install-server.sh help text and the
openbot-boat-pre-stop marker. Vendored code, fixtures and released
schemas keep their comments.

Add the rule to AGENTS.md, and change the docs that asked for
comments. Add two i18n keys that only comments named to
RELEASED_SOURCE_KEYS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep comments that are data in strings

The benchmark task files in opencode-free-models-bench.ts tell the
model what each function must do. The sample file and HTML page in
the two stories are display content. Put their comments back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep released migrations and mobile native inputs unchanged

check:migrations compares each released migration with v0.73.0 byte
for byte, so restore src/backend/migrations. A change to a native
build input of apps/mobile makes a new runtime version, so restore
those files and the extra fingerprint sources.

List these files and the comment markers that a tool reads in
AGENTS.md. Remove the last requests for comments in
src/renderer/AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 12:19:28 +01:00
NBandClaude Opus 5.5 61f6f1243b Open an agent page in the side panel and quote text from it (#5570)
* Open an agent page in the side panel and quote text from it

A page that an agent makes stays in the chat. A new button on the page
opens it as a side panel tab too. The page in the chat and in the side
panel can send selected text to Quote, and the quote shortcut works.
The quote chip opens the page in the side panel.

In a channel, Quote now puts the selected text in the message box.

Refs #5469

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix review findings in the page Quote action and the page context

- The page context chip uses the id of the message that holds the page
  again, also in the side panel. The draft keeps it after a restart, and
  it is not mixed with the user's own quote of the page.
- The Quote action moves when the chat or the side panel scrolls, and
  stays inside the frame.
- A closed Quote action stays closed until the selection changes.
- The quote shortcut leaves full screen, so the message box shows.
- The page sends its selection only when it changes.
- The page and the message selection use one Quote button.
- The e2e checks full screen again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Close the Quote action of one page when another page shows it

A press in a page reaches only that page. Thus a selection in a second
page, for example the same page in the side panel, left the Quote action
of the first page open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Close the message Quote action when a page shows its Quote action

A press in a page frame does not reach the window listeners of the
message toolbar. One shared slot now holds the selection action that
shows, so a new action closes the one before it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 17:10:07 +01:00
NBandClaude Opus 5.5 1fcd2966bf Let a visual reply go full screen and answer the agent (#2957)
* Let a visual reply go full screen and answer the agent

A visual reply page can now:
- go full screen with an expand button or `openbotPage.requestFullscreen()`.
  The same frame moves to the top layer, so the page keeps its state.
- open a clicked image in the image viewer.
- send Search, Settings and server number shortcuts to the app.
- put a reply in the message box with `openbotPage.sendMessage()`. The user
  sends it. The page cannot send by itself.
- give the agent its state with `openbotPage.setContext()`. The message box
  shows it as a chip that the user can remove. The next message sends it as
  a quote of the page.

Calls that change the view or the message box need a click in the page.
The html_render tool text tells agents about the helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Make the html_render page text correct and shorter

- The page rules said that a page cannot use the OpenBot app. It can now,
  through `openbotPage`, so remove that claim.
- Remove `requestFullscreen`, `exitFullscreen` and `displayMode` from the
  tool text. The app gives each page a full-screen button, so the text now
  tells the agent not to build one.
- Take the context limit from `CHAT_VISUAL_CONTEXT_LIMIT`.
- Remove the tool guidance sentence that repeats the tool description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show page context as a quote chip in the message text

The page context was a second large block above the message box. Now
setContext puts a quote tag of the page at the start of the draft, which
shows as the same quote chip as a quote of selected text. The draft saves
it, the send sends it, and Backspace removes it. setContext needs a click
in the page, as the other requests do, because it now changes the draft.

A request with values out of range now gets an error reply, so the page's
promise fails and does not wait for ever.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Put page text in the message box with no reply block

The page's sendMessage text made the draft a reply to the page, so a
"Replying to" block showed above the message box. The block repeated
what the page and the quote chip show. Now the text only goes at the end
of the draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 19:54:39 +02:00