Skip to content

chore(chat): log the attach lifecycle the same way in both hosts - #1062

Merged
bmc08gt merged 1 commit into
refactor/chat-attach-close-eventsfrom
chore/chat-attach-lifecycle-log
Oct 14, 2026
Merged

bmc08gt merged 1 commit into
refactor/chat-attach-close-eventsfrom
chore/chat-attach-lifecycle-log

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

The overlay logged under flipcash.attach-overlay, and the bar path didn't log opening or closing at all, so a log from a keyboard-down session couldn't show what the attach surface did. Both hosts now log under flipcash.attach:

  • Attach opened: the host, and how it was chosen (mode, overlapHeight, inputWindowFound, canReplaceInputView, refused).
  • Attach event: an event that took something down, with the event, the host and the response.
  • Attach closed: the host the surface was opened in.

The opening line's keyboardHeight and keyboardWindowFound fields are now overlapHeight and inputWindowFound. SensitiveKeyRedactor blanks any field whose name contains "key", so those two have always logged as [REDACTED].

Stacked on #1061. #1053's overlay touch log uses the overlay's old file logger, which this removes; whichever merges second switches it to attachLogger.

The overlay logged under flipcash.attach-overlay and the bar path didn't
log its open or close at all. Both now log under flipcash.attach:

- "Attach opened" with the host and how it was chosen (mode,
  overlapHeight, inputWindowFound, canReplaceInputView, refused)
- "Attach event" when an event takes something down, with the event,
  host and response
- "Attach closed" with the host the surface was opened in

The opening line's keyboardHeight and keyboardWindowFound fields are
renamed overlapHeight and inputWindowFound: the log redactor blanks any
field whose name contains "key".
@bmc08gt bmc08gt self-assigned this Oct 14, 2026
@bmc08gt
bmc08gt added this pull request to stack #1063 October 14, 2026 19:25
@bmc08gt
bmc08gt merged commit 8eea980 into main Oct 14, 2026
2 of 3 checks passed
@bmc08gt
bmc08gt deleted the chore/chat-attach-lifecycle-log branch October 14, 2026 19:26
bmc08gt added a commit that referenced this pull request Oct 14, 2026
* commit '16a24ad1eb3eeac2097eac72d32150ba2c368f18':
  fix(ui): draw UIKit caption in Avenir Medium like SwiftUI (#1064)
  fix(members): host chip and member count label to match Android (#1058)
  chore(chat): log the attach lifecycle the same way in both hosts (#1062)
  refactor(chat): decide attach close events in one place (#1061)
  refactor(chat): measure the attach card's frame once (#1060)
  refactor(chat): read the attach menu rows live over the keyboard (#1059)
  refactor(chat): build the attach actions once for both hosts (#1056)
  fix(chat): render system messages in the transcript (#1054)

# Conflicts:
#	Flipcash/Core/Screens/Conversation/ChatScreenRepresentable.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant