Repository navigation
Conversation
…ck brings them what the agent has out of sight An agent that had shown the user its Safari tab took that tab `away` again, which closed it in the user's window while they were looking at it. A click on Safari's Dock icon then brings nothing: Safari opens no window for it while it has one, and the one it had was on the agent's desktop. - `away` no longer closes the tab its window shows, in a window that has tabs of the user's too or after the agent showed them the tab. The tab stays open, and the agent goes on in a copy of its page on its desktop. When the page comes back, at `show` or when the turn ends, it comes into that tab if it is still at its address, so show after show leaves one tab and not a row of them. It comes into a new tab if the user went on in theirs, or if they are looking at theirs and the page has moved on: nothing changes under their eyes unless the agent shows it to them. - ucu-window reports a plain click on the Dock icon of a browser the chat works in, with whether the browser was in front already and whether a window of it was in the user's sight. For Safari the server then opens each page the chat has away in a tab of the user's own window as well, in front, and the agent keeps its own. For Chrome the chat's window comes to the user's screen, as `show` brings it. Clicking again opens nothing new. - A click on the Dock icon of an app that is in front already, with its windows on the agent's desktop, brings them back to the user. Nothing comes forward for such a click, so nothing did before. - A press that is held, moved or made with a modifier key is not a click for this. The server's part has unit tests with the stand-ins for Safari, Chrome and ucu-window. No test covers ucu-window itself, and its part was only compiled: it ignores clicks that name a sender, so it needs a click by the user's own hand. Nothing here ran in a real Safari or Chrome.
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.
An agent could close the Safari tab the user was looking at, and a click on Safari's Dock icon then brought them nothing.
What happened
On 25 November an agent showed the user its Safari tab with
show, and later took that tabawayto its private desktop, which closes it in the user's window. The chat's record shows fiveawaycalls in 22 minutes. In two of them the tab was the one its window showed, each time after ashow.The user then clicked Safari in the Dock, and reported that nothing happened and that the window seemed to be somewhere else. Safari opens no window at that click while it has one, and the one it had was on the agent's desktop. That part is a reconstruction: nothing logs a Dock click that brings no app forward.
What changes
awayleaves a tab the user may be looking at. That is the tab its window shows, in a window that has tabs of the user's too, or after the agent showed them the tab. The tab stays open, and the agent goes on in a copy of its page on its desktop.show, or when the turn ends, the page uses the tab that stayed open if it is still at its address, so show after show leaves one tab and not a row of them. It comes into a new tab if the user went on in theirs, or if they are looking at theirs and the page has moved on. Nothing changes under their eyes unless the agent shows it to them.ucu-windowreports the click, with whether Safari was in front already and whether a window of it was in the user's sight. The server opens each page the chat has away in a tab of the user's own window, in front, and the agent keeps its own. Clicking again opens no second tab, and shows that one again only if Safari was in front already or no window of it was in sight.showdoes. An empty one comes only when the user has no Chrome window in sight.The agent is told what happened in each case, in the result of its next step.
How it was validated
ucu/tests/test_user_comes.py, with the stand-ins for Safari, Chrome anducu-window. All 216 unit tests pass with this branch onmainat d56e7bd.main's server. The other 4 are controls that pass either way. The 2 tests added after that were not run that way.ucu-windowcompiles.Not verified
ucu-window's part was only compiled. It ignores clicks that name a sender, which every posted click does, so no test can play a Dock click. It needs one click by the user's own hand, planned as a single guided check.ucu-windowhears the click, so each opens its page. Not run.Choices a reviewer may want to change
closestill closes a tab the user is looking at, and Chrome'shidestill takes the window back while they use it.