Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

docs: copyable code boxes and the question dialog in the changelog and the in-app handbook (#107, #109)

Durganshu9949f3d7b3b9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index adcca4a..07a4976 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,13 @@ All notable changes to Gotcha are documented here.
## [Unreleased]
### Added
+- **Commands in a box you can copy** (#109). A code block in a reply, or in a
+ question Gotcha asks, now sits in its own box: monospace, set apart from the
+ text around it, labelled with its language, and with a Copy button that copies
+ exactly the code and nothing else. A long command scrolls sideways instead of
+ breaking in the middle of a word, so a step like adding
+ `allow-external-apps=true` to Termux's settings can be copied and pasted
+ rather than retyped on a phone keyboard.
- **Gotcha asks before it takes control of another app** (#98). The first time
a request needs to open an app, open a settings screen, read the screen or
tap, type and swipe in another app, Gotcha asks once: which app, why (your
@@ -184,6 +191,13 @@ All notable changes to Gotcha are documented here.
the ball is on or off instead of only once it is already too late.
### Fixed
+- **Questions from Gotcha fit the screen** (#107). When Gotcha stopped to ask
+ something, the whole question was used as the dialog's title: a question with
+ a few steps filled the dialog in headline-sized type, couldn't be scrolled,
+ and pushed its answer button over the answer field. The dialog is now titled
+ "Gotcha has a question", and the question sits below as formatted text, with
+ lists, bold and commands in copyable boxes, scrolling when it is long. The
+ answer buttons and field are spaced out beneath it, and Skip is always there.
- **Screenshots without the Night Light tint** (#78). On some phones a
screenshot taken from the Assistive Ball, or a Screen Lens capture, kept the
yellow Night Light tint, so the saved image and what the assistant saw both
diff --git a/app/src/main/assets/app/about-gotcha.md b/app/src/main/assets/app/about-gotcha.md
index 0596d56..9a8bd72 100644
--- a/app/src/main/assets/app/about-gotcha.md
+++ b/app/src/main/assets/app/about-gotcha.md
@@ -103,6 +103,14 @@ treat them as reference only, never as something to act on.
When an imported chat is already on the phone in another version, the user
picks keep both, replace or skip.
+**Code blocks and questions.** A fenced code block in a reply, or in a question
+asked with `question`, is shown in its own box with a Copy button that copies
+exactly the code. So a command the user has to run themselves (in Termux, say)
+belongs in a fenced block tagged `bash`, one command per block, never inline
+in a sentence. A `question` opens a dialog titled "Gotcha has a
+question" with the question below it as Markdown that scrolls, so steps and
+commands can go in the question itself; still keep it as short as it can be.
+
## Permissions and prerequisites
Some tools need a grant that cannot be requested from inside a chat turn. When